fix bug
This commit is contained in:
parent
3fd7641d12
commit
83f60be443
@ -55,7 +55,7 @@ function BattleControllerDungeonGold:enterRoundBegin(...)
|
||||
end
|
||||
end
|
||||
if self.battleUI then
|
||||
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount - nextWaveRound + 1, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount - nextWaveRound + 1, GConst.ATLAS_PATH.BATTLE, "battle_dec_4")
|
||||
end
|
||||
BattleController.enterRoundBegin(self, ...)
|
||||
end
|
||||
@ -65,7 +65,7 @@ function BattleControllerDungeonGold:initOther()
|
||||
self.dungeonGoldMaxRoundCount = self:getChapterConfig()[self.chapterId].wave_limit or 1
|
||||
|
||||
if self.battleUI then
|
||||
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount, GConst.ATLAS_PATH.BATTLE, "battle_dec_4")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -452,7 +452,7 @@ function BattleResultUI:refreshUnitInfo()
|
||||
|
||||
local iconName = "battle_dec_1"
|
||||
if self.battleType == GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD then
|
||||
iconName = "battle_dec_2"
|
||||
iconName = "battle_dec_4"
|
||||
local round = self.remainRound or 0
|
||||
self.unitTxDesc2:setText(round)
|
||||
self.unitTxDesc1:setText(I18N:getGlobalText(I18N.GlobalConst.ROUND_LEFT))
|
||||
|
||||
@ -306,7 +306,7 @@ function BattleRuneResultUI:refreshUnitInfo()
|
||||
self.unitTxDesc2:setText(self.wave)
|
||||
self.unitTxDesc3:setText(I18N:getGlobalText(I18N.GlobalConst.BATTLE_DESC_7, GFunc.num2Str(self.totalDmg)))
|
||||
|
||||
local iconName = "battle_dec_2"
|
||||
local iconName = "battle_dec_4"
|
||||
local round = self.remainRound or 0
|
||||
self.unitTxDesc2:setText(round)
|
||||
self.unitTxDesc1:setText(I18N:getGlobalText(I18N.GlobalConst.ROUND_LEFT))
|
||||
|
||||
@ -264,7 +264,7 @@ function BattleUIPVP:refreshWave(wave, iconAtlas, iconName)
|
||||
-- GFunc.centerImgAndTx(icon, desc, 10)
|
||||
|
||||
iconAtlas = iconAtlas or GConst.ATLAS_PATH.BATTLE
|
||||
iconName = iconName or "battle_dec_2"
|
||||
iconName = iconName or "battle_dec_4"
|
||||
icon:setSprite(iconAtlas, iconName)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user