This commit is contained in:
xiekaidong 2023-09-09 12:58:01 +08:00
parent a817d25305
commit 704ac4757e

View File

@ -16,9 +16,13 @@ local RANK_BG = {
function RankCell:refresh(index, info)
local uiMap = self:getUIMap()
if not self.playerHeadCell then
self.playerHeadCell = CellManager:addCellComp(uiMap["act_rank_cell.player_head_cell"], GConst.TYPEOF_LUA_CLASS.PLAYER_HEAD_CELL)
self.playerHeadCell = CellManager:addCellComp(uiMap["rank_reward_cell.bg.player_head_cell"], GConst.TYPEOF_LUA_CLASS.PLAYER_HEAD_CELL)
end
uiMap["act_rank_cell.tx_rank"]:setText(index)
local indexStr = index
if index > GConst.DungeonRuneConst.RANK_MAX_NUM then
indexStr = GConst.DungeonRuneConst.RANK_MAX_NUM .. "+"
end
uiMap["act_rank_cell.tx_rank"]:setText(indexStr)
local imgRank = uiMap["act_rank_cell.img_rank"]
if RANK_ICON[index] then
imgRank:setVisible(true)