【竞技场】增加产出

dev_chengFeng
ZhangBiao 2020-11-25 18:23:33 +08:00
parent d938acc273
commit be9b79897e
1 changed files with 11 additions and 11 deletions

View File

@ -85,7 +85,7 @@ function ArenaResultPopup:OnOpen(_args,_fun)
local redName = Util.GetGameObject(_CurPanel, "Right/Grade/name")
local redHeadIcon = Util.GetGameObject(_CurPanel, "Right/Grade/headIcon")
local redHeadBg = Util.GetGameObject(_CurPanel, "Right/Grade/headBg")
local redScore = Util.GetGameObject(_CurPanel, "Right/Grade/score")
-- local redScore = Util.GetGameObject(_CurPanel, "Right/Grade/score")
local redResult = Util.GetGameObject(_CurPanel, "Right/result")
local bigResult = Util.GetGameObject(_CurPanel, "ShiBai_WenZi"):GetComponent("Image")
@ -114,7 +114,7 @@ function ArenaResultPopup:OnOpen(_args,_fun)
-- 积分
local bScore = blueInfo.deltaScore
if bScore then
if bScore and isWin then
blueScore:SetActive(true)
local blueScoreColor = bScore >= 0 and UIColorStr.GREEN or UIColorStr.RED
local blueScoreStr = bScore >= 0 and "+"..bScore or bScore
@ -123,15 +123,15 @@ function ArenaResultPopup:OnOpen(_args,_fun)
blueScore:SetActive(false)
end
local rScore = redInfo.deltaScore
if rScore then
redScore:SetActive(true)
local redScoreColor = rScore >= 0 and UIColorStr.GREEN or UIColorStr.RED
local redScoreStr = rScore >= 0 and "+"..rScore or rScore
redScore:GetComponent("Text").text = string.format(Language[10093],redScoreColor, redScoreStr)
else
redScore:SetActive(false)
end
-- local rScore = redInfo.deltaScore
-- if rScore then
-- redScore:SetActive(true)
-- local redScoreColor = rScore >= 0 and UIColorStr.GREEN or UIColorStr.RED
-- local redScoreStr = rScore >= 0 and "+"..rScore or rScore
-- redScore:GetComponent("Text").text = string.format(Language[10093],redScoreColor, redScoreStr)
-- else
-- redScore:SetActive(false)
-- end
-- 判断显示类型
if panelType == 0 then