From 537b25ab13ecd07146463711c576ed28cad72165 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Mon, 9 Dec 2024 23:27:13 -0300 Subject: [PATCH] remove hit+64 and put everything inside cheats --- src/port/ui/ImguiUI.cpp | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index b7c4539a..d12a6840 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -302,14 +302,9 @@ void DrawSettingsMenu(){ "##ExtraLatencyThreshold", "gExtraLatencyThreshold", 0, 360, "", 0, true, true, false); UIWidgets::Tooltip("When Interpolation FPS setting is at least this threshold, add one frame of input lag (e.g. 16.6 ms for 60 FPS) in order to avoid jitter. This setting allows the CPU to work on one frame while GPU works on the previous frame.\nThis setting should be used when your computer is too slow to do CPU + GPU work in time."); } - - UIWidgets::CVarCheckbox("Disable Starfield interpolation", "gDisableStarsInterpolation", { - .tooltip = "Disable starfield interpolation to increase performance on slower CPUs" - }); - + UIWidgets::PaddedSeparator(true, true, 3.0f, 3.0f); - static std::unordered_map windowBackendNames = { { Ship::WindowBackend::FAST3D_DXGI_DX11, "DirectX" }, { Ship::WindowBackend::FAST3D_SDL_OPENGL, "OpenGL"}, @@ -464,13 +459,6 @@ void DrawCheatsMenu() { UIWidgets::CVarCheckbox("Unbreakable Wings", "gUnbreakableWings"); UIWidgets::CVarCheckbox("Infinite Bombs", "gInfiniteBombs"); UIWidgets::CVarCheckbox("Hyper Laser", "gHyperLaser"); - - ImGui::EndMenu(); - } -} - -void DrawHit64Menu() { - if (UIWidgets::BeginMenu("Hit+64")) { UIWidgets::CVarCheckbox("Self destruct button", "gHit64SelfDestruct", { .tooltip = "Press Down on the D-PAD to instantly self destruct." }); @@ -535,6 +523,10 @@ void DrawDebugMenu() { .tooltip = "Press L in the Expert Sound options to play sound effects from the game" }); + UIWidgets::CVarCheckbox("Disable Starfield interpolation", "gDisableStarsInterpolation", { + .tooltip = "Disable starfield interpolation to increase performance on slower CPUs" + }); + UIWidgets::CVarCheckbox("Spawner Mod", "gSpawnerMod", { .tooltip = "Spawn Scenery, Actors, Bosses, Sprites, Items, Effects and even Event Actors.\n" "\n" @@ -624,8 +616,6 @@ void GameMenuBar::DrawElement() { ImGui::SetCursorPosY(0.0f); - DrawHit64Menu(); - ImGui::SetCursorPosY(0.0f); DrawDebugMenu();