diff options
author | Eugene Sandulenko | 2019-11-11 19:25:56 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-13 22:07:08 +0100 |
commit | 8f492cf877a1dc1f2b00f0d7addd8e4ea6325e2a (patch) | |
tree | f31c652680be50cecfc9ee1315d8e3c8b78e3ba1 /engines/griffon | |
parent | 93be6abf58c902bcbe33b6d7f535ea477b6e6afc (diff) | |
download | scummvm-rg350-8f492cf877a1dc1f2b00f0d7addd8e4ea6325e2a.tar.gz scummvm-rg350-8f492cf877a1dc1f2b00f0d7addd8e4ea6325e2a.tar.bz2 scummvm-rg350-8f492cf877a1dc1f2b00f0d7addd8e4ea6325e2a.zip |
GRIFFON: Hide 'save' item from menu when there is nothing to save
Diffstat (limited to 'engines/griffon')
-rw-r--r-- | engines/griffon/dialogs.cpp | 8 | ||||
-rw-r--r-- | engines/griffon/resources.cpp | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/engines/griffon/dialogs.cpp b/engines/griffon/dialogs.cpp index 2153773773..38da696750 100644 --- a/engines/griffon/dialogs.cpp +++ b/engines/griffon/dialogs.cpp @@ -562,6 +562,14 @@ void GriffonEngine::saveLoadNew() { renderSaveStates(); + delete _saveLoadImg; + + _saveLoadImg = loadImage("art/saveloadnew.bmp", true); + if (_gameMode == kGameModeIntro) { + _saveLoadImg->fillRect(Common::Rect(125, 15, 160, 33), _videoBuffer->format.ARGBToColor(0, 0, 0, 0)); + } + _saveLoadImg->setAlpha(192, true); + // Main menu loop do { _videoBuffer->fillRect(Common::Rect(0, 0, _videoBuffer->w, _videoBuffer->h), 0); diff --git a/engines/griffon/resources.cpp b/engines/griffon/resources.cpp index 5ff8aa68e2..40f98223ea 100644 --- a/engines/griffon/resources.cpp +++ b/engines/griffon/resources.cpp @@ -82,8 +82,7 @@ void GriffonEngine::initialize() { _cloudImg = loadImage("art/clouds.bmp", true); _cloudImg->setAlpha(64, true); - _saveLoadImg = loadImage("art/saveloadnew.bmp", true); - _saveLoadImg->setAlpha(192, true); + _saveLoadImg = nullptr; _titleImg = loadImage("art/titleb.bmp"); _titleImg2 = loadImage("art/titlea.bmp", true); |