This commit is contained in:
puxuan 2025-09-03 16:51:27 +08:00
parent a48c5a860a
commit 653c927780
2 changed files with 8 additions and 5 deletions

View File

@ -109,8 +109,7 @@ function HeroCell:refreshRedPoint()
return
end
if not self.notShowRedPoint and
DataManager.FormationData:heroInFormation(GConst.BattleConst.FORMATION_TYPE.STAGE, self.heroEntity:getCfgId()) then
if not self.notShowRedPoint and DataManager.FormationData:heroInFormation(GConst.BattleConst.FORMATION_TYPE.STAGE, self.heroEntity:getCfgId()) and self.heroEntity:showRedPointEntrance() then
self.selfNode:addRedPoint(55, -35, 1)
else
self.selfNode:removeRedPoint()

View File

@ -766,6 +766,10 @@ end
--@endregion
--@region 红点
function HeroEntity:showRedPointEntrance()
return self:canLvUp() or self:canStarUp()
end
function HeroEntity:showRedPoint(page)
if page == GConst.HeroConst.PANEL_TYPE.HERO then
return self:canLvUp()