From 4a8fe23177f32821cabc1b9e529f94301ae53950 Mon Sep 17 00:00:00 2001 From: Kiloku Date: Thu, 26 Dec 2024 21:34:54 -0300 Subject: [PATCH] Add Mod menu and move Katina tweak there --- src/port/ui/ImguiUI.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index f240e50b..13e73067 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -446,10 +446,6 @@ void DrawEnhancementsMenu() { .tooltip = "Character heads are displayed inside Arwings in all cutscenes", .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(); } @@ -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] = { "Object", "Check Surface", @@ -646,6 +654,8 @@ void GameMenuBar::DrawElement() { ImGui::SetCursorPosY(0.0f); + DrawModsMenu(); + ImGui::SetCursorPosY(0.0f); DrawDebugMenu();