mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
FULLPIPE: More code to ModalHelp
This commit is contained in:
parent
1a77fba3f9
commit
60622b49f7
@ -778,6 +778,35 @@ ModalHelp::~ModalHelp() {
|
||||
g_fp->_currentScene->_y = _hy;
|
||||
}
|
||||
|
||||
bool ModalHelp::handleMessage(ExCommand *cmd) {
|
||||
if (cmd->_messageKind == 17) {
|
||||
int msg = cmd->_messageNum;
|
||||
|
||||
if (msg == 29 || msg == 36 || msg == 107) {
|
||||
_isRunning = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ModalHelp::init(int counterdiff) {
|
||||
g_fp->setCursor(PIC_CSR_DEFAULT);
|
||||
|
||||
return _isRunning;
|
||||
}
|
||||
|
||||
void ModalHelp::update() {
|
||||
g_fp->_sceneRect.left = 0;
|
||||
g_fp->_sceneRect.top = 0;
|
||||
g_fp->_sceneRect.right = 800;
|
||||
g_fp->_sceneRect.bottom = 600;
|
||||
|
||||
_bg->draw(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
void FullpipeEngine::openHelp() {
|
||||
warning("STUB: FullpipeEngine::openHelp()");
|
||||
}
|
||||
|
@ -176,9 +176,9 @@ public:
|
||||
virtual ~ModalHelp();
|
||||
|
||||
virtual bool pollEvent() { return true; }
|
||||
virtual bool handleMessage(ExCommand *message) { return false; }
|
||||
virtual bool init(int counterdiff) { return true; }
|
||||
virtual void update() {}
|
||||
virtual bool handleMessage(ExCommand *message);
|
||||
virtual bool init(int counterdiff);
|
||||
virtual void update();
|
||||
virtual void saveload() {}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user