15 lines
436 B
Lua
15 lines
436 B
Lua
local TinyBuffCell = class("TinyBuffCell", BaseCell)
|
|
|
|
function TinyBuffCell:refresh(buffName, round)
|
|
if round <= 1 or round > 9 then
|
|
round:setText(GConst.EMPTY_STRING)
|
|
else
|
|
round:setText(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 |