【竞技场】免费次数提示添加
parent
3007dafa27
commit
16596f733d
File diff suppressed because it is too large
Load Diff
|
@ -32,7 +32,7 @@ function ArenaView:InitComponent()
|
|||
|
||||
|
||||
this.RecordBtn = Util.GetGameObject(self.gameObject, "rightUp/record")
|
||||
this.RefreshBtn = Util.GetGameObject(self.gameObject, "rightUp/refresh")
|
||||
this.RefreshBtn = Util.GetGameObject(self.gameObject, "refresh")
|
||||
this.RewardBtn = Util.GetGameObject(self.gameObject, "rightUp/reward")
|
||||
this.StoreBtn = Util.GetGameObject(self.gameObject, "rightUp/store")
|
||||
this.sortBtn = Util.GetGameObject(self.gameObject, "rightUp/sortBtn")
|
||||
|
@ -53,6 +53,8 @@ function ArenaView:InitComponent()
|
|||
rewardBoxBtn[i] = Util.GetGameObject(self.gameObject, "finalTarget/rewardProgress/rewardBoxBtn (" .. i .. ")")
|
||||
rewardBoxBtn[i].transform.localPosition = Vector3.New(arenaBattleReward[i].Position[1], arenaBattleReward[i].Position[2] ,0)
|
||||
end
|
||||
|
||||
this.freeTimes = Util.GetGameObject(self.gameObject, "count/text"):GetComponent("Text")
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
|
@ -311,6 +313,7 @@ end
|
|||
function this.RefreshEnemyData()
|
||||
local prefab = {}
|
||||
local leftTimes = ArenaManager.GetArenaChallengeTimes()
|
||||
this.freeTimes.text = string.format("%s次", math.max(leftTimes, 0))
|
||||
local EnemyList = ArenaManager.GetEnemyList()
|
||||
table.sort(EnemyList, function(a,b) return a.personInfo.score > b.personInfo.score end)
|
||||
for i, node in ipairs(this.Enemys) do
|
||||
|
|
Loading…
Reference in New Issue