抽卡界面不展示装备升级红点
This commit is contained in:
parent
145eb15803
commit
d89238a763
@ -99,13 +99,20 @@ function HeroCell:refreshRedPoint()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if DataManager.FormationData:heroInFormation(GConst.BattleConst.FORMATION_TYPE.STAGE, self.heroEntity:getCfgId()) and DataManager.EquipData:canUpgradeEquip(self.heroEntity:getCfgId()) then
|
if not self.notShowRedPoint and
|
||||||
|
DataManager.FormationData:heroInFormation(GConst.BattleConst.FORMATION_TYPE.STAGE, self.heroEntity:getCfgId()) and
|
||||||
|
DataManager.EquipData:canUpgradeEquip(self.heroEntity:getCfgId()) then
|
||||||
self.selfNode:addRedPoint(55, -35, 0.64)
|
self.selfNode:addRedPoint(55, -35, 0.64)
|
||||||
else
|
else
|
||||||
self.selfNode:removeRedPoint()
|
self.selfNode:removeRedPoint()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 设置是否展示红点
|
||||||
|
function HeroCell:setShowRedPoint(show)
|
||||||
|
self.notShowRedPoint = not show
|
||||||
|
end
|
||||||
|
|
||||||
function HeroCell:getHeroId()
|
function HeroCell:getHeroId()
|
||||||
if not self.heroEntity then
|
if not self.heroEntity then
|
||||||
return
|
return
|
||||||
|
|||||||
@ -15,6 +15,7 @@ function BoxHeroCell:refresh(data)
|
|||||||
self.data = data
|
self.data = data
|
||||||
local id = data.id
|
local id = data.id
|
||||||
local num = data.count
|
local num = data.count
|
||||||
|
self.heroCell:setShowRedPoint(false)
|
||||||
|
|
||||||
local heroEntity = DataManager.HeroData:getHeroById(id)
|
local heroEntity = DataManager.HeroData:getHeroById(id)
|
||||||
if heroEntity then
|
if heroEntity then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user