主城大剑豪添加红点
parent
cfec8706ee
commit
cbcfc70ea3
|
|
@ -691,7 +691,7 @@ RedPointType = {
|
||||||
SecretBox = 103, --秘盒
|
SecretBox = 103, --秘盒
|
||||||
Guild = 104, --公会
|
Guild = 104, --公会
|
||||||
----戒灵相关-----
|
----戒灵相关-----
|
||||||
--JieLing = 105, --主界面戒灵按钮
|
TaSuiLingXiao = 105, --主界面戒灵按钮
|
||||||
NewFight = 1005, -- 新关卡
|
NewFight = 1005, -- 新关卡
|
||||||
Refining = 106, --工坊
|
Refining = 106, --工坊
|
||||||
Arena = 107, --竞技场
|
Arena = 107, --竞技场
|
||||||
|
|
|
||||||
|
|
@ -1154,6 +1154,18 @@ function this.GetTaskStartTime(activityType)
|
||||||
return startTime
|
return startTime
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
--检测踏碎凌霄红点
|
||||||
|
function this.CheckTaSuiLingXiaoRed()
|
||||||
|
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TaSuiLingXiao)
|
||||||
|
if not actId or actId <= 0 then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
local state=PlayerPrefs.GetInt(PlayerManager.uid.."tasuilingxiao")
|
||||||
|
return state==0
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--获取活动剩余时间
|
--获取活动剩余时间
|
||||||
function this.GetTaskRemainTime(activityType)
|
function this.GetTaskRemainTime(activityType)
|
||||||
local remainTime = 0
|
local remainTime = 0
|
||||||
|
|
|
||||||
|
|
@ -1216,6 +1216,7 @@ function this:TabBtnAction(id,actType,data)
|
||||||
-- UIManager.OpenPanel(UIName.FuXingGaoZhaoPanel)
|
-- UIManager.OpenPanel(UIName.FuXingGaoZhaoPanel)
|
||||||
elseif id == ActivityTypeDef.TaSuiLingXiao then
|
elseif id == ActivityTypeDef.TaSuiLingXiao then
|
||||||
UIManager.OpenPanel(UIName.TaSuiLingXiaoPanel)
|
UIManager.OpenPanel(UIName.TaSuiLingXiaoPanel)
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."tasuilingxiao",1)
|
||||||
elseif id == ActivityTypeDef.lingLongBaoJing then
|
elseif id == ActivityTypeDef.lingLongBaoJing then
|
||||||
UIManager.OpenPanel(UIName.ActivityMainPanel,id)
|
UIManager.OpenPanel(UIName.ActivityMainPanel,id)
|
||||||
elseif id == ActivityTypeDef.SurpriseBox then
|
elseif id == ActivityTypeDef.SurpriseBox then
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ function this.ResetLocalData(var)--初始化所有本地的每日一刷--1是五
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."hotRank",0)
|
PlayerPrefs.SetInt(PlayerManager.uid.."hotRank",0)
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin128",0)
|
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin128",0)
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin328",0)
|
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin328",0)
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."tasuilingxiao",0)
|
||||||
end
|
end
|
||||||
|
|
||||||
if var == 1 then
|
if var == 1 then
|
||||||
|
|
|
||||||
|
|
@ -409,6 +409,7 @@ function this.RegisterRedCheckFunc()
|
||||||
|
|
||||||
---=== 商店相关红点
|
---=== 商店相关红点
|
||||||
-- RPData:AddCheckFunc(RedPointType.Arena_Shop, ShopManager.ShopRedCheck)
|
-- RPData:AddCheckFunc(RedPointType.Arena_Shop, ShopManager.ShopRedCheck)
|
||||||
|
RPData:AddCheckFunc(RedPointType.TaSuiLingXiao, ActivityGiftManager.CheckTaSuiLingXiaoRed)
|
||||||
RPData:AddCheckFunc(RedPointType.Shop_General_Check, ShopManager.ShopRedCheck)
|
RPData:AddCheckFunc(RedPointType.Shop_General_Check, ShopManager.ShopRedCheck)
|
||||||
RPData:AddCheckFunc(RedPointType.Shop_General_Refresh, ShopManager.ShopRedCheck)
|
RPData:AddCheckFunc(RedPointType.Shop_General_Refresh, ShopManager.ShopRedCheck)
|
||||||
RPData:AddCheckFunc(RedPointType.Shop_Soul_Refresh, ShopManager.ShopRedCheck)
|
RPData:AddCheckFunc(RedPointType.Shop_Soul_Refresh, ShopManager.ShopRedCheck)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue