遴选 社稷大典中对奖励界面的修改,到竞技场界面修改
parent
09c3da664e
commit
e39706e312
|
|
@ -163,6 +163,8 @@ ConfigName = {
|
||||||
ExchangeRate = "ExchangeRate",
|
ExchangeRate = "ExchangeRate",
|
||||||
CustomEventConfig = "CustomEventConfig",
|
CustomEventConfig = "CustomEventConfig",
|
||||||
ExpeditionRecruitConfig = "ExpeditionRecruitConfig",
|
ExpeditionRecruitConfig = "ExpeditionRecruitConfig",
|
||||||
|
GodSacrificeConfig = "GodSacrificeConfig",
|
||||||
|
GodSacrificeSetting = "GodSacrificeSetting",
|
||||||
}
|
}
|
||||||
|
|
||||||
require "Framework/GameDataBase"
|
require "Framework/GameDataBase"
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,14 @@ require("Base/BasePanel")
|
||||||
GeneralRankRewardPanel = Inherit(BasePanel)
|
GeneralRankRewardPanel = Inherit(BasePanel)
|
||||||
local this = GeneralRankRewardPanel
|
local this = GeneralRankRewardPanel
|
||||||
local RewardList
|
local RewardList
|
||||||
local ActRankReward = ConfigManager.GetConfig(ConfigName.ActivityRankingReward)
|
local GloActConfig = ConfigManager.GetConfig(ConfigName.GlobalActivity)
|
||||||
|
local RewardConfig
|
||||||
local itemList = {}--优化itemView使用
|
local itemList = {}--优化itemView使用
|
||||||
local sorting = 0
|
local sorting = 0
|
||||||
|
local ConfigList = {
|
||||||
|
[1] = ConfigManager.GetConfig(ConfigName.ActivityRankingReward),
|
||||||
|
[ActivityTypeDef.Celebration] = ConfigManager.GetConfig(ConfigName.GodSacrificeConfig),
|
||||||
|
}
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function GeneralRankRewardPanel:InitComponent()
|
function GeneralRankRewardPanel:InitComponent()
|
||||||
|
|
||||||
|
|
@ -37,6 +42,11 @@ end
|
||||||
|
|
||||||
--界面打开时调用(用于子类重写)
|
--界面打开时调用(用于子类重写)
|
||||||
function GeneralRankRewardPanel:OnOpen(ActivityId,myRank)
|
function GeneralRankRewardPanel:OnOpen(ActivityId,myRank)
|
||||||
|
if ConfigList[GloActConfig[ActivityId].Type] then
|
||||||
|
RewardConfig = ConfigList[GloActConfig[ActivityId].Type]
|
||||||
|
else
|
||||||
|
RewardConfig = ConfigList[1]
|
||||||
|
end
|
||||||
this.ShowRewardInfo(ActivityId)
|
this.ShowRewardInfo(ActivityId)
|
||||||
this.SetMyRank(myRank)
|
this.SetMyRank(myRank)
|
||||||
end
|
end
|
||||||
|
|
@ -66,7 +76,7 @@ end
|
||||||
function this.ShowRewardInfo(ActivityId)
|
function this.ShowRewardInfo(ActivityId)
|
||||||
RewardList = {}
|
RewardList = {}
|
||||||
--guildCheckpointRank
|
--guildCheckpointRank
|
||||||
for _, configInfo in ConfigPairs(ActRankReward) do
|
for _, configInfo in ConfigPairs(RewardConfig) do
|
||||||
if configInfo.ActivityId == ActivityId then
|
if configInfo.ActivityId == ActivityId then
|
||||||
table.insert(RewardList,configInfo)
|
table.insert(RewardList,configInfo)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue