显示调整
This commit is contained in:
parent
43826faab8
commit
90bd77a4b7
@ -28,7 +28,7 @@ function BattleControllerDungeonGold:enterRoundBegin(...)
|
||||
end
|
||||
end
|
||||
if self.battleUI then
|
||||
self.battleUI:refreshWave(nextWaveRound, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
||||
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount - nextWaveRound + 1, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
||||
end
|
||||
BattleController.enterRoundBegin(self, ...)
|
||||
end
|
||||
@ -38,16 +38,17 @@ function BattleControllerDungeonGold:initOther()
|
||||
self.dungeonGoldMaxRoundCount = self:getChapterConfig()[self.chapterId].wave_limit or 1
|
||||
|
||||
if self.battleUI then
|
||||
self.battleUI:refreshWave(1, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
||||
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
||||
end
|
||||
end
|
||||
|
||||
function BattleControllerDungeonGold:controllBattleEnd()
|
||||
local remainRound = self.dungeonGoldMaxRoundCount - (self.waveRoundCount[1] or 0)
|
||||
self.combatReport = {
|
||||
battleType = GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD,
|
||||
wave = self.waveIndex,
|
||||
victory = self.victory,
|
||||
waveRoundCount = self.waveRoundCount,
|
||||
remainRound = remainRound,
|
||||
}
|
||||
local atkReport = {}
|
||||
local teamEntity = DataManager.BattleData:getAtkTeam()
|
||||
|
||||
@ -99,10 +99,7 @@ function BattleResultUI:refreshFixedInfo()
|
||||
local iconName = "common_dec_3"
|
||||
if self.battleType == GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD then
|
||||
iconName = "common_dec_15"
|
||||
local round = 0
|
||||
if self.combatReport.waveRoundCount then
|
||||
round = self.combatReport.waveRoundCount[1] or 0
|
||||
end
|
||||
local round = self.combatReport.remainRound or 0
|
||||
desc2:setText(round)
|
||||
end
|
||||
icon:setSprite(GConst.ATLAS_PATH.COMMON, iconName)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user