挂机界面刷新boss关卡显示
parent
ec01784076
commit
9f61f2cc0a
|
|
@ -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
|
||||
|
|
@ -747,11 +748,12 @@ function FightPointPassMainPanel:AddListener()
|
|||
Game.GlobalEvent:AddEvent(GameEvent.Player.OnPlayerLvChange, this.RefreshOpenTips)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.DynamicTask.OnMissionChange, this.refreshVipTask)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.JumpServerHeightLadder.UpdateWordLv, this.UpdateWordLv)
|
||||
|
||||
|
||||
Game.GlobalEvent:AddEvent(GameEvent.UI.OnOpen, this.OnUIOpen)
|
||||
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
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue