处理界面
This commit is contained in:
parent
704ac4757e
commit
37b12e064e
@ -202,42 +202,31 @@ function DungeonRuneRankUI:refreshMyRankInfo()
|
||||
roundObj:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_11, round))
|
||||
end
|
||||
|
||||
if self.curPage ~= PAGE_TYPE.REWARD then
|
||||
layerObj:setVisible(true)
|
||||
roundObj:setVisible(true)
|
||||
for index, cell in ipairs(self.selfRewardCells) do
|
||||
cell:getBaseObject():setActive(false)
|
||||
end
|
||||
local got = self.runeData:isGotRankReward()
|
||||
local rewards
|
||||
if canGot then
|
||||
rewards = self.runeData:getRankRewards(rank)
|
||||
else
|
||||
layerObj:setVisible(false)
|
||||
roundObj:setVisible(false)
|
||||
info = self.runeData:getCurRankSelfInfo()
|
||||
rewards = self.runeData:getRankRewards(info.rank or 0)
|
||||
got = false
|
||||
end
|
||||
|
||||
local got = self.runeData:isGotRankReward()
|
||||
local rewards
|
||||
if canGot then
|
||||
rewards = DataManager.ActBossRushData:getRankRewards(rank)
|
||||
else
|
||||
info = DataManager.ActBossRushData:getCurRankSelfInfo()
|
||||
rewards = DataManager.ActBossRushData:getRankRewards(info.rank or 0)
|
||||
got = false
|
||||
end
|
||||
|
||||
for index, cell in ipairs(self.selfRewardCells) do
|
||||
if rewards and rewards[index] then
|
||||
cell:refreshByConfig(rewards[index], got, got)
|
||||
cell:getBaseObject():setActive(true)
|
||||
if canGot then
|
||||
cell:showFrameAnimation()
|
||||
cell:addClickListener(function()
|
||||
ModuleManager.ActBossRushManager:reqRankReward()
|
||||
end)
|
||||
else
|
||||
cell:hideFrameAnimation()
|
||||
cell:addClickListener(nil)
|
||||
end
|
||||
for index, cell in ipairs(self.selfRewardCells) do
|
||||
if rewards and rewards[index] then
|
||||
cell:refreshByConfig(rewards[index], got, got)
|
||||
cell:getBaseObject():setActive(true)
|
||||
if canGot then
|
||||
cell:showFrameAnimation()
|
||||
cell:addClickListener(function()
|
||||
ModuleManager.ActBossRushManager:reqRankReward()
|
||||
end)
|
||||
else
|
||||
cell:getBaseObject():setActive(false)
|
||||
cell:hideFrameAnimation()
|
||||
cell:addClickListener(nil)
|
||||
end
|
||||
else
|
||||
cell:getBaseObject():setActive(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user