mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Renamed CGuiHandler to GameEngine
- class CGuiHandler is now called GameEngine to better describe its functionality - renamed global GH to more clear ENGINE - GH/ENGINE is now unique_ptr to make construction / deconstruction order more clear and to allow interface / implementation split - CGuiHandler.cpp/h is now called GameEngine.cpp/h and located in root directory of client dir
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
#include "../CPlayerInterface.h"
|
||||
#include "../CGameInfo.h"
|
||||
|
||||
#include "../gui/CGuiHandler.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../gui/Shortcut.h"
|
||||
#include "../gui/WindowHandler.h"
|
||||
#include "../widgets/Images.h"
|
||||
@ -67,11 +67,11 @@ void CTutorialWindow::setContent()
|
||||
|
||||
void CTutorialWindow::openWindowFirstTime(const TutorialMode & m)
|
||||
{
|
||||
if(GH.input().getCurrentInputMode() == InputMode::TOUCH && !persistentStorage["gui"]["tutorialCompleted" + std::to_string(m)].Bool())
|
||||
if(ENGINE->input().getCurrentInputMode() == InputMode::TOUCH && !persistentStorage["gui"]["tutorialCompleted" + std::to_string(m)].Bool())
|
||||
{
|
||||
if(LOCPLINT)
|
||||
LOCPLINT->showingDialog->setBusy();
|
||||
GH.windows().pushWindow(std::make_shared<CTutorialWindow>(m));
|
||||
ENGINE->windows().pushWindow(std::make_shared<CTutorialWindow>(m));
|
||||
|
||||
Settings s = persistentStorage.write["gui"]["tutorialCompleted" + std::to_string(m)];
|
||||
s->Bool() = true;
|
||||
|
Reference in New Issue
Block a user