diff options
author | Eugene Sandulenko | 2006-03-09 01:08:25 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-03-09 01:08:25 +0000 |
commit | c3f91ca288cd4cfb884fedb956d0d1049f857841 (patch) | |
tree | 974703ccff93ea4ebcb1eccb1f3867a218520ba0 /gui/newgui.cpp | |
parent | f5efc8b1696400061a202db614ca02f8a4a8d391 (diff) | |
download | scummvm-rg350-c3f91ca288cd4cfb884fedb956d0d1049f857841.tar.gz scummvm-rg350-c3f91ca288cd4cfb884fedb956d0d1049f857841.tar.bz2 scummvm-rg350-c3f91ca288cd4cfb884fedb956d0d1049f857841.zip |
Converted all scumm dialogs to new scheme
svn-id: r21147
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r-- | gui/newgui.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 808dea699d..67cffab6df 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -58,10 +58,13 @@ enum { // 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"); + if ((_x = g_gui.evaluator()->getVar(name + ".x")) == EVAL_UNDEF_VAR) + error("Undefined variable %s.x", name.c_str()); + if ((_y = g_gui.evaluator()->getVar(name + ".y")) == EVAL_UNDEF_VAR) + error("Undefined variable %s.y", name.c_str()); _w = g_gui.evaluator()->getVar(name + ".w"); _h = g_gui.evaluator()->getVar(name + ".h"); + _name = name; } |