【竞技场】修复竞技场赛季切换时也会显示红点儿的问题
parent
bfe66493ab
commit
d413915c6a
|
@ -353,7 +353,7 @@ function this.SetHadTakeBoxData(boxId)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.FreeBattleRedCheck()
|
function this.FreeBattleRedCheck()
|
||||||
return (this.GetArenaChallengeTimes() > 0) and ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.ARENA)
|
return (this.GetArenaChallengeTimes() > 0) and ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.ARENA)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.RewardBoxRedCheck()
|
function this.RewardBoxRedCheck()
|
||||||
|
@ -364,7 +364,7 @@ function this.RewardBoxRedCheck()
|
||||||
for i = 1, 7 do
|
for i = 1, 7 do
|
||||||
if arenaBattleReward[i] then
|
if arenaBattleReward[i] then
|
||||||
local state = 1--1 未完成 2 未领取 3 已完成allNums >= arenaBattleReward[i].BattleTimes and false
|
local state = 1--1 未完成 2 未领取 3 已完成allNums >= arenaBattleReward[i].BattleTimes and false
|
||||||
if allNums >= arenaBattleReward[i].BattleTimes and not allBoxGetState[i] and ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.ARENA) then
|
if allNums >= arenaBattleReward[i].BattleTimes and not allBoxGetState[i] and ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.ARENA) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -327,8 +327,8 @@ function this.RegisterRedCheckFunc()
|
||||||
RPData:AddCheckFunc(RedPointType.Role, HeroManager.GetFormationHeroRedPoint)
|
RPData:AddCheckFunc(RedPointType.Role, HeroManager.GetFormationHeroRedPoint)
|
||||||
|
|
||||||
--竞技场部分红点
|
--竞技场部分红点
|
||||||
RPData:AddCheckFunc(RedPointType.Arena_Free, ArenaManager.FreeBattleRedCheck)
|
RPData:AddCheckFunc(RedPointType.Arena_Free, ArenaManager.FreeBattleRedCheck, FUNCTION_OPEN_TYPE.ARENA)
|
||||||
RPData:AddCheckFunc(RedPointType.Arena_Reward, ArenaManager.RewardBoxRedCheck)
|
RPData:AddCheckFunc(RedPointType.Arena_Reward, ArenaManager.RewardBoxRedCheck, FUNCTION_OPEN_TYPE.ARENA)
|
||||||
|
|
||||||
---=== 商店相关红点
|
---=== 商店相关红点
|
||||||
-- RPData:AddCheckFunc(RedPointType.Arena_Shop, ShopManager.ShopRedCheck)
|
-- RPData:AddCheckFunc(RedPointType.Arena_Shop, ShopManager.ShopRedCheck)
|
||||||
|
|
Loading…
Reference in New Issue