界面调整
This commit is contained in:
parent
06229275bf
commit
5ccdd1e417
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user