FULLPIPE: Starter ModalHelp implementation

This commit is contained in:
Eugene Sandulenko 2014-02-01 22:11:50 +02:00
parent 5cf538bc01
commit 1a77fba3f9
3 changed files with 34 additions and 1 deletions

View File

@ -215,6 +215,7 @@ namespace Fullpipe {
#define SC_INTRO2 3907
#define SC_INV 858
#define SC_LDR 635
#define SC_MAINMENU 4620
#define SC_MAP 5222
#define SC_TITLES 5166
#define SND_CMN_031 3516

View File

@ -755,6 +755,29 @@ ModalMainMenu::ModalMainMenu() {
_field_34 = 0;
}
ModalHelp::ModalHelp() {
_mainMenuScene = 0;
_bg = 0;
_isRunning = false;
_rect = g_fp->_sceneRect;
_hx = g_fp->_currentScene->_x;
_hy = g_fp->_currentScene->_y;
g_fp->_sceneRect.left = 0;
g_fp->_sceneRect.bottom = 600;
g_fp->_sceneRect.top = 0;
g_fp->_sceneRect.right = 800;
}
ModalHelp::~ModalHelp() {
g_fp->_gameLoader->unloadScene(SC_MAINMENU);
g_fp->_sceneRect = _rect;
g_fp->_currentScene->_x = _hx;
g_fp->_currentScene->_y = _hy;
}
void FullpipeEngine::openHelp() {
warning("STUB: FullpipeEngine::openHelp()");
}

View File

@ -26,6 +26,7 @@
namespace Fullpipe {
class PictureObject;
class Picture;
class BaseModalObject {
public:
@ -162,9 +163,17 @@ public:
};
class ModalHelp : public BaseModalObject {
public:
Scene *_mainMenuScene;
Picture *_bg;
bool _isRunning;
Common::Rect _rect;
int _hx;
int _hy;
public:
ModalHelp();
virtual ~ModalHelp() {}
virtual ~ModalHelp();
virtual bool pollEvent() { return true; }
virtual bool handleMessage(ExCommand *message) { return false; }