mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-23 16:43:50 +00:00
Added the tileTool with the ability to select tiles Abstraction layer for navmesh tools created.
31 lines
643 B
C++
31 lines
643 B
C++
#ifndef _TILETOOL_H_
|
|
#define _TILETOOL_H_
|
|
|
|
|
|
#ifndef _NAVMESH_TOOL_H_
|
|
#include "navigation/navMeshTool.h"
|
|
#endif
|
|
|
|
class TileTool : public NavMeshTool
|
|
{
|
|
typedef NavMeshTool Parent;
|
|
S32 mCurTile;
|
|
S32 mSelTile;
|
|
public:
|
|
DECLARE_CONOBJECT(TileTool);
|
|
|
|
TileTool() { mCurTile = -1; mSelTile = -1; }
|
|
virtual ~TileTool() {}
|
|
|
|
void onActivated(const Gui3DMouseEvent& evt) override;
|
|
void onDeactivated() override;
|
|
|
|
void on3DMouseDown(const Gui3DMouseEvent& evt) override;
|
|
void on3DMouseMove(const Gui3DMouseEvent& evt) override;
|
|
void onRender3D() override;
|
|
void buildTile();
|
|
|
|
bool updateGuiInfo() override;
|
|
};
|
|
|
|
#endif
|