【主界面】提交
parent
172f98c207
commit
5155b4aeb3
|
@ -362,6 +362,7 @@ GameEvent = {
|
|||
PatFaceSendFinish="PatFace.PatFaceSendFinish",
|
||||
PatFaceHaveGrowGift="PatFace.PatFaceHaveGrowGift",
|
||||
PatFaceClear="PatFace.PatFaceClear",
|
||||
RefreshRightUp = "PatFace.RefreshRightUp"
|
||||
},
|
||||
ATM_RankView={
|
||||
OnRankChange="ATM_RankView.OnRankChange",
|
||||
|
|
|
@ -645,6 +645,7 @@ function this:AddListener()
|
|||
Game.GlobalEvent:AddEvent(GameEvent.FindFairy.RefreshBuyOpenState, this.RefreshGiftBtnShow)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Player.OnShowBattleUpLvTip, this.RefreshBattleUpLvTip)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Player.OnPlayerGetSuperManReward, this.GetSuperManReward)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.PatFace.RefreshRightUp, this.SetRightBarSize)--刷新右上伸缩条
|
||||
end
|
||||
|
||||
--移除事件监听(用于子类重写)
|
||||
|
@ -660,6 +661,7 @@ function this:RemoveListener()
|
|||
Game.GlobalEvent:RemoveEvent(GameEvent.EightDay.FifteenDayGift, this.RefreshEightGiftPreview)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.FindFairy.RefreshBuyOpenState, this.RefreshGiftBtnShow)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Player.OnPlayerGetSuperManReward, this.GetSuperManReward)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.PatFace.RefreshRightUp, this.SetRightBarSize)--刷新右上伸缩条
|
||||
end
|
||||
|
||||
function this.GetSuperManReward()
|
||||
|
@ -766,6 +768,7 @@ end
|
|||
|
||||
--设置右侧条
|
||||
function this.SetRightBarSize()
|
||||
LogWarn("SetRightBarSize刷新")
|
||||
this.RightUp2:SetActive(PlayerManager.level >= 5)
|
||||
local bgSize = Util.GetGameObject(this.RightUp2,"BG"):GetComponent("RectTransform")
|
||||
local btn = Util.GetGameObject(this.RightUp2,"BG/Button")
|
||||
|
|
|
@ -349,6 +349,7 @@ function this.FormationAdapter(teamInfo)
|
|||
end
|
||||
item.gameObject:SetActive(true)
|
||||
local icon = Util.GetGameObject(item,"icon"):GetComponent("Image")
|
||||
icon.sprite = this.spLoader:LoadSprite(GetResourcePath(XiuXianSkillConfig[value.id].Icon))
|
||||
Util.AddOnceClick(item.gameObject,function ()
|
||||
UIManager.OpenPanel(UIName.GeneralInfoPopup,GENERALINFO_TYPE.Imprint,value.id,value.heroTId)
|
||||
end)
|
||||
|
|
|
@ -256,6 +256,9 @@ function this:OnClose()
|
|||
fun()
|
||||
fun = nil
|
||||
end
|
||||
Timer.New(function ()
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.RefreshRightUp)
|
||||
end,1):Start()
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
Loading…
Reference in New Issue