挂机界面刷新boss关卡显示
parent
ec01784076
commit
9f61f2cc0a
|
|
@ -410,8 +410,9 @@ local levelList={}
|
||||||
--刷新boss信息显示
|
--刷新boss信息显示
|
||||||
function this.RefreshBossInfo()
|
function this.RefreshBossInfo()
|
||||||
levelList={}
|
levelList={}
|
||||||
|
|
||||||
local curFight=FightPointPassManager.curOpenFight
|
local curFight=FightPointPassManager.curOpenFight
|
||||||
--LogError("curfight==========================================================="..curFight)
|
LogError("刷星boss显示 curfight==========================================================="..curFight)
|
||||||
for k,v in ConfigPairs(fightLevelConfig) do
|
for k,v in ConfigPairs(fightLevelConfig) do
|
||||||
if k>=curFight then
|
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
|
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.Guide.FuncGuideDone, this.OnFuncGuideDone)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Solider.RefreshSoliderInfoWindow, this.RefreshSoliderInfo)
|
Game.GlobalEvent:AddEvent(GameEvent.Solider.RefreshSoliderInfoWindow, this.RefreshSoliderInfo)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Solider.RefreshLvInfo, this.RefreshLvInfo)
|
Game.GlobalEvent:AddEvent(GameEvent.Solider.RefreshLvInfo, this.RefreshLvInfo)
|
||||||
|
Game.GlobalEvent:AddEvent(GameEvent.Mission.OnOpenFight, this.RefreshBossInfo)
|
||||||
end
|
end
|
||||||
|
|
||||||
--移除事件监听(用于子类重写)
|
--移除事件监听(用于子类重写)
|
||||||
|
|
@ -773,6 +775,7 @@ function FightPointPassMainPanel:RemoveListener()
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Solider.RefreshSoliderInfoWindow, this.RefreshSoliderInfo)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Solider.RefreshSoliderInfoWindow, this.RefreshSoliderInfo)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Solider.RefreshLvInfo, this.RefreshLvInfo)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Solider.RefreshLvInfo, this.RefreshLvInfo)
|
||||||
|
Game.GlobalEvent:RemoveEvent(GameEvent.Mission.OnOpenFight, this.RefreshBossInfo)
|
||||||
end
|
end
|
||||||
|
|
||||||
--界面打开时调用(用于子类重写)
|
--界面打开时调用(用于子类重写)
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ function this.RefreshFightId(msg)
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Mission.OnPassFight, oldFight)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Mission.OnPassFight, oldFight)
|
||||||
|
|
||||||
-- 服务器更新关卡状态
|
-- 服务器更新关卡状态
|
||||||
LogError("服务器更新关卡状态---------------------------------------------------")
|
LogError("服务器更新关卡状态---------------------------------------------------".. msg.fightId)
|
||||||
this.curOpenFight = msg.fightId
|
this.curOpenFight = msg.fightId
|
||||||
this.curFightState = msg.state
|
this.curFightState = msg.state
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue