diff options
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r-- | gui/newgui.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 61bed6817e..3c76febfae 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -56,6 +56,15 @@ enum { #define USE_AUTO_SCALING false #endif +// HACK. FIXME. This doesn't belong here. But otherwise it creates compulation problems +GuiObject::GuiObject(Common::String name) : _firstWidget(0) { + _x = g_gui.evaluator()->getVar(name + ".x"); + _y = g_gui.evaluator()->getVar(name + ".y"); + _w = g_gui.evaluator()->getVar(name + ".w"); + _h = g_gui.evaluator()->getVar(name + ".h"); +} + + // Constructor NewGui::NewGui() : _needRedraw(false), _stateIsSaved(false), _cursorAnimateCounter(0), _cursorAnimateTimer(0) { |