From 03c6bdd5233ceb81a73bd5cd27e74c70cc22a61b Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 25 Jul 2023 17:16:54 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/hero/armor_info_comp.lua | 3 ++- lua/app/ui/hero/weapon_info_comp.lua | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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