c1_lua/lua/app/ui/battle/cell/tiny_buff_cell.lua
2023-06-28 21:24:15 +08:00

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