aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs/dialogs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/dialogs/dialogs.cpp')
-rw-r--r--engines/xeen/dialogs/dialogs.cpp67
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