竞技场有免费次数 时提示红点
parent
854404515d
commit
04b18aa4ad
|
@ -657,6 +657,8 @@ RedPointType = {
|
||||||
--Arena_Type_TopMatch = 1071,
|
--Arena_Type_TopMatch = 1071,
|
||||||
--- 竞技场相关子红点
|
--- 竞技场相关子红点
|
||||||
Arena_Shop = 10701,
|
Arena_Shop = 10701,
|
||||||
|
Arena_Free = 10702,--免费挑战
|
||||||
|
Arena_Reward= 10703,--宝箱奖励
|
||||||
|
|
||||||
--- 主界面商店大页签红点
|
--- 主界面商店大页签红点
|
||||||
Shop_Page_Recharge = 2530,
|
Shop_Page_Recharge = 2530,
|
||||||
|
|
|
@ -187,6 +187,9 @@ function this.RequestArenaChallenge(index, isSkip, func)
|
||||||
-- 不用回放直接显示结果
|
-- 不用回放直接显示结果
|
||||||
UIManager.OpenPanel(UIName.ArenaResultPopup, arg)
|
UIManager.OpenPanel(UIName.ArenaResultPopup, arg)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
CheckRedPointStatus(RedPointType.Arena_Reward)
|
||||||
|
CheckRedPointStatus(RedPointType.Arena_Free)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -343,4 +346,24 @@ end
|
||||||
function this.SetHadTakeBoxData(boxId)
|
function this.SetHadTakeBoxData(boxId)
|
||||||
this.hadTakeBox[boxId] = boxId
|
this.hadTakeBox[boxId] = boxId
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.FreeBattleRedCheck()
|
||||||
|
return this.GetArenaChallengeTimes() > 0
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.RewardBoxRedCheck()
|
||||||
|
local arenaBattleReward = ConfigManager.GetConfig(ConfigName.ArenaBattleReward)
|
||||||
|
local baseData = this.GetArenaBaseData()
|
||||||
|
local allNums = baseData.successNums + baseData.failNums
|
||||||
|
local allBoxGetState = this.GetHadTakeBoxData()
|
||||||
|
for i = 1, 7 do
|
||||||
|
if arenaBattleReward[i] then
|
||||||
|
local state = 1--1 未完成 2 未领取 3 已完成allNums >= arenaBattleReward[i].BattleTimes and false
|
||||||
|
if allNums >= arenaBattleReward[i].BattleTimes and not allBoxGetState[i] then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
return this
|
return this
|
|
@ -348,6 +348,7 @@ function this.ShowRewardBoxProgressData()
|
||||||
NetManager.TakeArenaBattleRewardRequest(i, function(msg)
|
NetManager.TakeArenaBattleRewardRequest(i, function(msg)
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1,function ()
|
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1,function ()
|
||||||
this.ShowRewardBoxProgressData()
|
this.ShowRewardBoxProgressData()
|
||||||
|
CheckRedPointStatus(RedPointType.Arena_Reward)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
@ -136,10 +136,12 @@ function this.InitRedPointAllRelate()
|
||||||
RPData:SetParent(RedPointType.Shop_Guild_Check, RedPointType.Shop_Tab_Guild)
|
RPData:SetParent(RedPointType.Shop_Guild_Check, RedPointType.Shop_Tab_Guild)
|
||||||
RPData:SetParent(RedPointType.Shop_Roam_Check, RedPointType.Shop_Tab_Roam)
|
RPData:SetParent(RedPointType.Shop_Roam_Check, RedPointType.Shop_Tab_Roam)
|
||||||
|
|
||||||
--
|
--竞技场
|
||||||
RPData:SetParent(RedPointType.Arena_Type_Normal, RedPointType.Arena)
|
RPData:SetParent(RedPointType.Arena_Type_Normal, RedPointType.Arena)
|
||||||
RPData:SetParent(RedPointType.Arena_Record, RedPointType.Arena_Type_Normal)
|
RPData:SetParent(RedPointType.Arena_Record, RedPointType.Arena_Type_Normal)
|
||||||
RPData:SetParent(RedPointType.Arena_Shop, RedPointType.Arena_Type_Normal)
|
RPData:SetParent(RedPointType.Arena_Shop, RedPointType.Arena_Type_Normal)
|
||||||
|
RPData:SetParent(RedPointType.Arena_Reward, RedPointType.Arena_Type_Normal)
|
||||||
|
RPData:SetParent(RedPointType.Arena_Free, RedPointType.Arena_Type_Normal)
|
||||||
|
|
||||||
--工坊
|
--工坊
|
||||||
RPData:SetParent(RedPointType.Refining_Weapon, RedPointType.Refining)
|
RPData:SetParent(RedPointType.Refining_Weapon, RedPointType.Refining)
|
||||||
|
@ -247,8 +249,6 @@ function this.InitRedPointAllRelate()
|
||||||
RPData:SetParent(RedPointType.FindFairy_FourView, RedPointType.FindFairy)
|
RPData:SetParent(RedPointType.FindFairy_FourView, RedPointType.FindFairy)
|
||||||
-- 成就
|
-- 成就
|
||||||
RPData:SetParent(RedPointType.Achievement_Main, RedPointType.DailyTaskMain)
|
RPData:SetParent(RedPointType.Achievement_Main, RedPointType.DailyTaskMain)
|
||||||
--大闹天宫 天宫秘宝
|
|
||||||
--RPData:SetParent(RedPointType.Expedition_Treasure, RedPointType.OrdinaryExplore)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 注册红点检测方法
|
-- 注册红点检测方法
|
||||||
|
@ -273,10 +273,13 @@ function this.RegisterRedCheckFunc()
|
||||||
--RPData:AddCheckFunc(RedPointType.TreasureOfSl, TreasureOfSomebodyManagerV2.GetTreasureRedPointState)
|
--RPData:AddCheckFunc(RedPointType.TreasureOfSl, TreasureOfSomebodyManagerV2.GetTreasureRedPointState)
|
||||||
|
|
||||||
RPData:AddCheckFunc(RedPointType.Mail_Local, MailManager.GetMailRedPointState)
|
RPData:AddCheckFunc(RedPointType.Mail_Local, MailManager.GetMailRedPointState)
|
||||||
|
|
||||||
--
|
--
|
||||||
RPData:AddCheckFunc(RedPointType.Role, HeroManager.GetFormationHeroRedPoint)
|
RPData:AddCheckFunc(RedPointType.Role, HeroManager.GetFormationHeroRedPoint)
|
||||||
|
|
||||||
|
--竞技场部分红点
|
||||||
|
RPData:AddCheckFunc(RedPointType.Arena_Free, ArenaManager.FreeBattleRedCheck)
|
||||||
|
RPData:AddCheckFunc(RedPointType.Arena_Reward, ArenaManager.RewardBoxRedCheck)
|
||||||
|
|
||||||
---=== 商店相关红点
|
---=== 商店相关红点
|
||||||
RPData:AddCheckFunc(RedPointType.Arena_Shop, ShopManager.ShopRedCheck)
|
RPData:AddCheckFunc(RedPointType.Arena_Shop, ShopManager.ShopRedCheck)
|
||||||
RPData:AddCheckFunc(RedPointType.Shop_General_Check, ShopManager.ShopRedCheck)
|
RPData:AddCheckFunc(RedPointType.Shop_General_Check, ShopManager.ShopRedCheck)
|
||||||
|
|
Loading…
Reference in New Issue