1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Moved all GUI handling from BattleInterface to BattleControlPanel

This commit is contained in:
Ivan Savenko
2022-12-21 17:02:53 +02:00
parent 6138ff1670
commit c835a84051
24 changed files with 396 additions and 377 deletions

View File

@@ -668,9 +668,9 @@ void BattleActionsController::handleHex(BattleHex myNumber, int eventType)
}
if (!currentConsoleMsg.empty())
owner.controlPanel->console->clearIfMatching(currentConsoleMsg);
GH.statusbar->clearIfMatching(currentConsoleMsg);
if (!newConsoleMsg.empty())
owner.controlPanel->console->write(newConsoleMsg);
GH.statusbar->write(newConsoleMsg);
currentConsoleMsg = newConsoleMsg;
}
@@ -684,7 +684,7 @@ void BattleActionsController::handleHex(BattleHex myNumber, int eventType)
realizeAction();
if (!secondaryTarget) //do not replace teleport or sacrifice cursor
CCS->curh->set(Cursor::Combat::POINTER);
owner.controlPanel->console->clear();
GH.statusbar->clear();
}
}
}