fix bug
This commit is contained in:
parent
19695b074f
commit
a99eb5bd25
@ -120,8 +120,8 @@ function HeroInfoComp:refreshUpInfo()
|
|||||||
if canLvUp then
|
if canLvUp then
|
||||||
self.btnUp:setTouchEnable(true)
|
self.btnUp:setTouchEnable(true)
|
||||||
self.btnUp5:setTouchEnable(true)
|
self.btnUp5:setTouchEnable(true)
|
||||||
self.btnUp:addRedPoint(70, 30, 1)
|
self.btnUp:addRedPoint(100, 36, 1)
|
||||||
self.btnUp5:addRedPoint(70, 30, 1)
|
self.btnUp5:addRedPoint(100, 36, 1)
|
||||||
self.btnUp:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[1])
|
self.btnUp:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[1])
|
||||||
self.btnUp5:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[2])
|
self.btnUp5:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[2])
|
||||||
else
|
else
|
||||||
|
|||||||
@ -87,8 +87,10 @@ function StarInfoComp:refreshStarBtn()
|
|||||||
self.costCell:refreshByConfig(cost)
|
self.costCell:refreshByConfig(cost)
|
||||||
if hadNum >= cost.num then
|
if hadNum >= cost.num then
|
||||||
self.costCell:showRewardNum(hadNum .. "/" .. cost.num)
|
self.costCell:showRewardNum(hadNum .. "/" .. cost.num)
|
||||||
|
self.upBtn:addRedPoint(100, 36, 1)
|
||||||
else
|
else
|
||||||
self.costCell:showRewardNum("<color=#D82F2D>" .. hadNum .. "</color>" .. "/" .. cost.num)
|
self.costCell:showRewardNum("<color=#D82F2D>" .. hadNum .. "</color>" .. "/" .. cost.num)
|
||||||
|
self.upBtn:removeRedPoint()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user