显示调整

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
end end
if self.battleUI then 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 end
BattleController.enterRoundBegin(self, ...) BattleController.enterRoundBegin(self, ...)
end end
@ -38,16 +38,17 @@ function BattleControllerDungeonGold:initOther()
self.dungeonGoldMaxRoundCount = self:getChapterConfig()[self.chapterId].wave_limit or 1 self.dungeonGoldMaxRoundCount = self:getChapterConfig()[self.chapterId].wave_limit or 1
if self.battleUI then 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
end end
function BattleControllerDungeonGold:controllBattleEnd() function BattleControllerDungeonGold:controllBattleEnd()
local remainRound = self.dungeonGoldMaxRoundCount - (self.waveRoundCount[1] or 0)
self.combatReport = { self.combatReport = {
battleType = GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD, battleType = GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD,
wave = self.waveIndex, wave = self.waveIndex,
victory = self.victory, victory = self.victory,
waveRoundCount = self.waveRoundCount, remainRound = remainRound,
} }
local atkReport = {} local atkReport = {}
local teamEntity = DataManager.BattleData:getAtkTeam() local teamEntity = DataManager.BattleData:getAtkTeam()

View File

@ -99,10 +99,7 @@ function BattleResultUI:refreshFixedInfo()
local iconName = "common_dec_3" local iconName = "common_dec_3"
if self.battleType == GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD then if self.battleType == GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD then
iconName = "common_dec_15" iconName = "common_dec_15"
local round = 0 local round = self.combatReport.remainRound or 0
if self.combatReport.waveRoundCount then
round = self.combatReport.waveRoundCount[1] or 0
end
desc2:setText(round) desc2:setText(round)
end end
icon:setSprite(GConst.ATLAS_PATH.COMMON, iconName) icon:setSprite(GConst.ATLAS_PATH.COMMON, iconName)