initial collision viewer

This commit is contained in:
TakaRikka
2026-03-17 05:17:43 -07:00
parent 266c4317d9
commit eaad85d618
12 changed files with 46 additions and 48 deletions
+2
View File
@@ -13,7 +13,9 @@ namespace dusk {
public:
ImGuiConsole();
void draw();
bool isBloomEnabled() { return m_menuGame.isBloomEnabled(); }
bool isCollisionView() { return m_menuTools.isCollisionView(); }
static bool CheckMenuViewToggle(ImGuiKey key, bool& active);
+2
View File
@@ -6,6 +6,7 @@
#include "ImGuiMenuTools.hpp"
#include "m_Do/m_Do_main.h"
#include "d/d_com_inf_game.h"
namespace dusk {
ImGuiMenuTools::ImGuiMenuTools() {}
@@ -17,6 +18,7 @@ namespace dusk {
if (ImGui::Checkbox("Development Mode", &m_isDevelopmentMode)) {
isToggleDevelopmentMode = true;
}
ImGui::Checkbox("Enable Collision View", &m_enableCollisionView);
ImGui::Separator();
ImGui::MenuItem("Process Management", "F2", &m_showProcessManagement);
+4
View File
@@ -19,6 +19,8 @@ namespace dusk {
void ShowStubLog();
void ShowMapLoader();
bool isCollisionView() { return m_enableCollisionView; }
private:
bool m_showDebugOverlay = false;
int m_debugOverlayCorner = 0; // top-left
@@ -46,6 +48,8 @@ namespace dusk {
} m_mapLoaderInfo;
bool m_isDevelopmentMode = false;
bool m_enableCollisionView = false;
};
}