GMM: Add a basic help dialogs for engines not providing one (i.e. all but SCUMM)
svn-id: r53860
This commit is contained in:
parent
786b5f6473
commit
86d6f3c200
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue