【十绝阵】左上角数据刷新不及时,得重进界面才变化
parent
c542bf612d
commit
037c4a5ac8
|
@ -158,13 +158,14 @@ function this.RefreshPanel()
|
|||
return
|
||||
end
|
||||
|
||||
this.curGuildName.text=guildName~="" and guildName or Language[10086] --设置公会名称 没有占据显示无
|
||||
this.curGuildserverName.text = guildServer or ""
|
||||
if not guildServer or guildServer == "" then
|
||||
this.curGuildserverName.gameObject:SetActive(false)
|
||||
else
|
||||
this.curGuildserverName.gameObject:SetActive(true)
|
||||
end
|
||||
-- this.curGuildName.text=guildName~="" and guildName or Language[10086] --设置公会名称 没有占据显示无
|
||||
-- this.curGuildserverName.text = guildServer or ""
|
||||
-- if not guildServer or guildServer == "" then
|
||||
-- this.curGuildserverName.gameObject:SetActive(false)
|
||||
-- else
|
||||
-- this.curGuildserverName.gameObject:SetActive(true)
|
||||
-- end
|
||||
this.RefreshGuildNameAndServerName()
|
||||
this.title.text=GetLanguageStrById(guildWarConfig[curIndex].Name)..Language[11025]
|
||||
--【线上问题】十绝阵挑战次数显示负数 < 0 and 0 or (DeathPosManager.maxBattleTime-msg.challengeCount)
|
||||
DeathPosManager.battleTime = DeathPosManager.battleTime < 0 and 0 or DeathPosManager.battleTime
|
||||
|
@ -178,6 +179,28 @@ function this.RefreshPanel()
|
|||
this.TabCtrl:Init(this.tabbox, _TabData)
|
||||
end
|
||||
|
||||
--刷新第一名公会 服务器 名字信息
|
||||
function this.RefreshGuildNameAndServerName()
|
||||
local data=DeathPosManager.GetGuildInfoData()
|
||||
for key, value in pairs(data) do
|
||||
if curIndex==value.pathId then
|
||||
if value.guildName and value.guildName ~= "" then
|
||||
guildName = value.guildName
|
||||
end
|
||||
if value.serverName and value.serverName ~= "" then
|
||||
guildServer = value.serverName
|
||||
end
|
||||
this.curGuildName.text=guildName~="" and guildName or Language[10086] --设置公会名称 没有占据显示无
|
||||
this.curGuildserverName.text = guildServer or ""
|
||||
if not guildServer or guildServer == "" then
|
||||
this.curGuildserverName.gameObject:SetActive(false)
|
||||
else
|
||||
this.curGuildserverName.gameObject:SetActive(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--设置敌人编队
|
||||
function this.SetFormation()
|
||||
local monsterGroupId= guildWarConfig[curIndex].MonsterId
|
||||
|
|
Loading…
Reference in New Issue