diff options
author | Eugene Sandulenko | 2014-02-01 22:21:51 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-02-01 22:25:53 +0200 |
commit | 8ac3a3654b2a3b375b7ccd5d1fe34296568c6622 (patch) | |
tree | 456edb7f99addd6417e251d8c4fa9f811e4935a8 | |
parent | 60622b49f7ffa1940e6febba1a6ac52a3123ea41 (diff) | |
download | scummvm-rg350-8ac3a3654b2a3b375b7ccd5d1fe34296568c6622.tar.gz scummvm-rg350-8ac3a3654b2a3b375b7ccd5d1fe34296568c6622.tar.bz2 scummvm-rg350-8ac3a3654b2a3b375b7ccd5d1fe34296568c6622.zip |
FULLPIPE: Implement ModalHelp::launch()
-rw-r--r-- | engines/fullpipe/constants.h | 1 | ||||
-rw-r--r-- | engines/fullpipe/modal.cpp | 9 | ||||
-rw-r--r-- | engines/fullpipe/modal.h | 2 |
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 { |