显示调整

This commit is contained in:
xiekaidong 2023-06-13 10:36:44 +08:00
parent 43826faab8
commit 90bd77a4b7
2 changed files with 5 additions and 7 deletions

View File

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

View File

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