aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/menu.cpp
diff options
context:
space:
mode:
authorMatthew Stewart2018-05-24 22:08:56 -0400
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commit45ae72b763268d87a5a6613231b7a11a2fbd8168 (patch)
treefd5f55b9ca830dff6544c68d60e7836c3f02fcdc /engines/startrek/menu.cpp
parentca3a9dcc8764909e163a860e4a472404620480e2 (diff)
downloadscummvm-rg350-45ae72b763268d87a5a6613231b7a11a2fbd8168.tar.gz
scummvm-rg350-45ae72b763268d87a5a6613231b7a11a2fbd8168.tar.bz2
scummvm-rg350-45ae72b763268d87a5a6613231b7a11a2fbd8168.zip
STARTREK: DEMON1 done (klingon attack)
Diffstat (limited to 'engines/startrek/menu.cpp')
-rw-r--r--engines/startrek/menu.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/engines/startrek/menu.cpp b/engines/startrek/menu.cpp
index b0aea1f284..d6929d0d5c 100644
--- a/engines/startrek/menu.cpp
+++ b/engines/startrek/menu.cpp
@@ -848,6 +848,39 @@ void StarTrekEngine::showQuitGamePrompt(int x, int y) {
}
}
+void StarTrekEngine::showGameOverMenu() {
+ const char *options[] = {
+ "Game Over",
+ "#GENE\\GENER006#Load a previously saved game.",
+ "#GENE\\GENER020#Restart the game.",
+ "#GENE\\GENER018#Quit the game.",
+ ""
+ };
+
+ while (true) {
+ _inQuitGameMenu = true;
+ int selected = showText(&StarTrekEngine::readTextFromArray, (uintptr)options, 20, 20, TEXTCOLOR_YELLOW, true, false, true);
+ _inQuitGameMenu = false;
+
+ switch (selected) {
+ case 0: // Load game
+ _gfx->fadeoutScreen();
+ showLoadMenu(); // TODO: this probably manipulates the stack to jump out of this function...
+ break;
+ case 1: // Restart
+ _gfx->fadeoutScreen();
+ // TODO
+ break;
+ case 2: // Quit
+ _gfx->fadeoutScreen();
+ _system->quit();
+ break;
+ default:
+ break;
+ }
+ }
+}
+
/**
* This can be called from startup or from the options menu.
* On startup, this tries to load the setting without user input.