parent
50e50475be
commit
fe01796ded
|
@ -349,7 +349,7 @@ function this.SetChampionHead(head, fightResult, defInfo, attackInfo)
|
||||||
local lv = Util.GetGameObject(head, "lvRoot/lv"):GetComponent("Text")
|
local lv = Util.GetGameObject(head, "lvRoot/lv"):GetComponent("Text")
|
||||||
|
|
||||||
--
|
--
|
||||||
if not fightResult then
|
if not fightResult or fightResult and fightResult == -1 then
|
||||||
headImg.color = Color.New(1,1,1,0)
|
headImg.color = Color.New(1,1,1,0)
|
||||||
lvRoot:SetActive(false)
|
lvRoot:SetActive(false)
|
||||||
return
|
return
|
||||||
|
|
|
@ -86,11 +86,12 @@ end
|
||||||
function this.battleDetailBtnClick(isShowTip)
|
function this.battleDetailBtnClick(isShowTip)
|
||||||
local betBattleInfo = ArenaTopMatchManager.GetBetBattleInfo()
|
local betBattleInfo = ArenaTopMatchManager.GetBetBattleInfo()
|
||||||
if betBattleInfo.result == -1 then
|
if betBattleInfo.result == -1 then
|
||||||
Log(Language[10168])
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if ArenaTopMatchManager.GetIsBattleEndState(2) then
|
if ArenaTopMatchManager.GetIsBattleEndState(2) then
|
||||||
LogPink(" `````````` 第三场 竞技战斗动画拦截住了 ")
|
return
|
||||||
|
end
|
||||||
|
if UIManager.IsOpen(UIName.BattlePanel) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local nameStr = betBattleInfo.myInfo.name.."|"..betBattleInfo.enemyInfo.name
|
local nameStr = betBattleInfo.myInfo.name.."|"..betBattleInfo.enemyInfo.name
|
||||||
|
@ -252,15 +253,15 @@ end
|
||||||
|
|
||||||
-- 刷新赔率显示
|
-- 刷新赔率显示
|
||||||
function this.RefreshBetRateShow()
|
function this.RefreshBetRateShow()
|
||||||
local betRateInfo = ArenaTopMatchManager.GetBetRateInfo()
|
-- local betRateInfo = ArenaTopMatchManager.GetBetRateInfo()
|
||||||
-- 避免除数为0的错误
|
-- -- 避免除数为0的错误
|
||||||
if betRateInfo.redCoins <= 0 then betRateInfo.redCoins = 1 end
|
-- if betRateInfo.redCoins <= 0 then betRateInfo.redCoins = 1 end
|
||||||
if betRateInfo.blueCoins <= 0 then betRateInfo.blueCoins = 1 end
|
-- if betRateInfo.blueCoins <= 0 then betRateInfo.blueCoins = 1 end
|
||||||
--
|
--
|
||||||
local allCoin = betRateInfo.redCoins + betRateInfo.blueCoins
|
-- local allCoin = betRateInfo.redCoins + betRateInfo.blueCoins
|
||||||
-- 下注比例
|
-- 下注比例
|
||||||
local redRate = betRateInfo.redCoins/allCoin
|
local redRate = 0.5--betRateInfo.redCoins/allCoin
|
||||||
local blueRate = betRateInfo.blueCoins/allCoin
|
local blueRate = 0.5--betRateInfo.blueCoins/allCoin
|
||||||
this.redProgress.transform.localScale = Vector3.New(redRate, 1, 1)
|
this.redProgress.transform.localScale = Vector3.New(redRate, 1, 1)
|
||||||
this.blueProgress.transform.localScale = Vector3.New(blueRate, 1, 1)
|
this.blueProgress.transform.localScale = Vector3.New(blueRate, 1, 1)
|
||||||
|
|
||||||
|
|
|
@ -120,11 +120,12 @@ function this.battleDetailBtnClick()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if battleInfo.result == -1 then
|
if battleInfo.result == -1 then
|
||||||
Log(Language[10168])
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if ArenaTopMatchManager.GetIsBattleEndState(1) then
|
if ArenaTopMatchManager.GetIsBattleEndState(1) then
|
||||||
LogPink(" `````````` 第三场 我的战斗动画拦截住了 ")
|
return
|
||||||
|
end
|
||||||
|
if UIManager.IsOpen(UIName.BattlePanel) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local nameStr = battleInfo.myInfo.name.."|"..battleInfo.enemyInfo.name
|
local nameStr = battleInfo.myInfo.name.."|"..battleInfo.enemyInfo.name
|
||||||
|
|
Loading…
Reference in New Issue