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/GuiManager.h"
|
||||||
#include "gui/launcher.h"
|
#include "gui/launcher.h"
|
||||||
#include "gui/ListWidget.h"
|
#include "gui/ListWidget.h"
|
||||||
|
#include "gui/message.h"
|
||||||
#include "gui/options.h"
|
#include "gui/options.h"
|
||||||
#include "gui/saveload.h"
|
#include "gui/saveload.h"
|
||||||
#include "gui/ThemeEval.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
|
// 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).
|
// (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 = new GUI::ButtonWidget(this, "GlobalMenu.Help", _("~H~elp"), 0, kHelpCmd);
|
||||||
_helpButton->setEnabled(false);
|
|
||||||
|
|
||||||
new GUI::ButtonWidget(this, "GlobalMenu.About", _("~A~bout"), 0, kAboutCmd);
|
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:
|
case kAboutCmd:
|
||||||
_aboutDialog->runModal();
|
_aboutDialog->runModal();
|
||||||
break;
|
break;
|
||||||
case kHelpCmd:
|
case kHelpCmd: {
|
||||||
// Not handled here -- needs to be handled by a subclass (for now)
|
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;
|
break;
|
||||||
case kRTLCmd: {
|
case kRTLCmd: {
|
||||||
Common::Event eventRTL;
|
Common::Event eventRTL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue