aboutsummaryrefslogtreecommitdiff
path: root/gui/ListWidget.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/ListWidget.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/ListWidget.cpp')
-rw-r--r--gui/ListWidget.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp
index c1aa044af8..963b37b944 100644
--- a/gui/ListWidget.cpp
+++ b/gui/ListWidget.cpp
@@ -30,7 +30,17 @@ namespace GUI {
ListWidget::ListWidget(GuiObject *boss, int x, int y, int w, int h, WidgetSize ws)
: EditableWidget(boss, x, y, w, h, ws), CommandSender(boss) {
+ init(boss, w, ws);
+}
+
+ListWidget::ListWidget(GuiObject *boss, String name, WidgetSize ws)
+ : EditableWidget(boss, name, ws), CommandSender(boss) {
+ int w = g_gui.evaluator()->getVar(name + ".w");
+
+ init(boss, w, ws);
+}
+void ListWidget::init(GuiObject *boss, int w, WidgetSize ws) {
if (ws == kBigWidgetSize) {
_w = w - kBigScrollBarWidth;
} else {