aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-21 22:03:29 -0400
committerPaul Gilbert2015-07-21 22:03:29 -0400
commitaad99b770654e42b514beca9ec99d58f5e03a22f (patch)
tree07626dc2ba31f1535e2eef3f079922a06f0e21cd /engines
parent21d6099463e2eed1b8701aa52cd6b7769ad2aa21 (diff)
downloadscummvm-rg350-aad99b770654e42b514beca9ec99d58f5e03a22f.tar.gz
scummvm-rg350-aad99b770654e42b514beca9ec99d58f5e03a22f.tar.bz2
scummvm-rg350-aad99b770654e42b514beca9ec99d58f5e03a22f.zip
SHERLOCK: RT: Load screen masks for specific scenes
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/tattoo/tattoo.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo.cpp b/engines/sherlock/tattoo/tattoo.cpp
index dcea3386cb..57b80ff391 100644
--- a/engines/sherlock/tattoo/tattoo.cpp
+++ b/engines/sherlock/tattoo/tattoo.cpp
@@ -25,6 +25,7 @@
#include "sherlock/tattoo/tattoo_fixed_text.h"
#include "sherlock/tattoo/tattoo_resources.h"
#include "sherlock/tattoo/tattoo_scene.h"
+#include "sherlock/tattoo/tattoo_user_interface.h"
#include "sherlock/tattoo/widget_base.h"
#include "sherlock/people.h"
@@ -81,7 +82,22 @@ void TattooEngine::initialize() {
}
void TattooEngine::startScene() {
+ TattooUserInterface &ui = *(TattooUserInterface *)_ui;
+
switch (_scene->_goToScene) {
+ case 7:
+ case 8:
+ case 18:
+ case 53:
+ case 68:
+ // Load overlay mask(s) for the scene
+ ui._mask = new ImageFile(Common::String::format("res%02d.msk", _scene->_goToScene));
+ if (_scene->_goToScene == 8)
+ ui._mask1 = new ImageFile("res08a.msk");
+ else if (_scene->_goToScene == 18 || _scene->_goToScene == 68)
+ ui._mask1 = new ImageFile("res08a.msk");
+ break;
+
case OVERHEAD_MAP:
case OVERHEAD_MAP2:
// Show the map