处理界面
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))
|
roundObj:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_11, round))
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.curPage ~= PAGE_TYPE.REWARD then
|
local got = self.runeData:isGotRankReward()
|
||||||
layerObj:setVisible(true)
|
local rewards
|
||||||
roundObj:setVisible(true)
|
if canGot then
|
||||||
for index, cell in ipairs(self.selfRewardCells) do
|
rewards = self.runeData:getRankRewards(rank)
|
||||||
cell:getBaseObject():setActive(false)
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
layerObj:setVisible(false)
|
info = self.runeData:getCurRankSelfInfo()
|
||||||
roundObj:setVisible(false)
|
rewards = self.runeData:getRankRewards(info.rank or 0)
|
||||||
|
got = false
|
||||||
|
end
|
||||||
|
|
||||||
local got = self.runeData:isGotRankReward()
|
for index, cell in ipairs(self.selfRewardCells) do
|
||||||
local rewards
|
if rewards and rewards[index] then
|
||||||
if canGot then
|
cell:refreshByConfig(rewards[index], got, got)
|
||||||
rewards = DataManager.ActBossRushData:getRankRewards(rank)
|
cell:getBaseObject():setActive(true)
|
||||||
else
|
if canGot then
|
||||||
info = DataManager.ActBossRushData:getCurRankSelfInfo()
|
cell:showFrameAnimation()
|
||||||
rewards = DataManager.ActBossRushData:getRankRewards(info.rank or 0)
|
cell:addClickListener(function()
|
||||||
got = false
|
ModuleManager.ActBossRushManager:reqRankReward()
|
||||||
end
|
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
|
|
||||||
else
|
else
|
||||||
cell:getBaseObject():setActive(false)
|
cell:hideFrameAnimation()
|
||||||
|
cell:addClickListener(nil)
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
cell:getBaseObject():setActive(false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user