aboutsummaryrefslogtreecommitdiff
path: root/scumm/dialogs.cpp
diff options
context:
space:
mode:
authorMax Horn2002-11-05 22:37:11 +0000
committerMax Horn2002-11-05 22:37:11 +0000
commite69f6086d32e937e53f14a68288c5ab6343b03e2 (patch)
tree6a7221057c3f31edc48e3686ad0733445afafa6f /scumm/dialogs.cpp
parentca94844b7574223671c8a11197a6332f4dff6126 (diff)
downloadscummvm-rg350-e69f6086d32e937e53f14a68288c5ab6343b03e2.tar.gz
scummvm-rg350-e69f6086d32e937e53f14a68288c5ab6343b03e2.tar.bz2
scummvm-rg350-e69f6086d32e937e53f14a68288c5ab6343b03e2.zip
change save/load dialog layout a bit - no need to restrain our height so much, is there?
svn-id: r5429
Diffstat (limited to 'scumm/dialogs.cpp')
-rw-r--r--scumm/dialogs.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp
index 092c693b82..0562f46741 100644
--- a/scumm/dialogs.cpp
+++ b/scumm/dialogs.cpp
@@ -314,19 +314,22 @@ enum {
*/
SaveLoadDialog::SaveLoadDialog(NewGui *gui, Scumm *scumm)
- : ScummDialog(gui, scumm, 30, 20, 260, 124)
+ : ScummDialog(gui, scumm, 30, 18, 260, 162)
{
+ const int x = 196;
+
+ // The headline
addResText(0, 7, 260, 16, 1);
-// addResText(10, 7, 240, 16, 2);
-// addResText(10, 7, 240, 16, 3);
-
- _saveButton = (PushButtonWidget *)addPushButton(200, 20, queryResString(4), kSaveCmd, 'S');
- _loadButton = (PushButtonWidget *)addPushButton(200, 40, queryResString(5), kLoadCmd, 'L');
- addButton(200, 60, queryResString(6), kPlayCmd, 'P'); // Play
- addButton(200, 80, queryCustomString(17), kOptionsCmd, 'O'); // Options
- addButton(200, 100, queryResString(8), kQuitCmd, 'Q'); // Quit
- _savegameList = new ListWidget(this, 10, 20, 180, 90);
+ // The five buttons on the side
+ _saveButton = addPushButton(x, 20, queryResString(4), kSaveCmd, 'S');
+ _loadButton = addPushButton(x, 40, queryResString(5), kLoadCmd, 'L');
+ addButton(x, 60, queryResString(6), kPlayCmd, 'P'); // Play
+ addButton(x, 80, queryCustomString(17), kOptionsCmd, 'O'); // Options
+ addButton(x, 100, queryResString(8), kQuitCmd, 'Q'); // Quit
+
+ // The save game list
+ _savegameList = new ListWidget(this, 8, 20, 182, 134);
}
void SaveLoadDialog::open()