踏碎凌霄添加红点 可同步
parent
e036706ea8
commit
56a47a4c3d
|
@ -687,7 +687,7 @@ RedPointType = {
|
|||
SecretBox = 103, --秘盒
|
||||
Guild = 104, --公会
|
||||
----戒灵相关-----
|
||||
--JieLing = 105, --主界面戒灵按钮
|
||||
TaSuiLingXiao = 105, --踏碎凌霄红点
|
||||
NewFight = 1005, -- 新关卡
|
||||
Refining = 106, --工坊
|
||||
Arena = 107, --竞技场
|
||||
|
|
|
@ -244,6 +244,17 @@ function this.CheckChapterRed()
|
|||
return chapterRed
|
||||
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.CheckHHBJRedPoint()
|
||||
local activityData=ActivityGiftManager.GetActivityInfoByType(10401)
|
||||
|
|
|
@ -1241,6 +1241,7 @@ function this:TabBtnAction(id,actType,data)
|
|||
-- UIManager.OpenPanel(UIName.FuXingGaoZhaoPanel)
|
||||
elseif id == ActivityTypeDef.TaSuiLingXiao then
|
||||
UIManager.OpenPanel(UIName.TaSuiLingXiaoPanel)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."tasuilingxiao",1)
|
||||
elseif id == ActivityTypeDef.lingLongBaoJing then
|
||||
UIManager.OpenPanel(UIName.ActivityMainPanel,id)
|
||||
elseif id == ActivityTypeDef.SurpriseBox then
|
||||
|
|
|
@ -119,6 +119,7 @@ function this.ResetLocalData(var)--初始化所有本地的每日一刷--1是五
|
|||
PlayerPrefs.SetInt(PlayerManager.uid.."hotRank",0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin128",0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin328",0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."tasuilingxiao",0)
|
||||
end
|
||||
|
||||
if var == 1 then
|
||||
|
|
|
@ -725,6 +725,7 @@ function this.RegisterRedCheckFunc()
|
|||
RPData:AddCheckFunc(RedPointType.godsWayTower,GodsWayTowerManager.CheckRedPointStatus)
|
||||
|
||||
RPData:AddCheckFunc(RedPointType.HelpFight,HelpFightManager.CheckRedPoint)
|
||||
RPData:AddCheckFunc(RedPointType.TaSuiLingXiao,ActivityGiftManager.CheckTaSuiLingXiaoRed)
|
||||
end
|
||||
|
||||
-- 向红点绑定物体
|
||||
|
|
|
@ -187,7 +187,7 @@ function TaSuiLingXiao:ShowSlide()
|
|||
end
|
||||
|
||||
function TaSuiLingXiao:OnClose()
|
||||
|
||||
CheckRedPointStatus(RedPointType.TaSuiLingXiao)
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
Loading…
Reference in New Issue