mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +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:
@@ -16,7 +16,7 @@
|
||||
#include "../CGameInfo.h"
|
||||
#include "../CPlayerInterface.h"
|
||||
#include "../CServerHandler.h"
|
||||
#include "../gui/CGuiHandler.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../gui/Shortcut.h"
|
||||
#include "../gui/WindowHandler.h"
|
||||
#include "../widgets/CComponent.h"
|
||||
@@ -456,7 +456,7 @@ void SelectionTab::showPopupWindow(const Point & cursorPosition)
|
||||
creationDateTime = curItems[py]->campaign->getCreationDateTime() ? TextOperations::getFormattedDateTimeLocal(curItems[py]->campaign->getCreationDateTime()) : curItems[py]->date;
|
||||
}
|
||||
|
||||
GH.windows().createAndPushWindow<CMapOverview>(
|
||||
ENGINE->windows().createAndPushWindow<CMapOverview>(
|
||||
curItems[py]->name,
|
||||
curItems[py]->fullFileURI,
|
||||
creationDateTime,
|
||||
@@ -722,7 +722,7 @@ bool SelectionTab::receiveEvent(const Point & position, int eventType) const
|
||||
|
||||
int SelectionTab::getLine() const
|
||||
{
|
||||
Point clickPos = GH.getCursorPosition() - pos.topLeft();
|
||||
Point clickPos = ENGINE->getCursorPosition() - pos.topLeft();
|
||||
return getLine(clickPos);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user