[Scummvm-cvs-logs] SF.net SVN: scummvm:[53860] scummvm/trunk/engines/dialogs.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Oct 26 23:54:58 CEST 2010


Revision: 53860
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53860&view=rev
Author:   fingolfin
Date:     2010-10-26 21:54:57 +0000 (Tue, 26 Oct 2010)

Log Message:
-----------
GMM: Add a basic help dialogs for engines not providing  one (i.e. all but SCUMM)

Modified Paths:
--------------
    scummvm/trunk/engines/dialogs.cpp

Modified: scummvm/trunk/engines/dialogs.cpp
===================================================================
--- scummvm/trunk/engines/dialogs.cpp	2010-10-26 21:49:51 UTC (rev 53859)
+++ scummvm/trunk/engines/dialogs.cpp	2010-10-26 21:54:57 UTC (rev 53860)
@@ -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 @@
 	// 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 @@
 	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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list