Recast: allow moving cursor through UI

This commit is contained in:
Kawe Mazidjatari 2024-08-29 16:26:25 +02:00
parent 25cd598b17
commit 5bf5713eba

View File

@ -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;