mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-03 00:33:55 +03:00
Developer: add ending debug option
This commit is contained in:
parent
58a6d76af3
commit
9c41610be5
@ -3387,9 +3387,15 @@ void Title_NextState_OptionMenu(void) {
|
|||||||
case 1: // Go to the Option Menu
|
case 1: // Go to the Option Menu
|
||||||
if (sWipeHeight < 120) {
|
if (sWipeHeight < 120) {
|
||||||
sWipeHeight += 18;
|
sWipeHeight += 18;
|
||||||
|
} else {
|
||||||
|
if (CVarGetInteger("gDebugEnding", 0) == 1) {
|
||||||
|
gGameState = GSTATE_ENDING;
|
||||||
|
gGreatFoxIntact = 1;
|
||||||
|
gLeveLClearStatus[LEVEL_ZONESS] = 1;
|
||||||
|
gLeveLClearStatus[LEVEL_KATINA] = 1;
|
||||||
} else {
|
} else {
|
||||||
gGameState = GSTATE_MENU;
|
gGameState = GSTATE_MENU;
|
||||||
// gGameState = GSTATE_ENDING;
|
}
|
||||||
gNextGameStateTimer = 2;
|
gNextGameStateTimer = 2;
|
||||||
gOptionMenuStatus = OPTION_WAIT;
|
gOptionMenuStatus = OPTION_WAIT;
|
||||||
gDrawMode = DRAW_NONE;
|
gDrawMode = DRAW_NONE;
|
||||||
|
@ -560,6 +560,10 @@ void DrawDebugMenu() {
|
|||||||
.tooltip = "Control the Arwing speed"
|
.tooltip = "Control the Arwing speed"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
UIWidgets::CVarCheckbox("Debug Ending", "gDebugEnding", {
|
||||||
|
.tooltip = "Jump to credits at the main menu"
|
||||||
|
});
|
||||||
|
|
||||||
if (CVarGetInteger("gCheckpoint.Set", 0)) {
|
if (CVarGetInteger("gCheckpoint.Set", 0)) {
|
||||||
if (UIWidgets::Button("Clear Checkpoint")) {
|
if (UIWidgets::Button("Clear Checkpoint")) {
|
||||||
CVarClear("gCheckpoint.Set");
|
CVarClear("gCheckpoint.Set");
|
||||||
|
Loading…
Reference in New Issue
Block a user