From e69f6086d32e937e53f14a68288c5ab6343b03e2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 5 Nov 2002 22:37:11 +0000 Subject: change save/load dialog layout a bit - no need to restrain our height so much, is there? svn-id: r5429 --- scumm/dialogs.cpp | 23 +++++++++++++---------- 1 file 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() -- cgit v1.2.3