aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2002-10-17 22:43:13 +0000
committerMax Horn2002-10-17 22:43:13 +0000
commit308a52a2ae76be2bdb7ebe2fe9291acb31840cfc (patch)
treececfdda1cf30bb0d4a1bcdf4f619a6dbf8e97b05 /gui
parent25e46a4434ee5a77d2c54a005d268d933fe5c6bb (diff)
downloadscummvm-rg350-308a52a2ae76be2bdb7ebe2fe9291acb31840cfc.tar.gz
scummvm-rg350-308a52a2ae76be2bdb7ebe2fe9291acb31840cfc.tar.bz2
scummvm-rg350-308a52a2ae76be2bdb7ebe2fe9291acb31840cfc.zip
added some TODO comments so that people know a bit better what is planned here (but also feel free to implement any of those before I get to it <g>)
svn-id: r5172
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp27
1 files changed, 26 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index f8e734ece6..f0c3ad3b7d 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -86,7 +86,8 @@ LauncherDialog::LauncherDialog(NewGui *gui, GameDetector &detector)
}
_list->setList(l);
-// _list->setSelected(0);
+ // TODO - make a default selection (maybe the game user played last?)
+ //_list->setSelected(0);
// Two more buttons directly below the list box
bw = new ButtonWidget(this, 10, 144, 80, 16, "Add Game...", kAddGameCmd, 'A');
@@ -100,6 +101,30 @@ void LauncherDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
int item;
switch (cmd) {
+ case kAddGameCmd:
+ // TODO: Allow user to add a new game to the list.
+ // 1) show a file selection dialog (to be implemented!) which lets
+ // the user pick the directory the game data resides in.
+ // 2) show the user a list of games to pick from. Initially just show
+ // all known games. But ideally, we would refine this list by checking
+ // which choices are possible. E.g. if we don't find atlantis.000 in that
+ // directory, then it's not FOA etc.
+ break;
+ case kConfigureGameCmd:
+ // Set game specifc options. Most of these should be "optional", i.e. by
+ // default set nothing and use the global ScummVM settings. E.g. the user
+ // can set here an optional alternate music volume, or for specific games
+ // a different music driver etc.
+ // This is useful because e.g. MonkeyVGA needs Adlib music to have decent
+ // music support etc.
+ break;
+ case kOptionsCmd:
+ // TODO - show up a generic options dialog, loosely based upon the one
+ // we have in scumm/dialogs.cpp. So we will be modifying the settings
+ // in _detector, like which music engine to use, volumes, etc.
+ //
+ // We also allow the global save game path to be set here.
+ break;
case kStartCmd:
case kListItemDoubleClickedCmd:
// Print out what was selected