summaryrefslogtreecommitdiff
path: root/src/port/ui/ImguiUI.cpp
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-09-10 16:27:31 -0600
committerGitHub <noreply@github.com>2024-09-10 16:27:31 -0600
commited85166756cfd2a0e4bdba81f957b06d52147d3c (patch)
treeab18b4d25b09456d1cc79d89a046aea4d8c834d4 /src/port/ui/ImguiUI.cpp
parentb36b9e318095e0ae5fc720319a55418d9aa5a4c3 (diff)
[enhancement] Collision Viewer (#59)
* Update render_courses.c * Update render_courses.c * Update ImguiUI.cpp * Create collision_viewer.c * Update render_courses.c * Update render_courses.c * Create collision_viewer.h * Update collision_viewer.c * Update render_courses.c * Update render_courses.c
Diffstat (limited to 'src/port/ui/ImguiUI.cpp')
-rw-r--r--src/port/ui/ImguiUI.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp
index 69d3d82e9..d434de37a 100644
--- a/src/port/ui/ImguiUI.cpp
+++ b/src/port/ui/ImguiUI.cpp
@@ -494,7 +494,9 @@ void DrawDebugMenu() {
{ .tooltip =
"Enables the Gfx Debugger window, allowing you to input commands, type help for some examples" });
- UIWidgets::CVarCheckbox("Debug mode", "gEnableDebugMode", { .tooltip = "TBD" });
+ UIWidgets::CVarCheckbox("Debug mode", "gEnableDebugMode", {
+ .tooltip = "Enable debug mode"
+ });
UIWidgets::CVarCheckbox("Level Selector", "gLevelSelector",
{ .tooltip = "Allows you to select any level from the main menu" });
@@ -502,6 +504,10 @@ void DrawDebugMenu() {
UIWidgets::CVarCheckbox("SFX Jukebox", "gSfxJukebox",
{ .tooltip = "Allows you to play sound effects from the game" });
+ UIWidgets::CVarCheckbox("Render Collision", "gRenderCollisionMesh", {
+ .tooltip = "Renders the collision mesh instead of the course mesh"
+ });
+
UIWidgets::Spacer(0);
UIWidgets::WindowButton("GameInfo", "gGameInfoEnabled", GameUI::mGameInfoWindow,