aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorja Lorente2016-08-10 17:28:55 +0200
committerBorja Lorente2016-08-19 16:29:16 +0200
commite886f2c6e170ae2af96371c5c3e035cef8a05827 (patch)
tree0b9bb14e20c02a0f4c7223e441056e6c8bf6fb2f
parent02138548aeb91ee6d435dc71763c74bfed125121 (diff)
downloadscummvm-rg350-e886f2c6e170ae2af96371c5c3e035cef8a05827.tar.gz
scummvm-rg350-e886f2c6e170ae2af96371c5c3e035cef8a05827.tar.bz2
scummvm-rg350-e886f2c6e170ae2af96371c5c3e035cef8a05827.zip
MACVENTURE: Add lose game dialog
-rw-r--r--engines/macventure/macventure.cpp2
-rw-r--r--engines/macventure/prebuilt_dialogs.cpp12
-rw-r--r--engines/macventure/prebuilt_dialogs.h1
3 files changed, 14 insertions, 1 deletions
diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp
index 0a27babb26..a18bdcfef2 100644
--- a/engines/macventure/macventure.cpp
+++ b/engines/macventure/macventure.cpp
@@ -317,7 +317,7 @@ void MacVentureEngine::winGame() {
}
void MacVentureEngine::loseGame() {
- _gui->showPrebuiltDialog(kWinGameDialog);
+ _gui->showPrebuiltDialog(kLoseGameDialog);
_paused = true;
//_gameState = kGameStateLosing;
}
diff --git a/engines/macventure/prebuilt_dialogs.cpp b/engines/macventure/prebuilt_dialogs.cpp
index 76d2c15ed4..46b71ab93a 100644
--- a/engines/macventure/prebuilt_dialogs.cpp
+++ b/engines/macventure/prebuilt_dialogs.cpp
@@ -59,6 +59,18 @@ PrebuiltDialog prebuiltDialogs[kPrebuiltDialogCount] = {
{kDEButton, "Quit", kDAQuit, Common::Point(200, 60), 70, 20},
{kDEEnd, "", kDANone, Common::Point(0, 0), 0, 0}
}
+ },
+
+ { /* kLoseGameDialog */
+ Common::Rect(20, 100, 320, 200),
+ {
+ {kDEPlainText, "You Died", kDANone, Common::Point(20, 16), 280, 20},
+ {kDEPlainText, "What do you want to do?", kDANone, Common::Point(20, 30), 280, 20},
+ {kDEButton, "New Game", kDANewGame, Common::Point(20, 60), 70, 20},
+ {kDEButton, "Load", kDALoadGame, Common::Point(110, 60), 70, 20},
+ {kDEButton, "Quit", kDAQuit, Common::Point(200, 60), 70, 20},
+ {kDEEnd, "", kDANone, Common::Point(0, 0), 0, 0}
+ }
}
};
} // End of namespace MacVenture
diff --git a/engines/macventure/prebuilt_dialogs.h b/engines/macventure/prebuilt_dialogs.h
index 4c6f386770..1c97847455 100644
--- a/engines/macventure/prebuilt_dialogs.h
+++ b/engines/macventure/prebuilt_dialogs.h
@@ -41,6 +41,7 @@ enum PrebuiltDialogs {
kSaveAsDialog = 0, //TODO: Currently unused, we are using ScummVM dialogs instead.
kSpeakDialog = 1,
kWinGameDialog = 2,
+ kLoseGameDialog = 3,
kPrebuiltDialogCount
};