bug修复
This commit is contained in:
parent
53d7e103ec
commit
03c6bdd523
@ -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
|
||||
|
||||
@ -122,9 +122,9 @@ function WeaponInfoComp:refresh()
|
||||
self.txNum:setText("<color=#FF5252>" .. self.weaponEntity:getUpgradeGoldNum() .. "</color>")
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user