mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-20 21:33:28 -04:00
add cc collider view (broken color)
This commit is contained in:
@@ -15,7 +15,7 @@ namespace dusk {
|
||||
void draw();
|
||||
|
||||
bool isBloomEnabled() { return m_menuGame.isBloomEnabled(); }
|
||||
bool isCollisionView() { return m_menuTools.isCollisionView(); }
|
||||
ImGuiMenuTools::CollisionViewSettings& getCollisionViewSettings() { return m_menuTools.getCollisionViewSettings(); }
|
||||
|
||||
static bool CheckMenuViewToggle(ImGuiKey key, bool& active);
|
||||
|
||||
|
||||
@@ -18,9 +18,23 @@ namespace dusk {
|
||||
if (ImGui::Checkbox("Development Mode", &m_isDevelopmentMode)) {
|
||||
isToggleDevelopmentMode = true;
|
||||
}
|
||||
ImGui::Checkbox("Enable Collision View", &m_enableCollisionView);
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
if (ImGui::BeginMenu("Collision View")) {
|
||||
ImGui::Checkbox("Enable Terrain view", &m_collisionViewSettings.m_enableTerrainView);
|
||||
// can't use wireframe atm because aurora doesn't support GX_LINES
|
||||
//ImGui::Checkbox("Enable wireframe view", &m_collisionViewSettings.m_enableWireframe);
|
||||
ImGui::SliderFloat("Opacity##terrain", &m_collisionViewSettings.m_terrainViewOpacity, 0.0f, 100.0f);
|
||||
ImGui::SliderFloat("Draw Range", &m_collisionViewSettings.m_drawRange, 0.0f, 1000.0f);
|
||||
ImGui::Separator();
|
||||
ImGui::Checkbox("Enable Attack Collider view", &m_collisionViewSettings.m_enableAtView);
|
||||
ImGui::Checkbox("Enable Target Collider view", &m_collisionViewSettings.m_enableTgView);
|
||||
ImGui::Checkbox("Enable Push Collider view", &m_collisionViewSettings.m_enableCoView);
|
||||
ImGui::SliderFloat("Opacity##colliders", &m_collisionViewSettings.m_colliderViewOpacity, 0.0f, 100.0f);
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
ImGui::MenuItem("Process Management", "F2", &m_showProcessManagement);
|
||||
ImGui::MenuItem("Debug Overlay", "F3", &m_showDebugOverlay);
|
||||
ImGui::MenuItem("Heap Viewer", "F4", &m_showHeapOverlay);
|
||||
|
||||
@@ -9,6 +9,17 @@
|
||||
namespace dusk {
|
||||
class ImGuiMenuTools {
|
||||
public:
|
||||
struct CollisionViewSettings {
|
||||
bool m_enableTerrainView = false;
|
||||
bool m_enableWireframe = false;
|
||||
bool m_enableAtView = false;
|
||||
bool m_enableTgView = false;
|
||||
bool m_enableCoView = false;
|
||||
float m_terrainViewOpacity = 50.0f;
|
||||
float m_colliderViewOpacity = 50.0f;
|
||||
float m_drawRange = 100.0f;
|
||||
};
|
||||
|
||||
ImGuiMenuTools();
|
||||
void draw();
|
||||
|
||||
@@ -19,7 +30,7 @@ namespace dusk {
|
||||
void ShowStubLog();
|
||||
void ShowMapLoader();
|
||||
|
||||
bool isCollisionView() { return m_enableCollisionView; }
|
||||
CollisionViewSettings& getCollisionViewSettings() { return m_collisionViewSettings; }
|
||||
|
||||
private:
|
||||
bool m_showDebugOverlay = false;
|
||||
@@ -49,7 +60,7 @@ namespace dusk {
|
||||
|
||||
bool m_isDevelopmentMode = false;
|
||||
|
||||
bool m_enableCollisionView = false;
|
||||
CollisionViewSettings m_collisionViewSettings;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1041,9 +1041,6 @@ GXDrawSyncCallback GXSetDrawSyncCallback(GXDrawSyncCallback cb) {
|
||||
STUB_LOG();
|
||||
return cb;
|
||||
}
|
||||
void GXDrawCylinder(u8 numEdges) {
|
||||
STUB_LOG();
|
||||
}
|
||||
void GXWaitDrawDone(void) {
|
||||
STUB_LOG();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user