【十绝阵】左上角数据刷新不及时,得重进界面才变化

dev_chengFeng
zhangqiang 2021-08-27 15:12:22 +08:00
parent 792a72676a
commit 50268807c3
1 changed files with 3 additions and 0 deletions

View File

@ -103,10 +103,12 @@ end
function DeathPosInfoPanel:AddListener()
Game.GlobalEvent:AddEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel)
Game.GlobalEvent:AddEvent(GameEvent.Guild.RefreshFirstChangeData, this.RefreshGuildNameAndServerName)
end
function DeathPosInfoPanel:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel)
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshFirstChangeData, this.RefreshGuildNameAndServerName)
end
function DeathPosInfoPanel:OnOpen(...)
local args={...}
@ -180,6 +182,7 @@ function this.RefreshPanel()
end
--刷新第一名公会 服务器 名字信息
--为什么 再onshow 调一次 事件监听又调用一次呢 有可能刷新界面的时候 推送还没有过来
function this.RefreshGuildNameAndServerName()
local data=DeathPosManager.GetGuildInfoData()
for key, value in pairs(data) do