界面调整

This commit is contained in:
xiekaidong 2023-04-21 10:12:00 +08:00
parent 06229275bf
commit 5ccdd1e417

View File

@ -107,8 +107,11 @@ function HeroDetailUI:_display()
uiMap["hero_detail_ui.bg.up_btn.rp"]:setVisible(self.heroEntity:canLvUp())
uiMap["hero_detail_ui.bg.hp"]:setText(hpStr)
uiMap["hero_detail_ui.bg.atk"]:setText(atkStr)
uiMap["hero_detail_ui.bg.up_btn"]:setImageGray(not GFunc.checkCost(GConst.ItemConst.ITEM_ID_GOLD, materials[2] or 0))
uiMap["hero_detail_ui.bg.up_btn"]:setActive(not self.heroEntity:isMaxLv())
local btn = uiMap["hero_detail_ui.bg.up_btn"]
btn:setImageGray(not canLvUp)
btn:setTouchEnable(true)
btn:setActive(not self.heroEntity:isMaxLv())
end
function HeroDetailUI:_addListeners()