aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-02-01 22:21:51 +0200
committerEugene Sandulenko2014-02-01 22:25:53 +0200
commit8ac3a3654b2a3b375b7ccd5d1fe34296568c6622 (patch)
tree456edb7f99addd6417e251d8c4fa9f811e4935a8
parent60622b49f7ffa1940e6febba1a6ac52a3123ea41 (diff)
downloadscummvm-rg350-8ac3a3654b2a3b375b7ccd5d1fe34296568c6622.tar.gz
scummvm-rg350-8ac3a3654b2a3b375b7ccd5d1fe34296568c6622.tar.bz2
scummvm-rg350-8ac3a3654b2a3b375b7ccd5d1fe34296568c6622.zip
FULLPIPE: Implement ModalHelp::launch()
-rw-r--r--engines/fullpipe/constants.h1
-rw-r--r--engines/fullpipe/modal.cpp9
-rw-r--r--engines/fullpipe/modal.h2
3 files changed, 12 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 70b77d2194..f22505ae78 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -88,6 +88,7 @@ namespace Fullpipe {
#define PIC_CSR_ITN_RED 5329
#define PIC_CSR_LIFT 5176
#define PIC_CSR_MAP 5339
+#define PIC_HLP_BGR 3562
#define PIC_IN1_GAMETITLE 5169
#define PIC_IN1_PIPETITLE 5167
#define PIC_INV_MENU 991
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index ddfcc5dff4..1bbed69613 100644
--- a/engines/fullpipe/modal.cpp
+++ b/engines/fullpipe/modal.cpp
@@ -807,6 +807,15 @@ void ModalHelp::update() {
_bg->draw(0, 0, 0, 0);
}
+void ModalHelp::launch() {
+ _mainMenuScene = g_fp->accessScene(SC_MAINMENU);
+
+ if (_mainMenuScene) {
+ _bg = _mainMenuScene->getPictureObjectById(PIC_HLP_BGR, 0)->_picture;
+ _isRunning = 1;
+ }
+}
+
void FullpipeEngine::openHelp() {
warning("STUB: FullpipeEngine::openHelp()");
}
diff --git a/engines/fullpipe/modal.h b/engines/fullpipe/modal.h
index c06ef2981d..aa9b997cd1 100644
--- a/engines/fullpipe/modal.h
+++ b/engines/fullpipe/modal.h
@@ -180,6 +180,8 @@ public:
virtual bool init(int counterdiff);
virtual void update();
virtual void saveload() {}
+
+ void launch();
};
class ModalQuery : public BaseModalObject {