【跨服天梯】 提交

zhangqiang 2020-11-20 17:35:49 +08:00
parent a0b0a19654
commit e3960fc466
2 changed files with 15 additions and 2 deletions

View File

@ -90,6 +90,10 @@ function this.RankNodeAdapter(node, data)
upImage:SetActive(false)
downImage:SetActive(false)
sortTip:SetActive(false)
local isWin = data.fightResult == 1
local color = isWin and UIColor.GREEN or UIColor.RED
curSort:GetComponent("Text").color = color
nextSort:GetComponent("Text").color = color
if data.attackInfo.personInfo.score > data.attackInfo.personInfo.worshipTime then
upImage:SetActive(true)
curSort:SetActive(true)
@ -112,9 +116,7 @@ function this.RankNodeAdapter(node, data)
_PlayerHeadList[node]:SetLayer(this.sortingOrder)
_PlayerHeadList[node]:SetEffectScale(0.85)
local isWin = data.fightResult == 1
local resultStr = isWin and Language[10091] or Language[10092]
local color = isWin and UIColor.GREEN or UIColor.RED
result.text = resultStr
result.color = color

View File

@ -143,6 +143,9 @@ function this.SetRankingInfo()
elseif sData.rankType == RANK_TYPE.CELEBRATION_GUILD then
dData = { rankInfo = {param1 = myRankData.param1},
score = myRankData.param1}
elseif sData.rankType == RANK_TYPE.JUMPSERVER_HIGHTLADDER then
dData = { rankInfo = {param1 = myRankData.param1},
force = myRankData.param1}
end
this.SetInfoShow(this.infoGo,dData,sData.rankType)
--数据拆分
@ -404,6 +407,14 @@ function this.SetInfoShow(go,data,rankType,Value0)
Util.GetGameObject(go,"trial/Text"):GetComponent("Text").text = ""
Util.GetGameObject(go,"trial"):GetComponent("Text").text = "贡献度:"..data.rankInfo.param1
end
elseif rankType == RANK_TYPE.JUMPSERVER_HIGHTLADDER then
if data.rankInfo.param1 and data.rankInfo.param1 > 0 then
warPower:SetActive(true)
if Value0 then
Value0:GetComponent("Text").text = "<size=40%>"..data.userName.."</size>"
end
Util.GetGameObject(go,"warPower/Text"):GetComponent("Text").text = data.rankInfo.param1
end
end
end
return RankingSingleListPanel