From 5515c9f4198598cdd0601ae1c664877c0a95c202 Mon Sep 17 00:00:00 2001 From: Fang Date: Sat, 7 Oct 2023 18:11:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=A6=E6=A0=87=E8=B5=9B=E5=A5=96=E5=8A=B1?= =?UTF-8?q?=E9=A2=86=E5=8F=96=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/activity/tourn_arena/tourn_arena_rank_comp.lua | 4 +++- lua/app/ui/activity/tourn_wave/tourn_wave_rank_comp.lua | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/app/ui/activity/tourn_arena/tourn_arena_rank_comp.lua b/lua/app/ui/activity/tourn_arena/tourn_arena_rank_comp.lua index 1bfe146a..595ab855 100644 --- a/lua/app/ui/activity/tourn_arena/tourn_arena_rank_comp.lua +++ b/lua/app/ui/activity/tourn_arena/tourn_arena_rank_comp.lua @@ -132,17 +132,19 @@ function TournArenaRankComp:showSelfRank(step) self.txName:setText(DataManager.PlayerData:getNickname()) self.txScore:setText(I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_16)..":"..score) + local isReceived = DataManager.TournArenaData:isReceivedRankReward() local rewards = DataManager.TournArenaData:getRewardByRank(rank) for index, cell in ipairs(self.rewardCells) do if score > 0 and rewards[index] then cell:setVisible(true) - cell:refreshByConfig(rewards[index]) if step ~= DataManager.TournArenaData:getCurRankStep() and DataManager.TournArenaData:isReachRankReward() then + cell:refreshByConfig(rewards[index], isReceived, isReceived) cell.baseObject:addRedPoint(50, 50, 0.6) cell:addClickListener(function() ModuleManager.TournArenaManager:reqRankReward() end) else + cell:refreshByConfig(rewards[index]) cell.baseObject:removeRedPoint() cell:addClickListener(nil) end diff --git a/lua/app/ui/activity/tourn_wave/tourn_wave_rank_comp.lua b/lua/app/ui/activity/tourn_wave/tourn_wave_rank_comp.lua index 5d1b2e05..100dab5b 100644 --- a/lua/app/ui/activity/tourn_wave/tourn_wave_rank_comp.lua +++ b/lua/app/ui/activity/tourn_wave/tourn_wave_rank_comp.lua @@ -132,17 +132,19 @@ function TournWaveRankComp:showSelfRank(step) self.txName:setText(DataManager.PlayerData:getNickname()) self.txScore:setText(I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_16)..":"..score) + local isReceived = DataManager.TournWaveData:isReceivedRankReward() local rewards = DataManager.TournWaveData:getRewardByRank(rank) for index, cell in ipairs(self.rewardCells) do if score > 0 and rewards[index] then cell:setVisible(true) - cell:refreshByConfig(rewards[index]) if step ~= DataManager.TournWaveData:getCurRankStep() and DataManager.TournWaveData:isReachRankReward() then + cell:refreshByConfig(rewards[index], isReceived, isReceived) cell.baseObject:addRedPoint(50, 50, 0.6) cell:addClickListener(function() ModuleManager.TournWaveManager:reqRankReward() end) else + cell:refreshByConfig(rewards[index]) cell.baseObject:removeRedPoint() cell:addClickListener(nil) end