mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-25 22:35:37 +00:00
added first tool
Added the tileTool with the ability to select tiles Abstraction layer for navmesh tools created.
This commit is contained in:
parent
ab83ecb591
commit
80473e10b5
12 changed files with 363 additions and 66 deletions
|
|
@ -34,6 +34,10 @@
|
|||
#include "gui/worldEditor/gizmo.h"
|
||||
#endif
|
||||
|
||||
#ifndef _NAVMESH_TOOL_H_
|
||||
#include "navigation/navMeshTool.h"
|
||||
#endif
|
||||
|
||||
#include "navMesh.h"
|
||||
#include "T3D/aiPlayer.h"
|
||||
|
||||
|
|
@ -51,7 +55,6 @@ public:
|
|||
static const String mSelectMode;
|
||||
static const String mLinkMode;
|
||||
static const String mCoverMode;
|
||||
static const String mTileMode;
|
||||
static const String mTestMode;
|
||||
|
||||
GuiNavEditorCtrl();
|
||||
|
|
@ -110,12 +113,10 @@ public:
|
|||
|
||||
void deleteLink();
|
||||
void setLinkFlags(const LinkData &d);
|
||||
|
||||
void buildTile();
|
||||
|
||||
void spawnPlayer(const Point3F &pos);
|
||||
|
||||
/// @}
|
||||
void setActiveTool(NavMeshTool* tool);
|
||||
|
||||
protected:
|
||||
|
||||
|
|
@ -133,6 +134,9 @@ protected:
|
|||
/// Currently-selected NavMesh.
|
||||
SimObjectPtr<NavMesh> mMesh;
|
||||
|
||||
/// The active tool in used by the editor.
|
||||
SimObjectPtr<NavMeshTool> mTool;
|
||||
|
||||
/// @name Link mode
|
||||
/// @{
|
||||
|
||||
|
|
@ -145,9 +149,6 @@ protected:
|
|||
/// @name Tile mode
|
||||
/// @{
|
||||
|
||||
S32 mCurTile;
|
||||
S32 mTile;
|
||||
|
||||
duDebugDrawTorque dd;
|
||||
|
||||
/// @}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue