【竞技场】在线跨0点,免费次数不刷
parent
f9b93995f7
commit
3870a1cec6
|
@ -147,6 +147,7 @@ function ArenaView:AddListener()
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Formation.OnFormationChange, this.RefreshDefendFormation)
|
Game.GlobalEvent:AddEvent(GameEvent.Formation.OnFormationChange, this.RefreshDefendFormation)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Arena.OnBaseDataChange, this.RefreshBaseData)
|
Game.GlobalEvent:AddEvent(GameEvent.Arena.OnBaseDataChange, this.RefreshBaseData)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Arena.OnBaseDataChange, this.RefreshEnemyData)
|
Game.GlobalEvent:AddEvent(GameEvent.Arena.OnBaseDataChange, this.RefreshEnemyData)
|
||||||
|
Game.GlobalEvent:AddEvent(GameEvent.FiveAMRefresh.ServerNotifyRefresh, this.ZeroRefresh)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, this.RefreshEnemyData)
|
Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, this.RefreshEnemyData)
|
||||||
|
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Arena.OnRankDataChange, this.RefreshRankInfo)
|
Game.GlobalEvent:AddEvent(GameEvent.Arena.OnRankDataChange, this.RefreshRankInfo)
|
||||||
|
@ -159,6 +160,7 @@ function ArenaView:RemoveListener()
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Formation.OnFormationChange, this.RefreshDefendFormation)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Formation.OnFormationChange, this.RefreshDefendFormation)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Arena.OnBaseDataChange, this.RefreshBaseData)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Arena.OnBaseDataChange, this.RefreshBaseData)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Arena.OnBaseDataChange, this.RefreshEnemyData)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Arena.OnBaseDataChange, this.RefreshEnemyData)
|
||||||
|
Game.GlobalEvent:RemoveEvent(GameEvent.FiveAMRefresh.ServerNotifyRefresh, this.ZeroRefresh)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold, this.RefreshEnemyData)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold, this.RefreshEnemyData)
|
||||||
|
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Arena.OnRankDataChange, this.RefreshRankInfo)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Arena.OnRankDataChange, this.RefreshRankInfo)
|
||||||
|
@ -197,6 +199,10 @@ function ArenaView:OnOpen( sortingOrder,_parent)
|
||||||
this.RefreshReward()
|
this.RefreshReward()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 0点在这个界面时刷新数据
|
||||||
|
function this.ZeroRefresh()
|
||||||
|
NetManager.RequestBaseArenaData()
|
||||||
|
end
|
||||||
-- 刷新排名信息
|
-- 刷新排名信息
|
||||||
function this.RefreshRankInfo()
|
function this.RefreshRankInfo()
|
||||||
local _, myRankInfo = ArenaManager.GetRankInfo()
|
local _, myRankInfo = ArenaManager.GetRankInfo()
|
||||||
|
|
Loading…
Reference in New Issue