【引导】修复挂机界面打开时触发引导小手不消失的问题
parent
558bbfdee1
commit
925db190ee
|
@ -364,6 +364,9 @@ function FightPointPassMainPanel:AddListener()
|
|||
Game.GlobalEvent:AddEvent(GameEvent.Player.OnPlayerLvChange, this.RefreshOpenTips)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.DynamicTask.OnMissionChange, this.refreshVipTask)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.JumpServerHeightLadder.UpdateWordLv, this.UpdateWordLv)
|
||||
|
||||
Game.GlobalEvent:AddEvent(GameEvent.UI.OnOpen, this.OnUIOpen)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone)
|
||||
end
|
||||
|
||||
--移除事件监听(用于子类重写)
|
||||
|
@ -380,6 +383,9 @@ function FightPointPassMainPanel:RemoveListener()
|
|||
Game.GlobalEvent:RemoveEvent(GameEvent.Player.OnPlayerLvChange, this.RefreshOpenTips)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.DynamicTask.OnMissionChange, this.refreshVipTask)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.JumpServerHeightLadder.UpdateWordLv, this.UpdateWordLv)
|
||||
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, this.OnUIOpen)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone)
|
||||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
|
@ -671,9 +677,16 @@ function this.RefreshPassGiftShow()
|
|||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- 打开引导界面时关闭小手提示
|
||||
function this.OnUIOpen(id)
|
||||
if id == UIName.GuidePanel then
|
||||
this.fightGuideEffect:SetActive(false)
|
||||
end
|
||||
end
|
||||
-- 引导结束再显示小手
|
||||
function this.OnFuncGuideDone()
|
||||
this.fightGuideEffect:SetActive(not GuideManager.IsInMainGuide() and not GuideManager.IsFunctionGuideExist())
|
||||
end
|
||||
-- 设置挑战按钮文字
|
||||
function this.SetFightBtnText()
|
||||
this.fightLock:SetActive(false)
|
||||
|
|
Loading…
Reference in New Issue