diff --git a/lua/app/ui/hero/armor_info_comp.lua b/lua/app/ui/hero/armor_info_comp.lua index ee50fb7b..373b8ccf 100644 --- a/lua/app/ui/hero/armor_info_comp.lua +++ b/lua/app/ui/hero/armor_info_comp.lua @@ -159,8 +159,9 @@ function ArmorInfoComp:refreshSelectArmor() end self.txNum:setText(armorEntity:getUpgradeGoldNum()) + self.btnUp:setTouchEnable(self.heroEntity:isActived()) local canLvUp = armorEntity:canLevelUp() - if canLvUp then + if self.heroEntity:isActived() and canLvUp then self.btnUp:addRedPoint(120, 50, 0.6) self.btnUp:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[1]) else diff --git a/lua/app/ui/hero/weapon_info_comp.lua b/lua/app/ui/hero/weapon_info_comp.lua index 5f996b0a..0120ce71 100644 --- a/lua/app/ui/hero/weapon_info_comp.lua +++ b/lua/app/ui/hero/weapon_info_comp.lua @@ -122,9 +122,9 @@ function WeaponInfoComp:refresh() self.txNum:setText("" .. self.weaponEntity:getUpgradeGoldNum() .. "") end - self.btnUp:setTouchEnable(self.heroEntity:isUnlock()) + self.btnUp:setTouchEnable(self.heroEntity:isActived()) local canLvUp = self.weaponEntity:canLevelUp() - if self.heroEntity:isUnlock() and canLvUp then + if self.heroEntity:isActived() and canLvUp then self.btnUp:addRedPoint(120, 50, 0.6) self.btnUp:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[1]) else