【逍遥游】功能入口随功能开启添加

gaoxin 2020-10-19 22:56:05 +08:00
parent 9bde86217d
commit ba87f5c181
4 changed files with 8 additions and 2 deletions

View File

@ -1259,6 +1259,7 @@ FUNCTION_OPEN_TYPE = {
CARDELAY = 73, CARDELAY = 73,
PEOPLE_MIRROR=74,--轩辕宝镜 PEOPLE_MIRROR=74,--轩辕宝镜
COMPOUND_HERO=78,--神将合成、置换 COMPOUND_HERO=78,--神将合成、置换
XiaoYaoYou = 80, -- 逍遥游
} }
TaskGetBtnIconDef = { TaskGetBtnIconDef = {

View File

@ -206,6 +206,7 @@ function FightPointPassMainPanel:InitComponent()
--逍遥游入口 --逍遥游入口
this.btnXiaoYao=Util.GetGameObject(self.gameObject,"Bg/RightUpVertical/xiaoyaoBtn") this.btnXiaoYao=Util.GetGameObject(self.gameObject,"Bg/RightUpVertical/xiaoyaoBtn")
this.xiaoyaoRedPoint=Util.GetGameObject(self.gameObject,"Bg/RightUpVertical/xiaoyaoBtn/redPoint") this.xiaoyaoRedPoint=Util.GetGameObject(self.gameObject,"Bg/RightUpVertical/xiaoyaoBtn/redPoint")
this.funcBtnList[FUNCTION_OPEN_TYPE.XiaoYaoYou] = this.btnXiaoYao
--解锁功能 --解锁功能
this.openFun = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/openFun") this.openFun = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/openFun")
this.openFunNeedInfo = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/openFun/needInfo"):GetComponent("Text") this.openFunNeedInfo = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/openFun/needInfo"):GetComponent("Text")
@ -915,5 +916,6 @@ end
function this.RefreshBattleUpLvTip() function this.RefreshBattleUpLvTip()
this.battleUpLvTip:SetActive(true) this.battleUpLvTip:SetActive(true)
end end
--开服福利显示 结束 --开服福利显示 结束
return FightPointPassMainPanel return FightPointPassMainPanel

View File

@ -425,7 +425,7 @@ function this.RegisterRedCheckFunc()
RPData:AddCheckFunc(RedPointType.WeekGiftPage,OperatingManager.CheckWeekGiftPageRedPoint) RPData:AddCheckFunc(RedPointType.WeekGiftPage,OperatingManager.CheckWeekGiftPageRedPoint)
RPData:AddCheckFunc(RedPointType.MonthGiftPage,OperatingManager.CheckMonthGiftPageRedPoint) RPData:AddCheckFunc(RedPointType.MonthGiftPage,OperatingManager.CheckMonthGiftPageRedPoint)
RPData:AddCheckFunc(RedPointType.XiaoYaoYouRedPoint,XiaoYaoManager.CheckRedPoint) RPData:AddCheckFunc(RedPointType.XiaoYaoYouRedPoint, XiaoYaoManager.CheckRedPoint, FUNCTION_OPEN_TYPE.XiaoYaoYou)
end end

View File

@ -229,7 +229,10 @@ function this.UpdateYunYouVleShow()
end end
--界面关闭时调用(用于子类重写) --界面关闭时调用(用于子类重写)
function this:OnClose() function this:OnClose()
if this.timer then
this.timer:Stop()
end
this.timer = nil
end end
--界面销毁时调用(用于子类重写) --界面销毁时调用(用于子类重写)