aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2006-03-07 05:39:52 +0000
committerEugene Sandulenko2006-03-07 05:39:52 +0000
commit018c93b14a9f2b3eda3bdfafcf9b90ee9ac0f8f2 (patch)
treece773d203cb6e24aa2a3f206a7eaf2547bef5762 /gui/newgui.cpp
parent02bdcc45c9aaca4ab98b27eccd21ae00731aa2f8 (diff)
downloadscummvm-rg350-018c93b14a9f2b3eda3bdfafcf9b90ee9ac0f8f2.tar.gz
scummvm-rg350-018c93b14a9f2b3eda3bdfafcf9b90ee9ac0f8f2.tar.bz2
scummvm-rg350-018c93b14a9f2b3eda3bdfafcf9b90ee9ac0f8f2.zip
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
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp9
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) {