Add Mod menu and move Katina tweak there

This commit is contained in:
Kiloku 2024-12-26 21:34:54 -03:00
parent 7e53e72246
commit 4a8fe23177

View File

@ -446,10 +446,6 @@ void DrawEnhancementsMenu() {
.tooltip = "Character heads are displayed inside Arwings in all cutscenes", .tooltip = "Character heads are displayed inside Arwings in all cutscenes",
.defaultValue = true .defaultValue = true
}); });
UIWidgets::CVarCheckbox("Score penalty on Katina Friendly Fire", "gKatinaPunishFF", {
.tooltip = "Shooting down a friendly fighter on Katina reduces your score.",
.defaultValue = false
});
ImGui::EndMenu(); ImGui::EndMenu();
} }
@ -506,6 +502,18 @@ void DrawCheatsMenu() {
} }
} }
void DrawModsMenu() {
if (UIWidgets::BeginMenu("Mods")) {
UIWidgets::CVarCheckbox("Score penalty on Katina Friendly Fire", "gKatinaPunishFF", {
.tooltip = "Shooting down a friendly fighter on Katina reduces your score.",
.defaultValue = false
});
ImGui::EndMenu();
}
}
static const char* debugInfoPages[6] = { static const char* debugInfoPages[6] = {
"Object", "Object",
"Check Surface", "Check Surface",
@ -646,6 +654,8 @@ void GameMenuBar::DrawElement() {
ImGui::SetCursorPosY(0.0f); ImGui::SetCursorPosY(0.0f);
DrawModsMenu();
ImGui::SetCursorPosY(0.0f); ImGui::SetCursorPosY(0.0f);
DrawDebugMenu(); DrawDebugMenu();