updated drawmodes and rendering

DebugDraw for recast now caches the results
We now have a drawmode dropdown selector
drawmode changes come from the gui itself no longer from console values
all recast drawmodes are supported with the exception of drawmodes that add abilities like navqueries until the nav tester tool is imlpemented.
This commit is contained in:
marauder2k7 2025-07-24 14:25:02 +01:00
parent 30b9502e90
commit d1771756c2
12 changed files with 548 additions and 53 deletions

View file

@ -686,6 +686,20 @@ void GuiNavEditorCtrl::setActiveTool(NavMeshTool* tool)
}
}
void GuiNavEditorCtrl::setDrawMode(S32 id)
{
if (mMesh.isNull())
return;
mMesh->setDrawMode((NavMesh::DrawMode)id);
}
DefineEngineMethod(GuiNavEditorCtrl, setDrawMode, void, (S32 id), ,
"@brief Deselect whatever is currently selected in the editor.")
{
object->setDrawMode(id);
}
DefineEngineMethod(GuiNavEditorCtrl, setActiveTool, void, (const char* toolName), , "( NavMeshTool tool )")
{
NavMeshTool* tool = dynamic_cast<NavMeshTool*>(Sim::findObject(toolName));