竞技场修改
parent
f3cc8413f2
commit
e709c80428
|
@ -72,7 +72,6 @@ function this.RankNodeAdapter(node, data)
|
||||||
local time = Util.GetGameObject(node, "time"):GetComponent("Text")
|
local time = Util.GetGameObject(node, "time"):GetComponent("Text")
|
||||||
local deltaScore = Util.GetGameObject(node, "deltaScore"):GetComponent("Text")
|
local deltaScore = Util.GetGameObject(node, "deltaScore"):GetComponent("Text")
|
||||||
local deltaScoreGo = Util.GetGameObject(node, "deltaScore")
|
local deltaScoreGo = Util.GetGameObject(node, "deltaScore")
|
||||||
local scoreTipGo = Util.GetGameObject(node, "scoreTip")
|
|
||||||
|
|
||||||
lv_name.text = "lv"..data.attackInfo.level.." "..data.attackInfo.name
|
lv_name.text = "lv"..data.attackInfo.level.." "..data.attackInfo.name
|
||||||
integral.text = data.attackInfo.score
|
integral.text = data.attackInfo.score
|
||||||
|
@ -95,15 +94,13 @@ function this.RankNodeAdapter(node, data)
|
||||||
local scoreStr = isWin and "+"..data.myScoreChange or data.myScoreChange
|
local scoreStr = isWin and "+"..data.myScoreChange or data.myScoreChange
|
||||||
local color = isWin and UIColor.GREEN or UIColor.RED
|
local color = isWin and UIColor.GREEN or UIColor.RED
|
||||||
result.text = resultStr
|
result.text = resultStr
|
||||||
deltaScore.text = scoreStr
|
deltaScore.text = "积分"..scoreStr
|
||||||
result.color = color
|
result.color = color
|
||||||
deltaScore.color = color
|
deltaScore.color = color
|
||||||
if data.myScoreChange == 0 then
|
if data.myScoreChange == 0 then
|
||||||
deltaScoreGo:SetActive(false)
|
deltaScoreGo:SetActive(false)
|
||||||
scoreTipGo:SetActive(false)
|
|
||||||
else
|
else
|
||||||
deltaScoreGo:SetActive(true)
|
deltaScoreGo:SetActive(true)
|
||||||
scoreTipGo:SetActive(true)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 给回放按钮添加事件
|
-- 给回放按钮添加事件
|
||||||
|
|
|
@ -305,8 +305,8 @@ function this.RefreshEnemyData()
|
||||||
if EnemyList[i] then
|
if EnemyList[i] then
|
||||||
table.insert(prefab,node)
|
table.insert(prefab,node)
|
||||||
local lv_name = Util.GetGameObject(node, "name")
|
local lv_name = Util.GetGameObject(node, "name")
|
||||||
local integral = Util.GetGameObject(node, "integral")
|
local integral = Util.GetGameObject(node, "integralTip")
|
||||||
local power = Util.GetGameObject(node, "power")
|
local power = Util.GetGameObject(node, "powerTip")
|
||||||
local headroot = Util.GetGameObject(node, "headroot")
|
local headroot = Util.GetGameObject(node, "headroot")
|
||||||
local bg = Util.GetGameObject(node, "bg")
|
local bg = Util.GetGameObject(node, "bg")
|
||||||
local btnText = Util.GetGameObject(node, "challenge/Text"):GetComponent("Text")
|
local btnText = Util.GetGameObject(node, "challenge/Text"):GetComponent("Text")
|
||||||
|
@ -314,8 +314,8 @@ function this.RefreshEnemyData()
|
||||||
local btnItemNum = Util.GetGameObject(node, "challenge/item/num"):GetComponent("Text")
|
local btnItemNum = Util.GetGameObject(node, "challenge/item/num"):GetComponent("Text")
|
||||||
|
|
||||||
lv_name:GetComponent("Text").text = EnemyList[i].personInfo.name
|
lv_name:GetComponent("Text").text = EnemyList[i].personInfo.name
|
||||||
integral:GetComponent("Text").text = EnemyList[i].personInfo.score
|
integral:GetComponent("Text").text = "积分:"..EnemyList[i].personInfo.score
|
||||||
power:GetComponent("Text").text = EnemyList[i].personInfo.totalForce
|
power:GetComponent("Text").text = "战力:"..EnemyList[i].personInfo.totalForce
|
||||||
btnText.gameObject:SetActive(leftTimes > 0)
|
btnText.gameObject:SetActive(leftTimes > 0)
|
||||||
btnText.text = Language[10103]
|
btnText.text = Language[10103]
|
||||||
|
|
||||||
|
|
|
@ -265,8 +265,8 @@ function this.RefreshBetRateShow()
|
||||||
-- 赔率
|
-- 赔率
|
||||||
local redWinRate = ArenaTopMatchManager.rate--allCoin/betRateInfo.redCoins
|
local redWinRate = ArenaTopMatchManager.rate--allCoin/betRateInfo.redCoins
|
||||||
local blueWinRate = ArenaTopMatchManager.rate--allCoin/betRateInfo.blueCoins
|
local blueWinRate = ArenaTopMatchManager.rate--allCoin/betRateInfo.blueCoins
|
||||||
this.redRate.text = string.format("%0.2f", redWinRate)
|
this.redRate.text = string.format("%s%0.2f", "赔率:", redWinRate)
|
||||||
this.blueRate.text = string.format("%0.2f", blueWinRate)
|
this.blueRate.text = string.format("%s%0.2f", "赔率:",blueWinRate)
|
||||||
|
|
||||||
-- 竞猜币
|
-- 竞猜币
|
||||||
this.coinIcon.sprite = SetIcon(GUESS_COIN)
|
this.coinIcon.sprite = SetIcon(GUESS_COIN)
|
||||||
|
|
|
@ -16,7 +16,6 @@ function ATM_MainMatchView:InitComponent()
|
||||||
this.lockTip = Util.GetGameObject(this.lockPanel, "JoinRoot/tip"):GetComponent("Text")
|
this.lockTip = Util.GetGameObject(this.lockPanel, "JoinRoot/tip"):GetComponent("Text")
|
||||||
this.outTip = Util.GetGameObject(this.lockPanel, "OutRoot/Text"):GetComponent("Text")
|
this.outTip = Util.GetGameObject(this.lockPanel, "OutRoot/Text"):GetComponent("Text")
|
||||||
this.WeedOutText = Util.GetGameObject(this.lockPanel, "WeedOutRoot/Text"):GetComponent("Text")
|
this.WeedOutText = Util.GetGameObject(this.lockPanel, "WeedOutRoot/Text"):GetComponent("Text")
|
||||||
this.WeedOutMyRank = Util.GetGameObject(this.lockPanel, "WeedOutRoot/MyRank"):GetComponent("Text")
|
|
||||||
this.WeedOutMyRankText = Util.GetGameObject(this.lockPanel, "WeedOutRoot/MyRank/Text"):GetComponent("Text")
|
this.WeedOutMyRankText = Util.GetGameObject(this.lockPanel, "WeedOutRoot/MyRank/Text"):GetComponent("Text")
|
||||||
this.WeedOutBestRank = Util.GetGameObject(this.lockPanel, "WeedOutRoot/BestRank"):GetComponent("Text")
|
this.WeedOutBestRank = Util.GetGameObject(this.lockPanel, "WeedOutRoot/BestRank"):GetComponent("Text")
|
||||||
this.WeedOutBestRankText = Util.GetGameObject(this.lockPanel, "WeedOutRoot/BestRank/Text"):GetComponent("Text")
|
this.WeedOutBestRankText = Util.GetGameObject(this.lockPanel, "WeedOutRoot/BestRank/Text"):GetComponent("Text")
|
||||||
|
@ -270,8 +269,7 @@ function this.SetWeedOutRootInfo()
|
||||||
commonInfo.SetActive(false)
|
commonInfo.SetActive(false)
|
||||||
local tmData = ArenaTopMatchManager.GetBaseData()
|
local tmData = ArenaTopMatchManager.GetBaseData()
|
||||||
this.WeedOutText.text = Language[12208]
|
this.WeedOutText.text = Language[12208]
|
||||||
this.WeedOutMyRank.text = Language[10104]
|
this.WeedOutMyRankText.text =Language[10104].. tmData.myrank <= 0 and Language[10041] or ArenaTopMatchManager.GetRankNameByRank(tmData.myrank)
|
||||||
this.WeedOutMyRankText.text = tmData.myrank <= 0 and Language[10041] or ArenaTopMatchManager.GetRankNameByRank(tmData.myrank)
|
|
||||||
this.WeedOutBestRank.text = Language[12245]
|
this.WeedOutBestRank.text = Language[12245]
|
||||||
this.WeedOutBestRankText.text = tmData.maxRank <= 0 and Language[10094] or this.GetRankName(tmData.maxRank)
|
this.WeedOutBestRankText.text = tmData.maxRank <= 0 and Language[10094] or this.GetRankName(tmData.maxRank)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue