mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-19 00:15:30 +03:00
Add Debug Pause
This commit is contained in:
parent
fb130d48ba
commit
e3378709e4
@ -7167,8 +7167,9 @@ void Play_Main(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gDrawMode = DRAW_PLAY;
|
gDrawMode = DRAW_PLAY;
|
||||||
|
if (CVarGetInteger("gDebugPause", 0) == 0){
|
||||||
Play_Update();
|
Play_Update();
|
||||||
|
}
|
||||||
|
|
||||||
if ((gControllerPress[gMainController].button & START_BUTTON) &&
|
if ((gControllerPress[gMainController].button & START_BUTTON) &&
|
||||||
(gPlayer[0].state == PLAYERSTATE_LEVEL_INTRO) &&
|
(gPlayer[0].state == PLAYERSTATE_LEVEL_INTRO) &&
|
||||||
|
@ -713,6 +713,10 @@ void DrawDebugMenu() {
|
|||||||
.tooltip = "Jump to credits at the main menu"
|
.tooltip = "Jump to credits at the main menu"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (gGameState == GSTATE_PLAY){
|
||||||
|
UIWidgets::CVarCheckbox("Debug Pause", "gDebugPause");
|
||||||
|
}
|
||||||
|
|
||||||
if (CVarGetInteger(StringHelper::Sprintf("gCheckpoint.%d.Set", gCurrentLevel).c_str(), 0)) {
|
if (CVarGetInteger(StringHelper::Sprintf("gCheckpoint.%d.Set", gCurrentLevel).c_str(), 0)) {
|
||||||
if (UIWidgets::Button("Clear Checkpoint")) {
|
if (UIWidgets::Button("Clear Checkpoint")) {
|
||||||
CVarClear(StringHelper::Sprintf("gCheckpoint.%d.Set", gCurrentLevel).c_str());
|
CVarClear(StringHelper::Sprintf("gCheckpoint.%d.Set", gCurrentLevel).c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user