mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-18 06:03:48 +00:00
off mesh connection tool
Adds off mesh connection tool upgrade functionality to allow setting the direction to be bi-directional added immediate draw to duDebugDrawtorque so we can draw offmesh connections
This commit is contained in:
parent
de1642c33e
commit
2df2cb5c15
8 changed files with 287 additions and 87 deletions
|
|
@ -69,9 +69,6 @@ void TileTool::onRender3D()
|
|||
if (mNavMesh.isNull())
|
||||
return;
|
||||
|
||||
// Optional: Draw all tile bounds as overlays
|
||||
//mNavMesh->renderTilesOverlay(DebugDraw::get()->getDD());
|
||||
|
||||
if(mCurTile != -1)
|
||||
renderBoxOutline(mNavMesh->getTileBox(mCurTile), ColorI::BLUE);
|
||||
|
||||
|
|
@ -87,8 +84,8 @@ void TileTool::buildTile()
|
|||
|
||||
bool TileTool::updateGuiInfo()
|
||||
{
|
||||
GuiTextCtrl* statusbar;
|
||||
Sim::findObject("EWorldEditorStatusBarInfo", statusbar);
|
||||
SimObject* statusbar;
|
||||
Sim::findObject("EditorGuiStatusBar", statusbar);
|
||||
|
||||
GuiTextCtrl* selectionBar;
|
||||
Sim::findObject("EWorldEditorStatusBarSelection", selectionBar);
|
||||
|
|
@ -98,7 +95,7 @@ bool TileTool::updateGuiInfo()
|
|||
text = "LMB To select NavMesh Tile";
|
||||
|
||||
if (statusbar)
|
||||
statusbar->setText(text);
|
||||
Con::executef(statusbar, "setInfo", text.c_str());
|
||||
|
||||
if (mSelTile != -1)
|
||||
text = String::ToString("Selected Tile: %d", mSelTile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue