【易经宝库】修改选择奖励界面的排序规则
parent
a3bc278624
commit
a80d16fbda
|
@ -63,6 +63,12 @@ function this:OnShow(_parent,...)
|
|||
this.titleText.text = Language[10760]
|
||||
curId = ActData.selectId or nil
|
||||
local RewardConfig = ConfigManager.GetAllConfigsDataByKey(ConfigName.BlessingRewardPoolNew,"PoolId",ActData.curFinalPool)
|
||||
table.sort(RewardConfig, function(a, b)
|
||||
if a.FloorLimit == b.FloorLimit then
|
||||
return a.Id < b.Id
|
||||
end
|
||||
return a.FloorLimit < b.FloorLimit
|
||||
end)
|
||||
this.ScrollView:SetData(RewardConfig, function(index, go)
|
||||
this:SetSingleData(index,go, RewardConfig[index])
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue