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:
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "Images.h"
|
||||
|
||||
#include "../gui/CGuiHandler.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../gui/CursorHandler.h"
|
||||
#include "../gui/TextAlignment.h"
|
||||
#include "../gui/Shortcut.h"
|
||||
@@ -98,7 +98,7 @@ void CComponent::init(ComponentType Type, ComponentSubType Subtype, std::optiona
|
||||
max = 80;
|
||||
|
||||
std::vector<std::string> textLines = CMessage::breakText(getSubtitle(), std::max<int>(max, pos.w), font);
|
||||
const auto & fontPtr = GH.renderHandler().loadFont(font);
|
||||
const auto & fontPtr = ENGINE->renderHandler().loadFont(font);
|
||||
const int height = static_cast<int>(fontPtr->getLineHeight());
|
||||
|
||||
for(auto & line : textLines)
|
||||
|
||||
Reference in New Issue
Block a user