diff --git a/lua/app/ui/battle/battle_result_ui.lua b/lua/app/ui/battle/battle_result_ui.lua index fa19804e..1c0260b6 100644 --- a/lua/app/ui/battle/battle_result_ui.lua +++ b/lua/app/ui/battle/battle_result_ui.lua @@ -125,7 +125,7 @@ function BattleResultUI:refreshRewards() end) self.scrollRectComp:addRefreshCallback(function(index, cell) cell:refresh(self.rewards[index]) - cell:showLeftUpIcon(index <= self.mysteryBoxIdx, GConst.ATLAS_PATH.COMMON, "common_chest_1") + cell:showRightUpIcon(index <= self.mysteryBoxIdx, GConst.ATLAS_PATH.COMMON, "common_chest_1") end) self.scrollRectComp:setFadeArgs(0.05, 0.3) self.scrollRectComp:clearCells() diff --git a/lua/app/ui/common/cell/reward_cell.lua b/lua/app/ui/common/cell/reward_cell.lua index 83826aaf..f1aa2782 100644 --- a/lua/app/ui/common/cell/reward_cell.lua +++ b/lua/app/ui/common/cell/reward_cell.lua @@ -8,7 +8,7 @@ function RewardCell:init() self.check = uiMap["reward_cell.check"] self.numTx = uiMap["reward_cell.item_bg.num"] self.fragment = uiMap["reward_cell.item_bg.fragment"] - self.leftUpIcon = uiMap["reward_cell.item_bg.left_up_icon"] + self.rightUpIcon = uiMap["reward_cell.item_bg.right_up_icon"] self.sImg = uiMap["reward_cell.item_bg.s"] self.matchImg = uiMap["reward_cell.item_bg.match_img"] self.frameAni = uiMap["reward_cell.frame_ani"] @@ -149,12 +149,12 @@ function RewardCell:hideFrameAnimation() self.frameAni:setVisible(false) end -function RewardCell:showLeftUpIcon(show, atlas, iconName) - self.leftUpIcon:setVisible(show) +function RewardCell:showRightUpIcon(show, atlas, iconName) + self.rightUpIcon:setVisible(show) if not show then return end - self.leftUpIcon:setSprite(atlas, iconName) + self.rightUpIcon:setSprite(atlas, iconName) end return RewardCell \ No newline at end of file