英雄列表界面

This commit is contained in:
chenxi 2023-06-03 19:58:47 +08:00
parent 47242af939
commit 3755f870bc

View File

@ -25,10 +25,12 @@ function HeroListCell:refresh(index, heroList, stageFormation, allHeroCount, act
end)
if activeCount > 0 and index == 1 then
self.title:setVisible(true)
self.title:setSprite(GConst.ATLAS_PATH.COMMON, "common_board_105")
self.titleTx:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_6))
self:getBaseObject():setSizeDeltaY(H.HAS_TITLE)
elseif index == math.ceil(activeCount / 4) + 1 then
self.title:setVisible(true)
self.title:setSprite(GConst.ATLAS_PATH.COMMON, "common_board_116")
self.titleTx:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_7))
self:getBaseObject():setSizeDeltaY(H.HAS_TITLE)
else