cell
This commit is contained in:
parent
a817d25305
commit
704ac4757e
@ -16,9 +16,13 @@ local RANK_BG = {
|
|||||||
function RankCell:refresh(index, info)
|
function RankCell:refresh(index, info)
|
||||||
local uiMap = self:getUIMap()
|
local uiMap = self:getUIMap()
|
||||||
if not self.playerHeadCell then
|
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
|
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"]
|
local imgRank = uiMap["act_rank_cell.img_rank"]
|
||||||
if RANK_ICON[index] then
|
if RANK_ICON[index] then
|
||||||
imgRank:setVisible(true)
|
imgRank:setVisible(true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user