mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-13 21:45:17 +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;
|
||||
|
||||
if (CVarGetInteger("gDebugPause", 0) == 0){
|
||||
Play_Update();
|
||||
}
|
||||
|
||||
if ((gControllerPress[gMainController].button & START_BUTTON) &&
|
||||
(gPlayer[0].state == PLAYERSTATE_LEVEL_INTRO) &&
|
||||
|
@ -713,6 +713,10 @@ void DrawDebugMenu() {
|
||||
.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 (UIWidgets::Button("Clear Checkpoint")) {
|
||||
CVarClear(StringHelper::Sprintf("gCheckpoint.%d.Set", gCurrentLevel).c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user