From cd288a4c5b816ddad9a019d41ee2e442f169eba1 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Thu, 17 Oct 2024 02:00:08 -0300 Subject: [PATCH] cheats & debug entries --- src/port/ui/ImguiUI.cpp | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index f261e9b7..bc3a6b65 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -416,15 +416,11 @@ void DrawEnhancementsMenu() { UIWidgets::CVarCheckbox("No Level of Detail (LOD)", "gDisableLOD", { .tooltip = "Disable Level of Detail (LOD) to avoid models using lower poly versions at a distance" }); - UIWidgets::CVarCheckbox("Select any star from menu", "gSelectAllStars", { - .tooltip = "Let's you select any star from the menu regardless of the courses completion status." - }); - UIWidgets::CVarCheckbox("Collecting Stars Will Not Exit Level", "gStarNoExit", { - .tooltip = "Stars act like the 100 coin star and will not take you out of the level" - }); - UIWidgets::CVarCheckbox("Avoid playing peach cutscene", "gDisablePeachCutscene", { - .tooltip = "Avoid playing the peach cutscene when starting a new game" - }); + + UIWidgets::CVarCheckbox("Speed Control", "gDebugSpeedControl", { + .tooltip = "Control the Arwing speed" + } + ); ImGui::EndMenu(); } @@ -434,8 +430,9 @@ void DrawEnhancementsMenu() { void DrawCheatsMenu() { if (UIWidgets::BeginMenu("Cheats")) { - UIWidgets::CVarCheckbox("Infinite Health", "gInfiniteHealth"); UIWidgets::CVarCheckbox("Infinite Lives", "gInfiniteLives"); + UIWidgets::CVarCheckbox("Infinite Bombs", "gInfiniteBombs"); + UIWidgets::CVarCheckbox("Hyper Laser", "gHyperLaser"); ImGui::EndMenu(); } @@ -472,6 +469,22 @@ void DrawDebugMenu() { .tooltip = "Disable starfield interpolation for performance" }); + UIWidgets::CVarCheckbox("Jump To Map", "gDebugJumpToMap", { + .tooltip = "Press Z + R + C-UP to get back to the map" + }); + + UIWidgets::CVarCheckbox("L To Warp Zone", "gDebugWarpZone", { + .tooltip = "Press L to get into the Warp Zone" + }); + + UIWidgets::CVarCheckbox("L to Level Complete", "gDebugLevelComplete", { + .tooltip = "Press L to Level Complete" + }); + + UIWidgets::CVarCheckbox("Disable Collision", "gDebugNoCollision", { + .tooltip = "Disable vehicle collision" + }); + UIWidgets::Spacer(0); UIWidgets::WindowButton("Stats", "gStatsEnabled", GameUI::mStatsWindow, {