FULLPIPE: Complete ModalCredits
This commit is contained in:
parent
94b2249f69
commit
50bb717bcc
2 changed files with 76 additions and 5 deletions
|
@ -195,6 +195,8 @@ bool ModalIntro::init(int counterdiff) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModalIntro::update() {
|
void ModalIntro::update() {
|
||||||
|
warning("STUB: ModalIntro::update()");
|
||||||
|
|
||||||
if (g_fp->_currentScene) {
|
if (g_fp->_currentScene) {
|
||||||
if (_introFlags & 1) {
|
if (_introFlags & 1) {
|
||||||
//sceneFade(virt, g_currentScene, 1);
|
//sceneFade(virt, g_currentScene, 1);
|
||||||
|
@ -687,6 +689,72 @@ ModalCredits::~ModalCredits() {
|
||||||
g_fp->_sfxVolume = _sfxVolume;
|
g_fp->_sfxVolume = _sfxVolume;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ModalCredits::handleMessage(ExCommand *cmd) {
|
||||||
|
if (cmd->_messageKind == 17 && cmd->_messageNum == 36 && cmd->_keyCode == 27) {
|
||||||
|
_fadeIn = false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ModalCredits::init(int counterdiff) {
|
||||||
|
if (_fadeIn || _fadeOut) {
|
||||||
|
_countdown--;
|
||||||
|
|
||||||
|
if (_countdown < 0)
|
||||||
|
_fadeIn = false;
|
||||||
|
|
||||||
|
_creditsPic->setOXY(_currX, _currY);
|
||||||
|
|
||||||
|
if (_currY > _maxY)
|
||||||
|
_currY -= 2;
|
||||||
|
} else {
|
||||||
|
if (_parentObj)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
ModalMainMenu *menu = new ModalMainMenu;
|
||||||
|
|
||||||
|
g_fp->_modalObject = menu;
|
||||||
|
|
||||||
|
menu->_field_34 = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModalCredits::update() {
|
||||||
|
warning("STUB: ModalCredits::update()");
|
||||||
|
|
||||||
|
if (_fadeOut) {
|
||||||
|
if (_fadeIn) {
|
||||||
|
_sceneTitles->draw();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else if (_fadeIn) {
|
||||||
|
//sceneFade(virt, this->_sceneTitles, 1); // TODO
|
||||||
|
_fadeOut = 1;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_fadeOut) {
|
||||||
|
//sceneFade(virt, this->_sceneTitles, 0); // TODO
|
||||||
|
_fadeOut = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_sceneTitles->draw();
|
||||||
|
}
|
||||||
|
|
||||||
|
ModalMainMenu::ModalMainMenu() {
|
||||||
|
warning("STUB: ModalMainMenu::ModalMainMenu()");
|
||||||
|
|
||||||
|
_field_34 = 0;
|
||||||
|
}
|
||||||
|
|
||||||
void FullpipeEngine::openHelp() {
|
void FullpipeEngine::openHelp() {
|
||||||
warning("STUB: FullpipeEngine::openHelp()");
|
warning("STUB: FullpipeEngine::openHelp()");
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,15 +140,18 @@ class ModalCredits : public BaseModalObject {
|
||||||
virtual ~ModalCredits();
|
virtual ~ModalCredits();
|
||||||
|
|
||||||
virtual bool pollEvent() { return true; }
|
virtual bool pollEvent() { return true; }
|
||||||
virtual bool handleMessage(ExCommand *message) { return false; }
|
virtual bool handleMessage(ExCommand *message);
|
||||||
virtual bool init(int counterdiff) { return true; }
|
virtual bool init(int counterdiff);
|
||||||
virtual void update() {}
|
virtual void update();
|
||||||
virtual void saveload() {}
|
virtual void saveload() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class ModalMainMenu : public BaseModalObject {
|
class ModalMainMenu : public BaseModalObject {
|
||||||
public:
|
public:
|
||||||
ModalMainMenu() {}
|
int _field_34;
|
||||||
|
|
||||||
|
public:
|
||||||
|
ModalMainMenu();
|
||||||
virtual ~ModalMainMenu() {}
|
virtual ~ModalMainMenu() {}
|
||||||
|
|
||||||
virtual bool pollEvent() { return true; }
|
virtual bool pollEvent() { return true; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue