zhangjiannan 2025-07-22 20:53:58 +08:00
parent 615d8864de
commit 78330d2c18
3 changed files with 16 additions and 3 deletions

View File

@ -279,7 +279,12 @@ function this.SetMyRank(data)
local guildData = MyGuildManager.GetMyGuildInfo()
local masterInfo = MyGuildManager.GetMyGuildMasterInfo()
guildName.text = guildData.name
playerName.text = GetLanguageStrById(masterInfo.userName)
if masterInfo then
playerName.text = GetLanguageStrById(masterInfo.userName)
else
playerName.text = "..."
end
hurt.text = "0.00"..GetLanguageStrById(10042)
score.text = 0
end

View File

@ -329,7 +329,11 @@ function this.RefreshBaseInfoShow()
this.guildName.text = guildData.name
this.guildAnnounce.text = guildData.annouce
this.guildLevel.text = curGuildlv
this.guildMaster.text = masterInfo.userName
if masterInfo then
this.guildMaster.text = masterInfo.userName
else
this.guildMaster.text = "..."
end
this.guildMember.text = string.format("%s/%s", guildData.totalNum, curGuildLevelInfo.Num)
this.expText.text = string.format("%s/%s", guildData.exp, curGuildLevelInfo.Exp)
this.expSlider.value = guildData.exp/curGuildLevelInfo.Exp

View File

@ -510,7 +510,11 @@ function this.RefreshGuildInfo()
this.GuildName.text = guildData.name
this.GuildAnnounce.text = guildData.annouce
this.GuildLv.text = curGuildlv
this.GuildMasterName.text = GetLanguageStrById(masterInfo.userName)
if masterInfo then
this.GuildMasterName.text = GetLanguageStrById(masterInfo.userName)
else
this.GuildMasterName.text = "..."
end
this.GuildMember.text = string.format("%s / %s", guildData.totalNum, curGuildLevelInfo.Num)
this.GuildExp.text = string.format("%s/%s", guildData.exp, curGuildLevelInfo.Exp)
this.GuildSlider.value = guildData.exp/curGuildLevelInfo.Exp