15 lines
422 B
Lua
15 lines
422 B
Lua
local TinyBuffCell = class("TinyBuffCell", BaseCell)
|
|
|
|
function TinyBuffCell:refresh(buffName, round)
|
|
if round <= 1 or round > 9 then
|
|
round = GConst.EMPTY_STRING
|
|
else
|
|
round = tostring(round)
|
|
end
|
|
|
|
local uiMap = self:getUIMap()
|
|
uiMap["tiny_buff_cell.buff_icon"]:setSprite(GConst.ATLAS_PATH.ICON_BUFF, buffName)
|
|
uiMap["tiny_buff_cell.round_text"]:setText(round)
|
|
end
|
|
|
|
return TinyBuffCell |