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

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