tcx_xiyou_yueNan
parent
b73fafd485
commit
695125c9fe
|
@ -17,31 +17,31 @@ function ArenaTypePanel:InitComponent()
|
||||||
this.yxld_normal = Util.GetGameObject(this.btnYXLD, "normal")
|
this.yxld_normal = Util.GetGameObject(this.btnYXLD, "normal")
|
||||||
this.yxld_lock = Util.GetGameObject(this.btnYXLD, "lock")
|
this.yxld_lock = Util.GetGameObject(this.btnYXLD, "lock")
|
||||||
this.yxld_lockTip = Util.GetGameObject(this.yxld_lock, "Tip"):GetComponent("Text")
|
this.yxld_lockTip = Util.GetGameObject(this.yxld_lock, "Tip"):GetComponent("Text")
|
||||||
this.yxld_Season = Util.GetGameObject(this.yxld_normal, "Season/Text"):GetComponent("Text")
|
this.yxld_Season = Util.GetGameObject(this.yxld_normal, "Season"):GetComponent("Text")
|
||||||
this.yxld_SeasonTime = Util.GetGameObject(this.yxld_normal, "Season/Time"):GetComponent("Text")
|
this.yxld_SeasonTime = Util.GetGameObject(this.yxld_normal, "Season/Time"):GetComponent("Text")
|
||||||
this.yxld_Score = Util.GetGameObject(this.yxld_normal, "Score/Text"):GetComponent("Text")
|
this.yxld_Score = Util.GetGameObject(this.yxld_normal, "Score"):GetComponent("Text")
|
||||||
this.yxld_Rank = Util.GetGameObject(this.yxld_normal, "Rank/Text"):GetComponent("Text")
|
this.yxld_Rank = Util.GetGameObject(this.yxld_normal, "Rank"):GetComponent("Text")
|
||||||
this.yxld_RankNane = Util.GetGameObject(this.yxld_normal, "RankName"):GetComponent("Text")
|
this.yxld_RankNane = Util.GetGameObject(this.yxld_normal, "RankName"):GetComponent("Text")
|
||||||
this.yxld_Redpot = Util.GetGameObject(this.btnYXLD, "bg/redpot")
|
this.yxld_Redpot = Util.GetGameObject(this.btnYXLD, "bg/redpot")
|
||||||
|
|
||||||
this.Arena_Name = Util.GetGameObject(this.btnArena, "Name"):GetComponent("Text")
|
this.Arena_Name = Util.GetGameObject(this.btnArena, "Name"):GetComponent("Text")
|
||||||
this.Arena_Season = Util.GetGameObject(this.btnArena, "Season/Text"):GetComponent("Text")
|
this.Arena_Season = Util.GetGameObject(this.btnArena, "Season"):GetComponent("Text")
|
||||||
this.Arena_SeasonTime = Util.GetGameObject(this.btnArena, "Season/Time"):GetComponent("Text")
|
this.Arena_SeasonTime = Util.GetGameObject(this.btnArena, "Season/Time"):GetComponent("Text")
|
||||||
this.Arena_Score = Util.GetGameObject(this.btnArena, "Score/Text"):GetComponent("Text")
|
this.Arena_Score = Util.GetGameObject(this.btnArena, "Score"):GetComponent("Text")
|
||||||
this.Arena_Rank = Util.GetGameObject(this.btnArena, "Rank/Text"):GetComponent("Text")
|
this.Arena_Rank = Util.GetGameObject(this.btnArena, "Rank"):GetComponent("Text")
|
||||||
this.Arena_RankNane = Util.GetGameObject(this.btnArena, "RankName"):GetComponent("Text")
|
this.Arena_RankNane = Util.GetGameObject(this.btnArena, "RankName"):GetComponent("Text")
|
||||||
|
|
||||||
this.TopMatch_Normal = Util.GetGameObject(this.btnTopMatch, "normal")
|
this.TopMatch_Normal = Util.GetGameObject(this.btnTopMatch, "normal")
|
||||||
this.TopMatch_NormalBG = Util.GetGameObject(this.btnTopMatch, "nBg")
|
this.TopMatch_NormalBG = Util.GetGameObject(this.btnTopMatch, "nBg")
|
||||||
this.TopMatch_Name = Util.GetGameObject(this.btnTopMatch, "Name"):GetComponent("Text")
|
this.TopMatch_Name = Util.GetGameObject(this.btnTopMatch, "Name"):GetComponent("Text")
|
||||||
this.TopMatch_SeasonState = Util.GetGameObject(this.TopMatch_Normal, "Season"):GetComponent("Text")
|
this.TopMatch_SeasonState = Util.GetGameObject(this.TopMatch_Normal, "Season"):GetComponent("Text")
|
||||||
this.TopMatch_Season = Util.GetGameObject(this.TopMatch_Normal, "Season/Text"):GetComponent("Text")
|
this.TopMatch_Season = Util.GetGameObject(this.TopMatch_Normal, "Season"):GetComponent("Text")
|
||||||
this.TopMatch_SeasonTime = Util.GetGameObject(this.TopMatch_Normal, "Season/Time"):GetComponent("Text")
|
this.TopMatch_SeasonTime = Util.GetGameObject(this.TopMatch_Normal, "Season/Time"):GetComponent("Text")
|
||||||
this.TopMatch_StageObj = Util.GetGameObject(this.TopMatch_Normal, "Stage")
|
this.TopMatch_StageObj = Util.GetGameObject(this.TopMatch_Normal, "Stage")
|
||||||
this.TopMatch_BestRankObj = Util.GetGameObject(this.TopMatch_Normal, "BestRank")
|
this.TopMatch_BestRankObj = Util.GetGameObject(this.TopMatch_Normal, "BestRank")
|
||||||
this.TopMatch_Stage = Util.GetGameObject(this.TopMatch_Normal, "Stage/Text"):GetComponent("Text")
|
this.TopMatch_Stage = Util.GetGameObject(this.TopMatch_Normal, "Stage"):GetComponent("Text")
|
||||||
this.TopMatch_Rank = Util.GetGameObject(this.TopMatch_Normal, "MyRank/Text"):GetComponent("Text")
|
this.TopMatch_Rank = Util.GetGameObject(this.TopMatch_Normal, "MyRank"):GetComponent("Text")
|
||||||
this.TopMatch_BestRank = Util.GetGameObject(this.TopMatch_Normal, "BestRank/Text"):GetComponent("Text")
|
this.TopMatch_BestRank = Util.GetGameObject(this.TopMatch_Normal, "BestRank"):GetComponent("Text")
|
||||||
this.TopMatch_Red = Util.GetGameObject(this.btnTopMatch, "bg/redpot")
|
this.TopMatch_Red = Util.GetGameObject(this.btnTopMatch, "bg/redpot")
|
||||||
this.TopMatch_Lock = Util.GetGameObject(this.btnTopMatch, "lock")
|
this.TopMatch_Lock = Util.GetGameObject(this.btnTopMatch, "lock")
|
||||||
this.TopMatch_LockBg = Util.GetGameObject(this.btnTopMatch, "lBg")
|
this.TopMatch_LockBg = Util.GetGameObject(this.btnTopMatch, "lBg")
|
||||||
|
@ -196,19 +196,19 @@ end
|
||||||
function this.RefreshArenaShow()
|
function this.RefreshArenaShow()
|
||||||
this.Arena_Name.text = ArenaManager.GetArenaName()
|
this.Arena_Name.text = ArenaManager.GetArenaName()
|
||||||
local baseData = ArenaManager.GetArenaBaseData()
|
local baseData = ArenaManager.GetArenaBaseData()
|
||||||
this.Arena_Score.text = baseData.score
|
this.Arena_Score.text = GetLanguageStrById("我的积分:") .. baseData.score
|
||||||
local _, myRankInfo = ArenaManager.GetRankInfo()
|
local _, myRankInfo = ArenaManager.GetRankInfo()
|
||||||
local myRank = myRankInfo.personInfo.rank
|
local myRank = myRankInfo.personInfo.rank
|
||||||
if myRank < 0 then
|
if myRank < 0 then
|
||||||
myRank = Language[10036]
|
myRank = Language[10036]
|
||||||
end
|
end
|
||||||
this.Arena_Rank.text = myRank
|
this.Arena_Rank.text = GetLanguageStrById("我的排名:") .. myRank
|
||||||
this.Arena_RankNane.text = GetLanguageStrById(ConfigManager.GetConfigData(ConfigName.ArenaRoom, baseData.roomId)
|
this.Arena_RankNane.text = GetLanguageStrById(ConfigManager.GetConfigData(ConfigName.ArenaRoom, baseData.roomId)
|
||||||
.ArenaRoomName) --baseData.rankName
|
.ArenaRoomName) --baseData.rankName
|
||||||
local serData = ActTimeCtrlManager.GetSerDataByTypeId(FUNCTION_OPEN_TYPE.ARENA)
|
local serData = ActTimeCtrlManager.GetSerDataByTypeId(FUNCTION_OPEN_TYPE.ARENA)
|
||||||
local startDate = os.date("%m.%d", serData.startTime)
|
local startDate = os.date("%m.%d", serData.startTime)
|
||||||
local endDate = os.date("%m.%d", serData.endTime)
|
local endDate = os.date("%m.%d", serData.endTime)
|
||||||
this.Arena_Season.text = string.format("%s-%s", startDate, endDate)
|
this.Arena_Season.text = GetLanguageStrById("当前赛季:") .. string.format("%s-%s", startDate, endDate)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 刷新竞技场显示
|
-- 刷新竞技场显示
|
||||||
|
@ -224,22 +224,22 @@ function this.RefreshYXLDShow(_msg)
|
||||||
this.yxld_normal:SetActive(true)
|
this.yxld_normal:SetActive(true)
|
||||||
local myRank = 0
|
local myRank = 0
|
||||||
if _msg then
|
if _msg then
|
||||||
this.yxld_Score.text = _msg.newMyscore
|
this.yxld_Score.text = GetLanguageStrById("我的积分:") .. _msg.newMyscore
|
||||||
myRank = _msg.myRank
|
myRank = _msg.myRank
|
||||||
else
|
else
|
||||||
this.yxld_Score.text = WorldArenaManager.GetNewScore()
|
this.yxld_Score.text = GetLanguageStrById("我的积分:") .. WorldArenaManager.GetNewScore()
|
||||||
myRank = WorldArenaManager.GetMyRank()
|
myRank = WorldArenaManager.GetMyRank()
|
||||||
end
|
end
|
||||||
|
|
||||||
if myRank <= 0 then
|
if myRank <= 0 then
|
||||||
myRank = Language[10036]
|
myRank = Language[10036]
|
||||||
end
|
end
|
||||||
this.yxld_Rank.text = myRank
|
this.yxld_Rank.text = GetLanguageStrById("我的排名:") .. myRank
|
||||||
--this.yxld_RankNane.text=ConfigManager.GetConfigData(ConfigName.ArenaRoom,baseData.roomId).ArenaRoomName --baseData.rankName
|
--this.yxld_RankNane.text=ConfigManager.GetConfigData(ConfigName.ArenaRoom,baseData.roomId).ArenaRoomName --baseData.rankName
|
||||||
local serData = ActTimeCtrlManager.GetSerDataByTypeId(FUNCTION_OPEN_TYPE.JumpServer_YuXu)
|
local serData = ActTimeCtrlManager.GetSerDataByTypeId(FUNCTION_OPEN_TYPE.JumpServer_YuXu)
|
||||||
local startDate = os.date("%m.%d", serData.startTime)
|
local startDate = os.date("%m.%d", serData.startTime)
|
||||||
local endDate = os.date("%m.%d", serData.endTime)
|
local endDate = os.date("%m.%d", serData.endTime)
|
||||||
this.yxld_Season.text = string.format("%s-%s", startDate, endDate)
|
this.yxld_Season.text = GetLanguageStrById("当前赛季:") .. string.format("%s-%s", startDate, endDate)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -335,14 +335,14 @@ function this.RefreshTopMatchShow()
|
||||||
str = Language[10097]
|
str = Language[10097]
|
||||||
end
|
end
|
||||||
this.TopMatch_SeasonState.text = str
|
this.TopMatch_SeasonState.text = str
|
||||||
this.TopMatch_Season.text = string.format("%s-%s", startDate, endDate)
|
this.TopMatch_Season.text = GetLanguageStrById("当前赛季:") .. string.format("%s-%s", startDate, endDate)
|
||||||
this.TopMatch_StageObj:SetActive(false)
|
this.TopMatch_StageObj:SetActive(false)
|
||||||
this.TopMatch_BestRankObj:SetActive(false)
|
this.TopMatch_BestRankObj:SetActive(false)
|
||||||
local rank = JumpServerManager.GetHightLadderDataMyRank() <= 1000 and
|
local rank = JumpServerManager.GetHightLadderDataMyRank() <= 1000 and
|
||||||
JumpServerManager.GetHightLadderDataMyRank() or "1000+"
|
JumpServerManager.GetHightLadderDataMyRank() or "1000+"
|
||||||
this.TopMatch_Rank.text = rank
|
this.TopMatch_Rank.text = GetLanguageStrById("我的排名:") .. rank
|
||||||
else
|
else
|
||||||
this.TopMatch_Season.text = Language[10098]
|
this.TopMatch_Season.text = GetLanguageStrById("当前赛季:") .. Language[10098]
|
||||||
end
|
end
|
||||||
this.TopMatch_Normal:SetActive(true)
|
this.TopMatch_Normal:SetActive(true)
|
||||||
this.TopMatch_Lock:SetActive(false)
|
this.TopMatch_Lock:SetActive(false)
|
||||||
|
|
Loading…
Reference in New Issue