【竞技场】免费次数提示添加

dev_chengFeng
gaoxin 2021-05-20 14:59:40 +08:00
parent 3007dafa27
commit 16596f733d
2 changed files with 7975 additions and 7812 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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