【竞技场】增加产出

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