diff options
author | Paul Gilbert | 2018-03-04 18:27:34 -0500 |
---|---|---|
committer | Paul Gilbert | 2018-03-04 22:40:43 -0500 |
commit | 67d4de1bb818b2cfc628549ba38cc4f00b8236b2 (patch) | |
tree | 119c70ac00efbec0d479c1ebfecad6a6db9a728a /engines/xeen/dialogs/dialogs.cpp | |
parent | f2b574d64762d23a83cc682da0e622be99080688 (diff) | |
download | scummvm-rg350-67d4de1bb818b2cfc628549ba38cc4f00b8236b2.tar.gz scummvm-rg350-67d4de1bb818b2cfc628549ba38cc4f00b8236b2.tar.bz2 scummvm-rg350-67d4de1bb818b2cfc628549ba38cc4f00b8236b2.zip |
XEEN: Move Credits and Please Wait classes into their own files
Diffstat (limited to 'engines/xeen/dialogs/dialogs.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/engines/xeen/dialogs/dialogs.cpp b/engines/xeen/dialogs/dialogs.cpp index c9b5658a0e..d7a696b8d5 100644 --- a/engines/xeen/dialogs/dialogs.cpp +++ b/engines/xeen/dialogs/dialogs.cpp @@ -187,71 +187,4 @@ void SettingsBaseDialog::showContents(SpriteResource &title1, bool waitFlag) { checkEvents(_vm); } -/*------------------------------------------------------------------------*/ - -void CreditsScreen::show(XeenEngine *vm) { - CreditsScreen *dlg = new CreditsScreen(vm); - - switch (vm->getGameID()) { - case GType_Clouds: - dlg->execute(Res.CLOUDS_CREDITS); - break; - case GType_Swords: - dlg->execute(Res.SWORDS_CREDITS1); - dlg->execute(Res.SWORDS_CREDITS2); - break; - default: - dlg->execute(Res.DARK_SIDE_CREDITS); - break; - } - - delete dlg; -} - -void CreditsScreen::execute(const char *content) { - Screen &screen = *_vm->_screen; - Windows &windows = *_vm->_windows; - EventsManager &events = *_vm->_events; - - // Handle drawing the credits screen - doScroll(true, false); - windows[GAME_WINDOW].close(); - - screen.loadBackground("marb.raw"); - windows[0].writeString(content); - doScroll(false, false); - - events.setCursor(0); - windows[0].update(); - clearButtons(); - - // Wait for keypress - while (!events.isKeyMousePressed()) - events.pollEventsAndWait(); - - doScroll(true, false); -} - -/*------------------------------------------------------------------------*/ - -PleaseWait::PleaseWait(bool isOops) { - _msg = isOops ? Res.OOPS : Res.PLEASE_WAIT; -} - -PleaseWait::~PleaseWait() { - Windows &windows = *g_vm->_windows; - windows[9].close(); -} - -void PleaseWait::show() { - Windows &windows = *g_vm->_windows; - Window &w = windows[9]; - - if (g_vm->_mode != MODE_0) { - w.open(); - w.writeString(_msg); - w.update(); - } -} - } // End of namespace Xeen |