mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +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:
@@ -13,7 +13,7 @@
|
||||
|
||||
#include "CMainMenu.h"
|
||||
|
||||
#include "../gui/CGuiHandler.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../widgets/TextControls.h"
|
||||
#include "../widgets/ObjectLists.h"
|
||||
|
||||
@@ -59,7 +59,7 @@ void CreditsScreen::tick(uint32_t msPassed)
|
||||
|
||||
//end of credits, close this screen
|
||||
if(credits->textSize.y < scrollPosition)
|
||||
clickPressed(GH.getCursorPosition());
|
||||
clickPressed(ENGINE->getCursorPosition());
|
||||
}
|
||||
|
||||
void CreditsScreen::clickPressed(const Point & cursorPosition)
|
||||
|
||||
Reference in New Issue
Block a user