From 018c93b14a9f2b3eda3bdfafcf9b90ee9ac0f8f2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 7 Mar 2006 05:39:52 +0000 Subject: More work on customizable GUI. o Implemented special alias 'prev' o Added new calling scheme to several widgets o Partially converted launcher dialog to new scheme o Converted couple widgets of chooser dialog svn-id: r21118 --- gui/newgui.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gui/newgui.cpp') 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) { -- cgit v1.2.3