【竞技场】 修复积分规则修改别的pvp 战斗结束后报错 bug
parent
f8dd59fdfc
commit
17882656fe
|
@ -71,6 +71,8 @@ function this.RankNodeAdapter(node, data)
|
|||
local result = Util.GetGameObject(node, "result"):GetComponent("Text")
|
||||
local time = Util.GetGameObject(node, "time"):GetComponent("Text")
|
||||
local deltaScore = Util.GetGameObject(node, "deltaScore"):GetComponent("Text")
|
||||
local deltaScoreGo = Util.GetGameObject(node, "deltaScore")
|
||||
local scoreTipGo = Util.GetGameObject(node, "scoreTip")
|
||||
|
||||
lv_name.text = "lv"..data.attackInfo.level.." "..data.attackInfo.name
|
||||
integral.text = data.attackInfo.score
|
||||
|
@ -96,6 +98,13 @@ function this.RankNodeAdapter(node, data)
|
|||
deltaScore.text = scoreStr
|
||||
result.color = color
|
||||
deltaScore.color = color
|
||||
if data.myScoreChange == 0 then
|
||||
deltaScoreGo:SetActive(false)
|
||||
scoreTipGo:SetActive(false)
|
||||
else
|
||||
deltaScoreGo:SetActive(true)
|
||||
scoreTipGo:SetActive(true)
|
||||
end
|
||||
|
||||
-- 给回放按钮添加事件
|
||||
local replay = Util.GetGameObject(node, "replay")
|
||||
|
|
|
@ -105,7 +105,7 @@ function ArenaResultPopup:OnOpen(_args,_fun)
|
|||
redHeadIcon:GetComponent("Image").sprite = GetPlayerHeadSprite(redInfo.head)
|
||||
redHeadBg:GetComponent("Image").sprite = GetPlayerHeadFrameSprite(redInfo.frame)
|
||||
|
||||
LogYellow("奖励Id:"..args.reward.itemlist[1].itemId.." 奖励数量:"..args.reward.itemlist[1].itemNum)
|
||||
-- LogYellow("奖励Id:"..args.reward.itemlist[1].itemId.." 奖励数量:"..args.reward.itemlist[1].itemNum)
|
||||
if args.reward then
|
||||
reward:SetActive(true)
|
||||
rewardIcon.sprite = Util.LoadSprite(artConfig[itemConfig[rewardData.id].ResourceID].Name)
|
||||
|
@ -118,7 +118,7 @@ function ArenaResultPopup:OnOpen(_args,_fun)
|
|||
blueScore:SetActive(true)
|
||||
local blueScoreColor = bScore >= 0 and UIColorStr.GREEN or UIColorStr.RED
|
||||
local blueScoreStr = bScore >= 0 and "+"..bScore or bScore
|
||||
blueScore:GetComponent("Text").text = string.format(Language[10093], blueScoreColor, blueScoreStr)
|
||||
blueScore:GetComponent("Text").text = bScore ~= 0 and string.format(Language[10093], blueScoreColor, blueScoreStr) or ""
|
||||
else
|
||||
blueScore:SetActive(false)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue