From 5bf5713eba10f4162f8468373e3b8c126349aad8 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:26:25 +0200 Subject: [PATCH] Recast: allow moving cursor through UI --- src/naveditor/Editor_TileMesh.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/naveditor/Editor_TileMesh.cpp b/src/naveditor/Editor_TileMesh.cpp index 6bba81b7..adca116e 100644 --- a/src/naveditor/Editor_TileMesh.cpp +++ b/src/naveditor/Editor_TileMesh.cpp @@ -35,6 +35,7 @@ #include "game/server/ai_navmesh.h" #include "game/server/ai_hull.h" +#include "coordsize.h" #ifdef DT_POLYREF64 @@ -185,6 +186,10 @@ public: ImGui::PopItemWidth(); } + ImGui::PushItemWidth(180); + ImGui::SliderFloat3("Cursor", m_hitPos, MIN_COORD_FLOAT, MAX_COORD_FLOAT); + ImGui::PopItemWidth(); + if (hasMarker && ImGui::Button("Clear Markers")) { m_markedTileRef = 0;