mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Added a option to disable drawing axis in the view menu
This commit is contained in:
@@ -1273,6 +1273,8 @@ namespace Nuake {
|
||||
if (ImGui::MenuItem("Lighting", NULL, true)) {}
|
||||
if (ImGui::MenuItem("Draw grid", NULL, m_DrawGrid))
|
||||
m_DrawGrid = !m_DrawGrid;
|
||||
if (ImGui::MenuItem("Draw Axis", NULL, m_DrawAxis))
|
||||
m_DrawAxis = !m_DrawAxis;
|
||||
if (ImGui::MenuItem("Draw collisions", NULL, m_DebugCollisions))
|
||||
{
|
||||
m_DebugCollisions = !m_DebugCollisions;
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace Nuake {
|
||||
{
|
||||
private:
|
||||
bool m_DrawGrid = false;
|
||||
bool m_DrawAxis = true;
|
||||
bool m_ShowImGuiDemo = false;
|
||||
bool m_DebugCollisions = false;
|
||||
bool m_ShowOverlay = true;
|
||||
@@ -46,5 +47,7 @@ namespace Nuake {
|
||||
void DrawLogger();
|
||||
bool EntityContainsItself(Entity ent1, Entity ent2);
|
||||
void Overlay();
|
||||
|
||||
bool ShouldDrawAxis() const { return m_DrawAxis; }
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user