挂机界面刷新boss关卡显示

tcx_xiyou_solider
PC-202302260912\Administrator 2024-03-22 18:18:17 +08:00
parent ec01784076
commit 9f61f2cc0a
2 changed files with 6 additions and 3 deletions

View File

@ -410,8 +410,9 @@ local levelList={}
--刷新boss信息显示
function this.RefreshBossInfo()
levelList={}
local curFight=FightPointPassManager.curOpenFight
--LogError("curfight==========================================================="..curFight)
LogError("刷星boss显示 curfight==========================================================="..curFight)
for k,v in ConfigPairs(fightLevelConfig) do
if k>=curFight then
if v.OpenRule and (v.OpenRule[1][1]==9 or v.OpenRule[1][1]==0 )and FightPointPassManager.soldierLayerId>=v.OpenRule[1][2] then
@ -752,6 +753,7 @@ function FightPointPassMainPanel:AddListener()
Game.GlobalEvent:AddEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone)
Game.GlobalEvent:AddEvent(GameEvent.Solider.RefreshSoliderInfoWindow, this.RefreshSoliderInfo)
Game.GlobalEvent:AddEvent(GameEvent.Solider.RefreshLvInfo, this.RefreshLvInfo)
Game.GlobalEvent:AddEvent(GameEvent.Mission.OnOpenFight, this.RefreshBossInfo)
end
--移除事件监听(用于子类重写)
@ -773,6 +775,7 @@ function FightPointPassMainPanel:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone)
Game.GlobalEvent:RemoveEvent(GameEvent.Solider.RefreshSoliderInfoWindow, this.RefreshSoliderInfo)
Game.GlobalEvent:RemoveEvent(GameEvent.Solider.RefreshLvInfo, this.RefreshLvInfo)
Game.GlobalEvent:RemoveEvent(GameEvent.Mission.OnOpenFight, this.RefreshBossInfo)
end
--界面打开时调用(用于子类重写)

View File

@ -178,7 +178,7 @@ function this.RefreshFightId(msg)
Game.GlobalEvent:DispatchEvent(GameEvent.Mission.OnPassFight, oldFight)
-- 服务器更新关卡状态
LogError("服务器更新关卡状态---------------------------------------------------")
LogError("服务器更新关卡状态---------------------------------------------------".. msg.fightId)
this.curOpenFight = msg.fightId
this.curFightState = msg.state