aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-11-05 14:35:35 +0000
committerMax Horn2003-11-05 14:35:35 +0000
commit5bf6e9afa0f949de6eb3f90a0639b2c884b9b3b4 (patch)
treee92000ef4090006d543084d4d3419ddb886ee4e7 /scumm
parente20bf2cd637facab1010fed6e29329b446eceb88 (diff)
downloadscummvm-rg350-5bf6e9afa0f949de6eb3f90a0639b2c884b9b3b4.tar.gz
scummvm-rg350-5bf6e9afa0f949de6eb3f90a0639b2c884b9b3b4.tar.bz2
scummvm-rg350-5bf6e9afa0f949de6eb3f90a0639b2c884b9b3b4.zip
made menu buttons wider (looks nicer, IMO)
svn-id: r11155
Diffstat (limited to 'scumm')
-rw-r--r--scumm/dialogs.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp
index 0f0438c7bd..d7054297cf 100644
--- a/scumm/dialogs.cpp
+++ b/scumm/dialogs.cpp
@@ -271,31 +271,35 @@ Common::StringList generateSavegameList(ScummEngine *scumm, bool saveMode) {
}
enum {
- rowHeight = 18,
- kMainMenuWidth = (kButtonWidth + 2*8),
- kMainMenuHeight = 7*rowHeight + 3*5 + 7 + 5
+ kRowHeight = 18,
+ kBigButtonWidth = 90,
+ kMainMenuWidth = (kBigButtonWidth + 2*8),
+ kMainMenuHeight = 7*kRowHeight + 3*5 + 7 + 5
};
+#define addBigButton(label, cmd, hotkey) \
+ new ButtonWidget(this, x, y, kBigButtonWidth, 16, label, cmd, hotkey); y += kRowHeight
+
MainMenuDialog::MainMenuDialog(ScummEngine *scumm)
: ScummDialog(scumm, (320 - kMainMenuWidth)/2, (200 - kMainMenuHeight)/2, kMainMenuWidth, kMainMenuHeight) {
int y = 7;
- const int x = (_w - kButtonWidth) / 2;
- addButton(x, y, "Resume", kPlayCmd, 'P'); y += rowHeight;
+ const int x = (_w - kBigButtonWidth) / 2;
+ addBigButton("Resume", kPlayCmd, 'P');
y += 5;
- addButton(x, y, "Load", kLoadCmd, 'L'); y += rowHeight;
- addButton(x, y, "Save", kSaveCmd, 'S'); y += rowHeight;
+ addBigButton("Load", kLoadCmd, 'L');
+ addBigButton("Save", kSaveCmd, 'S');
y += 5;
- addButton(x, y, "Options", kOptionsCmd, 'O'); y += rowHeight;
+ addBigButton("Options", kOptionsCmd, 'O');
#ifndef DISABLE_HELP
- addButton(x, y, "Help", kHelpCmd, 'H'); y += rowHeight;
+ addBigButton("Help", kHelpCmd, 'H');
#endif
- addButton(x, y, "About", kAboutCmd, 'A'); y += rowHeight;
+ addBigButton("About", kAboutCmd, 'A');
y += 5;
- addButton(x, y, "Quit", kQuitCmd, 'Q'); y += rowHeight;
+ addBigButton("Quit", kQuitCmd, 'Q');
//
// Create the sub dialog(s)