mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 13:35:11 +03:00
ADD: Cheat - Current Mission Score Editor
This commit is contained in:
parent
299f6541a2
commit
74b056fa45
@ -2132,6 +2132,14 @@ void Display_Update(void) {
|
|||||||
}
|
}
|
||||||
gLaserStrength[0] = 2;
|
gLaserStrength[0] = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CVarGetInteger("gScoreEditor", 0) == 1) {
|
||||||
|
if ((gGameState != GSTATE_PLAY) || (gPlayState <= PLAY_INIT)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
gHitCount = CVarGetInteger("gScoreEditValue", 1);
|
||||||
|
|
||||||
|
}
|
||||||
Hit64_Main();
|
Hit64_Main();
|
||||||
// ground testing
|
// ground testing
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -471,6 +471,13 @@ void DrawCheatsMenu() {
|
|||||||
UIWidgets::CVarCheckbox("Start with Peppy dead", "gHit64PeppyDead", {
|
UIWidgets::CVarCheckbox("Start with Peppy dead", "gHit64PeppyDead", {
|
||||||
.tooltip = "Start the level with with Peppy dead."
|
.tooltip = "Start the level with with Peppy dead."
|
||||||
});
|
});
|
||||||
|
|
||||||
|
UIWidgets::CVarCheckbox("Score Editor", "gScoreEditor", { .tooltip = "Enable the score editor" });
|
||||||
|
|
||||||
|
if (CVarGetInteger("gScoreEditor", 0) == 1) {
|
||||||
|
UIWidgets::CVarSliderInt("Score: %d", "gScoreEditValue", 0, 999, 0,
|
||||||
|
{ .tooltip = "Increase or decrease the current mission score number" });
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user