森罗去除遮罩

dev_chengFeng
ZhangBiao 2020-08-06 15:05:33 +08:00
parent fee7d18688
commit 3522da8a3a
3 changed files with 5 additions and 3 deletions

View File

@ -132,7 +132,7 @@ function this:AddListener()
Game.GlobalEvent:AddEvent(GameEvent.Map.MapDataChange, this.OnMapDataChange)
Game.GlobalEvent:AddEvent(GameEvent.Map.StopWalk, this.StopWalking)
Game.GlobalEvent:AddEvent(GameEvent.FoodBuff.OnFoodBuffStateChanged, this.RefreshBuffShow)
Game.GlobalEvent:AddEvent(GameEvent.Map.MaskState, this.MaskState)
-- Game.GlobalEvent:AddEvent(GameEvent.Map.MaskState, this.MaskState)
missionView.AddListener()
playerView.AddListener()
@ -152,7 +152,7 @@ function this:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.Map.MapDataChange, this.OnMapDataChange)
Game.GlobalEvent:RemoveEvent(GameEvent.Map.StopWalk, this.StopWalking)
Game.GlobalEvent:RemoveEvent(GameEvent.FoodBuff.OnFoodBuffStateChanged, this.RefreshBuffShow)
Game.GlobalEvent:RemoveEvent(GameEvent.Map.MaskState, this.MaskState)
-- Game.GlobalEvent:RemoveEvent(GameEvent.Map.MaskState, this.MaskState)
missionView.RemoveListener()
playerView.RemoveListener()

View File

@ -31,10 +31,12 @@ end
function this:BindEvent()
Util.AddClick(this.e_cancelBtn,function()
Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
Game.GlobalEvent:DispatchEvent(GameEvent.Map.MaskState,0)
self:ClosePanel()
end)
Util.AddClick(this.btnBack,function()
Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
Game.GlobalEvent:DispatchEvent(GameEvent.Map.MaskState,0)
self:ClosePanel()
end)

View File

@ -119,7 +119,7 @@ function this.ClosePanelRefreshData()
end
--界面关闭时调用(用于子类重写)
function BattleFailPopup:OnClose()
Game.GlobalEvent:DispatchEvent(GameEvent.Map.MaskState,0)
end
--界面销毁时调用(用于子类重写)