aboutsummaryrefslogtreecommitdiff
path: root/engines/dialogs.cpp
diff options
context:
space:
mode:
authorMax Horn2010-10-26 21:54:57 +0000
committerMax Horn2010-10-26 21:54:57 +0000
commit86d6f3c2000435bd14b2726a8bd94183b333619a (patch)
tree1c5c87011a7c8c442cac29cfe52638a7941d42fe /engines/dialogs.cpp
parent786b5f64737d29d4e06639025074911916c21c78 (diff)
downloadscummvm-rg350-86d6f3c2000435bd14b2726a8bd94183b333619a.tar.gz
scummvm-rg350-86d6f3c2000435bd14b2726a8bd94183b333619a.tar.bz2
scummvm-rg350-86d6f3c2000435bd14b2726a8bd94183b333619a.zip
GMM: Add a basic help dialogs for engines not providing one (i.e. all but SCUMM)
svn-id: r53860
Diffstat (limited to 'engines/dialogs.cpp')
-rw-r--r--engines/dialogs.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/dialogs.cpp b/engines/dialogs.cpp
index cb081e4683..6b0f4d3b39 100644
--- a/engines/dialogs.cpp
+++ b/engines/dialogs.cpp
@@ -36,6 +36,7 @@
#include "gui/GuiManager.h"
#include "gui/launcher.h"
#include "gui/ListWidget.h"
+#include "gui/message.h"
#include "gui/options.h"
#include "gui/saveload.h"
#include "gui/ThemeEval.h"
@@ -102,7 +103,6 @@ MainMenuDialog::MainMenuDialog(Engine *engine)
// To enable "Help", an engine needs to use a subclass of MainMenuDialog
// (at least for now, we might change how this works in the future).
_helpButton = new GUI::ButtonWidget(this, "GlobalMenu.Help", _("~H~elp"), 0, kHelpCmd);
- _helpButton->setEnabled(false);
new GUI::ButtonWidget(this, "GlobalMenu.About", _("~A~bout"), 0, kAboutCmd);
@@ -147,8 +147,13 @@ void MainMenuDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
case kAboutCmd:
_aboutDialog->runModal();
break;
- case kHelpCmd:
- // Not handled here -- needs to be handled by a subclass (for now)
+ case kHelpCmd: {
+ GUI::MessageDialog dialog(
+ "Sorry, this engine does not currently provide in-game help. "
+ "Please consult the README for basic information, and for "
+ "instructions on how to obtain further assistance.");
+ dialog.runModal();
+ }
break;
case kRTLCmd: {
Common::Event eventRTL;