mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
more options for nodes
render nodes with GuiShaderEditor border colors node size now changable.
This commit is contained in:
parent
b2095db575
commit
155dfe0c69
4 changed files with 196 additions and 65 deletions
|
|
@ -48,7 +48,7 @@ public:
|
|||
protected:
|
||||
|
||||
// list
|
||||
typedef Vector<ShaderNode*> ShaderNodeVector;
|
||||
typedef Vector<GuiShaderNode*> ShaderNodeVector;
|
||||
// all nodes in this graph.
|
||||
ShaderNodeVector mCurrNodes;
|
||||
|
||||
|
|
@ -68,13 +68,14 @@ protected:
|
|||
bool mDragAddSelection;
|
||||
bool mDragMoveUndo;
|
||||
bool mFullBoxSelection;
|
||||
S32 mNodeSize;
|
||||
ShaderNodeVector mSelectedNodes;
|
||||
|
||||
void renderNodes(Point2I offset, const RectI& updateRect);
|
||||
|
||||
// functions for handling mouse events.
|
||||
ShaderNode* findHitNode(const Point2I& pt);
|
||||
void findNodesInRect(const RectI& rect, Vector<ShaderNode*>& outResult);
|
||||
GuiShaderNode* findHitNode(const Point2I& pt);
|
||||
void findNodesInRect(const RectI& rect, Vector<GuiShaderNode*>& outResult);
|
||||
|
||||
void getDragRect(RectI& box);
|
||||
void startDragMove(const Point2I& startPoint);
|
||||
|
|
@ -115,9 +116,9 @@ public:
|
|||
void clearSelection();
|
||||
void cloneSelection();
|
||||
void addSelectionAtPoint(const Point2I& pos);
|
||||
void addSelection(ShaderNode* inNode);
|
||||
bool selectionContains(ShaderNode* inNode);
|
||||
void removeSelection(ShaderNode* inNode);
|
||||
void addSelection(GuiShaderNode* inNode);
|
||||
bool selectionContains(GuiShaderNode* inNode);
|
||||
void removeSelection(GuiShaderNode* inNode);
|
||||
void canHitSelectedNodes(bool state = true);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue