显示调整
This commit is contained in:
parent
43826faab8
commit
90bd77a4b7
@ -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()
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user