aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r--gui/dialog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 6f629bfd4e..9ab22c26ef 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -289,13 +289,17 @@ Widget *Dialog::findWidget(int x, int y) {
}
ButtonWidget *Dialog::addButton(int x, int y, const Common::String &label, uint32 cmd, char hotkey, WidgetSize ws) {
+ return addButton(this, x, y, label, cmd, hotkey, ws);
+}
+
+ButtonWidget *Dialog::addButton(GuiObject *boss, int x, int y, const Common::String &label, uint32 cmd, char hotkey, WidgetSize ws) {
int w = kButtonWidth;
int h = kButtonHeight;
if (ws == kBigWidgetSize) {
w = kBigButtonWidth;
h = kBigButtonHeight;
}
- return new ButtonWidget(this, x, y, w, h, label, cmd, hotkey, ws);
+ return new ButtonWidget(boss, x, y, w, h, label, cmd, hotkey, ws);
}
CheckboxWidget *Dialog::addCheckbox(int x, int y, const Common::String &label, uint32 cmd, char hotkey, WidgetSize ws) {