【十绝阵】左上角数据刷新不及时,得重进界面才变化
parent
792a72676a
commit
50268807c3
|
@ -103,10 +103,12 @@ end
|
||||||
|
|
||||||
function DeathPosInfoPanel:AddListener()
|
function DeathPosInfoPanel:AddListener()
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel)
|
Game.GlobalEvent:AddEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel)
|
||||||
|
Game.GlobalEvent:AddEvent(GameEvent.Guild.RefreshFirstChangeData, this.RefreshGuildNameAndServerName)
|
||||||
end
|
end
|
||||||
|
|
||||||
function DeathPosInfoPanel:RemoveListener()
|
function DeathPosInfoPanel:RemoveListener()
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel)
|
||||||
|
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshFirstChangeData, this.RefreshGuildNameAndServerName)
|
||||||
end
|
end
|
||||||
function DeathPosInfoPanel:OnOpen(...)
|
function DeathPosInfoPanel:OnOpen(...)
|
||||||
local args={...}
|
local args={...}
|
||||||
|
@ -180,6 +182,7 @@ function this.RefreshPanel()
|
||||||
end
|
end
|
||||||
|
|
||||||
--刷新第一名公会 服务器 名字信息
|
--刷新第一名公会 服务器 名字信息
|
||||||
|
--为什么 再onshow 调一次 事件监听又调用一次呢 有可能刷新界面的时候 推送还没有过来
|
||||||
function this.RefreshGuildNameAndServerName()
|
function this.RefreshGuildNameAndServerName()
|
||||||
local data=DeathPosManager.GetGuildInfoData()
|
local data=DeathPosManager.GetGuildInfoData()
|
||||||
for key, value in pairs(data) do
|
for key, value in pairs(data) do
|
||||||
|
|
Loading…
Reference in New Issue