【竞技场】增加产出
parent
d938acc273
commit
be9b79897e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue