mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Moved window stack management from GuiHandler to new class
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "../render/CAnimation.h"
|
||||
#include "../gui/CGuiHandler.h"
|
||||
#include "../gui/Shortcut.h"
|
||||
#include "../gui/WindowHandler.h"
|
||||
|
||||
#include "../../lib/filesystem/Filesystem.h"
|
||||
#include "../../lib/CGeneralTextHandler.h"
|
||||
@@ -367,7 +368,7 @@ void CBonusSelection::goBack()
|
||||
{
|
||||
if(CSH->state != EClientState::GAMEPLAY)
|
||||
{
|
||||
GH.popInts(2);
|
||||
GH.windows().popInts(2);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -397,7 +398,7 @@ void CBonusSelection::startMap()
|
||||
const CCampaignScenario & scenario = getCampaign()->camp->scenarios[CSH->campaignMap];
|
||||
if(scenario.prolog.hasPrologEpilog)
|
||||
{
|
||||
GH.pushIntT<CPrologEpilogVideo>(scenario.prolog, exitCb);
|
||||
GH.windows().pushIntT<CPrologEpilogVideo>(scenario.prolog, exitCb);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user