【主界面】优化提示框层级问题

dev_chengFeng
gaoxin 2021-05-27 10:47:04 +08:00
parent 7a972628c3
commit 538c8d984e
1 changed files with 4 additions and 1 deletions

View File

@ -666,6 +666,7 @@ function this:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.FiveAMRefresh.ServerNotifyRefresh, this.RefreshEightGiftPreview)
Game.GlobalEvent:RemoveEvent(GameEvent.EightDay.FifteenDayGift, this.RefreshEightGiftPreview)
Game.GlobalEvent:RemoveEvent(GameEvent.FindFairy.RefreshBuyOpenState, this.RefreshGiftBtnShow)
Game.GlobalEvent:RemoveEvent(GameEvent.Player.OnShowBattleUpLvTip, this.RefreshBattleUpLvTip)
Game.GlobalEvent:RemoveEvent(GameEvent.Player.OnPlayerGetSuperManReward, this.GetSuperManReward)
Game.GlobalEvent:RemoveEvent(GameEvent.PatFace.RefreshRightUp, this.SetRightBarSize)--刷新右上伸缩条
end
@ -689,6 +690,9 @@ function this:OnSortingOrderChange()
orginLayer = self.sortingOrder
this.BtView:SetOrderStatus({ sortOrder = self.sortingOrder })
-- 设置提示框层级
this.battleUpLvTip:GetComponent("Canvas").sortingOrder = orginLayer + 10
if this.playerInfoView then
this.playerInfoView:SetLayer(self.sortingOrder)
end
@ -1540,7 +1544,6 @@ end
end
function this.RefreshBattleUpLvTip()
this.battleUpLvTip:GetComponent("Canvas").sortingOrder = orginLayer + 10
this.battleUpLvTip:SetActive(true)
end
local roleRefreshNum = 0