aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2007-02-04 02:36:23 +0000
committerEugene Sandulenko2007-02-04 02:36:23 +0000
commit0d01bdd7996c07f93428f84a77e1a45c8c4af45a (patch)
tree01e335acc6878d713f822184f7166e533278f8fc /gui/launcher.cpp
parent18a9cb46d6dfb590de83fba77f4bb52b1709e8ac (diff)
downloadscummvm-rg350-0d01bdd7996c07f93428f84a77e1a45c8c4af45a.tar.gz
scummvm-rg350-0d01bdd7996c07f93428f84a77e1a45c8c4af45a.tar.bz2
scummvm-rg350-0d01bdd7996c07f93428f84a77e1a45c8c4af45a.zip
Make Add Button caption react to Shift key.
svn-id: r25373
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 33b4aa17ab..1e4d36fdef 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -494,7 +494,8 @@ LauncherDialog::LauncherDialog()
new ButtonWidget(this, "launcher_start_button", "Start", kStartCmd, 'S');
// Above the lowest button rows: two more buttons (directly below the list box)
- new ButtonWidget(this, "launcher_addGame_button", "Add Game...", kAddGameCmd, 'A');
+ _addButton =
+ new ButtonWidget(this, "launcher_addGame_button", "Add Game...", kAddGameCmd, 'A');
_editButton =
new ButtonWidget(this, "launcher_editGame_button", "Edit Game...", kEditGameCmd, 'E');
_removeButton =
@@ -806,11 +807,21 @@ void LauncherDialog::editGame(int item) {
void LauncherDialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) {
_modifiers = modifiers;
Dialog::handleKeyDown(ascii, keycode, modifiers);
+
+ if ((modifiers & OSystem::KBD_SHIFT) != 0) {
+ _addButton->setLabel("Mass Add...");
+ _addButton->draw();
+ }
}
void LauncherDialog::handleKeyUp(uint16 ascii, int keycode, int modifiers) {
_modifiers = modifiers;
Dialog::handleKeyUp(ascii, keycode, modifiers);
+
+ if ((modifiers & OSystem::KBD_SHIFT) == 0) {
+ _addButton->setLabel("Add Game...");
+ _addButton->draw();
+ }
}
void LauncherDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {