bug修复

This commit is contained in:
xiekaidong 2023-09-04 20:06:11 +08:00
parent c6e44efbd6
commit f3d7d1c892
5 changed files with 10 additions and 7 deletions

View File

@ -89,7 +89,10 @@ end
function ActBossRushManager:rspEndBattle(result)
if result.err_code == GConst.ERROR_STR.SUCCESS then
if result.reqData then
DataManager.ActBossRushData:addWaveCount(result.reqData.task_stat.pass_wave or 0)
local wave = result.reqData.task_stat.pass_wave or 0
local round = result.reqData.task_stat.total_turn or 0
DataManager.ActBossRushData:addWaveCount(wave)
DataManager.ActBossRushData:updateWaveAndRound(wave, round)
end
ModuleManager.BattleManager:showBossRushBattleResultUI(GConst.BattleConst.BATTLE_TYPE.ACT_BOSS_RUSH, result.reqData and result.reqData.combatReport, result.reqData and result.reqData.task_stat)
end
@ -160,7 +163,7 @@ end
function ActBossRushManager:rspBuyFundLevel(result)
if result.err_code == GConst.ERROR_STR.SUCCESS then
local addCount = result.accum_round - DataManager.ActBossRushData:getWaveCount()
local addCount = result.accum_wave - DataManager.ActBossRushData:getWaveCount()
if addCount > 0 then
DataManager.ActBossRushData:addWaveCount(addCount)
end

View File

@ -52,7 +52,7 @@ function BattleArenaPauseUI:_addListeners()
okText = I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_OK),
cancelText = I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_CANCEL),
okFunc = function()
self.battleController:controllBattleEnd()
self.battleController:battleEnd()
end,
}
GFunc.showMessageBox(params)

View File

@ -67,6 +67,8 @@ function BattleBossRushResultUI:onLoadRootComplete()
local waveNew = uiMap["battle_boss_rush_result_ui.unit_node.desc_new_1"]
local roundNew = uiMap["battle_boss_rush_result_ui.unit_node.desc_new_2"]
waveNew:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_BOSS_RUSH_DESC_28))
roundNew:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_BOSS_RUSH_DESC_28))
local tag1, tag2 = DataManager.ActBossRushData:getWaveRoundNewTag()
waveNew:setVisible(tag1 == true)
roundNew:setVisible(tag2 == true)

View File

@ -61,7 +61,7 @@ function BattlePauseUI:_addListeners()
okText = I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_OK),
cancelText = I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_CANCEL),
okFunc = function()
self.battleController:controllBattleEnd()
self.battleController:battleEnd()
end,
}
GFunc.showMessageBox(params)

View File

@ -468,9 +468,7 @@ function UIManager:closeAllUIExceptMainUI(includeCurrencyBar)
local uiNum = #self.uiList
for i = uiNum, 1, -1 do
if self.uiList[i]:getUIIndex() ~= UIManager.UI_PATH.MAINCITY_UI then
self.uiList[i]:_onClose()
self.uiList[i]:_onExitAnimationComplete()
table.remove(self.uiList, i)
self.uiList[i]:closeUI()
end
self:_updateUISwallowOrder()
end