aboutsummaryrefslogtreecommitdiff
path: root/scumm/dialogs.cpp
diff options
context:
space:
mode:
authorMax Horn2005-05-11 19:32:18 +0000
committerMax Horn2005-05-11 19:32:18 +0000
commit65ba4df9bcaf105c2c873cfd2721d19d12aaba5f (patch)
tree6abc56631cf63e2cccf4661d6143b4c8e9fd5305 /scumm/dialogs.cpp
parentcccbb52e1e5d4e972d7d2974d33034507dc772b4 (diff)
downloadscummvm-rg350-65ba4df9bcaf105c2c873cfd2721d19d12aaba5f.tar.gz
scummvm-rg350-65ba4df9bcaf105c2c873cfd2721d19d12aaba5f.tar.bz2
scummvm-rg350-65ba4df9bcaf105c2c873cfd2721d19d12aaba5f.zip
Simple and crude demo of the 'big' buttons -- the infrastructure for this isn't complete, but at least you can see where we are heading...
svn-id: r18062
Diffstat (limited to 'scumm/dialogs.cpp')
-rw-r--r--scumm/dialogs.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp
index 913467823f..f8c7628f49 100644
--- a/scumm/dialogs.cpp
+++ b/scumm/dialogs.cpp
@@ -50,6 +50,8 @@
using GUI::CommandSender;
using GUI::StaticTextWidget;
using GUI::kButtonWidth;
+using GUI::kBigButtonWidth;
+using GUI::kBigButtonHeight;
using GUI::kCloseCmd;
using GUI::kTextAlignCenter;
using GUI::kTextAlignLeft;
@@ -287,7 +289,7 @@ SaveLoadChooserEx::SaveLoadChooserEx(const String &title, const String &buttonLa
new StaticTextWidget(this, 10, 6, _w - 2 * 10, kLineHeight, title, kTextAlignCenter);
// Add choice list
- _list = new GUI::ListWidget(this, 10, 18, _w - 2 * 10 - 180, _h - 14 - 24 - 10);
+ _list = new GUI::ListWidget(this, 10, 18, _w - 2 * 10 - 180, _h - 14 - kBigButtonHeight - 18);
_list->setEditable(saveMode);
_list->setNumberingMode(saveMode ? GUI::kListNumberingOne : GUI::kListNumberingZero);
@@ -300,8 +302,8 @@ SaveLoadChooserEx::SaveLoadChooserEx(const String &title, const String &buttonLa
_gfxWidget->setFlags(GUI::WIDGET_BORDER);
// Buttons
- addButton(_w - 2 * (kButtonWidth + 10), _h - 24, "Cancel", kCloseCmd, 0);
- _chooseButton = addButton(_w-(kButtonWidth + 10), _h - 24, buttonLabel, kChooseCmd, 0);
+ addButton(_w - 2 * (kBigButtonWidth + 10), _h - kBigButtonHeight - 8, "Cancel", kCloseCmd, 0, GUI::kBigWidgetSize);
+ _chooseButton = addButton(_w - (kBigButtonWidth + 10), _h - kBigButtonHeight - 8, buttonLabel, kChooseCmd, 0, GUI::kBigWidgetSize);
_chooseButton->setEnabled(false);
}