[Scummvm-git-logs] scummvm master -> 379314c27d3eae18b903bc4ca7500c7d3500c4f9
hpvb
hp at tmm.cx
Sun May 28 11:23:53 CEST 2017
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dadf1dbe94 GUI: Fully hide GMM save/load buttons if not supported by engine
379314c27d Merge pull request #952 from wjp/hide_gmm_saveload
Commit: dadf1dbe9432629d4678df3174db6420e09b0ff3
https://github.com/scummvm/scummvm/commit/dadf1dbe9432629d4678df3174db6420e09b0ff3
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2017-05-25T16:23:34+02:00
Commit Message:
GUI: Fully hide GMM save/load buttons if not supported by engine
Previously, they were only greyed out. According to the discussion on
patch #8925, this was a limitation of the GUI layout engine when these
buttons were introduced in 2008. This no longer seems to be a problem.
Changed paths:
engines/dialogs.cpp
diff --git a/engines/dialogs.cpp b/engines/dialogs.cpp
index 0867a10..14c0cb0 100644
--- a/engines/dialogs.cpp
+++ b/engines/dialogs.cpp
@@ -85,11 +85,11 @@ MainMenuDialog::MainMenuDialog(Engine *engine)
new GUI::ButtonWidget(this, "GlobalMenu.Resume", _("~R~esume"), 0, kPlayCmd, 'P');
_loadButton = new GUI::ButtonWidget(this, "GlobalMenu.Load", _("~L~oad"), 0, kLoadCmd);
- // TODO: setEnabled -> setVisible
+ _loadButton->setVisible(_engine->hasFeature(Engine::kSupportsLoadingDuringRuntime));
_loadButton->setEnabled(_engine->hasFeature(Engine::kSupportsLoadingDuringRuntime));
_saveButton = new GUI::ButtonWidget(this, "GlobalMenu.Save", _("~S~ave"), 0, kSaveCmd);
- // TODO: setEnabled -> setVisible
+ _saveButton->setVisible(_engine->hasFeature(Engine::kSupportsSavingDuringRuntime));
_saveButton->setEnabled(_engine->hasFeature(Engine::kSupportsSavingDuringRuntime));
new GUI::ButtonWidget(this, "GlobalMenu.Options", _("~O~ptions"), 0, kOptionsCmd);
Commit: 379314c27d3eae18b903bc4ca7500c7d3500c4f9
https://github.com/scummvm/scummvm/commit/379314c27d3eae18b903bc4ca7500c7d3500c4f9
Author: Hein-Pieter van Braam (hp at tmm.cx)
Date: 2017-05-28T11:23:49+02:00
Commit Message:
Merge pull request #952 from wjp/hide_gmm_saveload
GUI: Fully hide GMM save/load buttons if not supported by engine
Changed paths:
engines/dialogs.cpp
More information about the Scummvm-git-logs
mailing list