This commit is contained in:
puxuan 2025-11-10 19:43:25 +08:00
parent 19695b074f
commit a99eb5bd25
2 changed files with 4 additions and 2 deletions

View File

@ -120,8 +120,8 @@ function HeroInfoComp:refreshUpInfo()
if canLvUp then
self.btnUp:setTouchEnable(true)
self.btnUp5:setTouchEnable(true)
self.btnUp:addRedPoint(70, 30, 1)
self.btnUp5:addRedPoint(70, 30, 1)
self.btnUp:addRedPoint(100, 36, 1)
self.btnUp5:addRedPoint(100, 36, 1)
self.btnUp:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[1])
self.btnUp5:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[2])
else

View File

@ -87,8 +87,10 @@ function StarInfoComp:refreshStarBtn()
self.costCell:refreshByConfig(cost)
if hadNum >= cost.num then
self.costCell:showRewardNum(hadNum .. "/" .. cost.num)
self.upBtn:addRedPoint(100, 36, 1)
else
self.costCell:showRewardNum("<color=#D82F2D>" .. hadNum .. "</color>" .. "/" .. cost.num)
self.upBtn:removeRedPoint()
end
end
end