【无尽副本】世界等级显示1级 修改

dev_chengFeng
ZhangBiao 2021-01-13 11:04:28 +08:00
parent a7feaa8b2e
commit a75d553a6a
4 changed files with 9 additions and 2 deletions

View File

@ -207,7 +207,7 @@ function this.SetStaticData()
this.worldLevel.text = EndLessMapManager.worldLevel
this.worldLevel.text = PlayerManager.worldLeve --EndLessMapManager.worldLevel
this.worldMode.text = MAP_MODE[mapConfig[EndLessMapManager.openMapId].DifficultType]
this.miniMapName.text = mapData.Info
end

View File

@ -807,6 +807,6 @@ function this.WorldLevelIndication(buffer)
local msg = PlayerInfoProto_pb.WorldLevelIndication()
msg:ParseFromString(data)
-- LogError("%%%%%%%%%%世界等级推送 "..msg.worldLeve)
-- PlayerManager.RefreshWorldLeveData(msg.worldLeve)
PlayerManager.RefreshWorldLeveData(msg.worldLeve)
end
return this

View File

@ -211,6 +211,7 @@ function this.PlayerInfoRequest(func)
-- LogGreen("GetPlayerInfoResponse.treasureLevel:"..msg.treasureLevel)
QinglongSerectTreasureManager.SetLevel(msg.treasureLevel)
QinglongSerectTreasureManager.SetTreasureBuyStatus(msg.hadBuyTreasure)
PlayerManager.RefreshWorldLeveData(msg.worldLeve)
if func then
func(msg)
end

View File

@ -442,6 +442,12 @@ function this.StarBattleUpLvTipTime(type)
battleUpLvTipTime:Start()
end
end
function this.RefreshWorldLeveData(worldLeve)
this.worldLeve = worldLeve
-- Game.GlobalEvent:DispatchEvent(GameEvent.JumpServerHeightLadder.UpdateWordLv)
end
function this.StopBattleUpLvTipTime()
if battleUpLvTipTime then
battleUpLvTipTime:Stop()