Sequine - Scripting API
Calcatz.CookieCutter.Node Class Reference
Inheritance diagram for Calcatz.CookieCutter.Node:
Calcatz.CookieCutter.CommandNode Calcatz.CookieCutter.BlankCommandNode Calcatz.CookieCutter.BranchCommandNode Calcatz.CookieCutter.BuildableCommandNode Calcatz.CookieCutter.BuildableCommandNode Calcatz.CookieCutter.BuildablePropertyCommandNode Calcatz.CookieCutter.CrossSceneComponentCommandNode Calcatz.CookieCutter.RandomObjectSelectorCommandNode Calcatz.CookieCutter.SetVariableCommandNode Calcatz.CookieCutter.StickyNoteCommandNode Calcatz.CookieCutter.TextFormatterCommandNode Calcatz.CookieCutter.TimelinePlayerCommandNode Calcatz.CookieCutter.VariableCommandNode Calcatz.Sequine.GetGlobalVariableCommandNode Calcatz.Sequine.SetGlobalVariableCommandNode

Classes

class  Config
 

Public Member Functions

 Node (Vector2 position, float width, float height, Config config)
 
ConnectionPoint AddInPoint (Config _config)
 
ConnectionPoint AddOutPoint (Config _config)
 
void SetConfig (Config _config)
 
void Drag (Vector2 delta)
 
virtual void Draw (Vector2 _offset)
 
bool ProcessEvents (Vector2 _offset, Event e, float _zoomScale, ref bool _anyNodeClicked)
 
bool ProcessSelectedNodesEvents (Vector2 _offset, Event e, HashSet< Node > _selectedNodes)
 

Public Attributes

Rect rect
 
bool isDragged
 
bool isSelected
 
bool isOffScreen
 
bool hasOffScreenCalculated
 
List< ConnectionPointinPoints
 
List< ConnectionPointoutPoints
 
GUIStyle style
 
GUIStyle defaultNodeStyle
 
GUIStyle selectedNodeStyle
 
Action< NodeOnRemoveNode
 

Static Public Attributes

const float verticalSpacing = 5
 

Protected Member Functions

virtual void DrawOutPoint (Vector2 _nodePosition, int _index, float _yPos)
 
virtual void DrawInPoint (Vector2 _nodePosition, int _index, float _yPos)
 
virtual void OnEndDragNode ()
 
virtual bool IsCopyAvailable ()
 
virtual void Copy ()
 
virtual void Paste ()
 
virtual void HandleContextMenu (GenericMenu _genericMenu)
 
virtual void OnClickRemoveNode ()
 
virtual void OnRemoved ()
 

Constructor & Destructor Documentation

◆ Node()

Calcatz.CookieCutter.Node.Node ( Vector2  position,
float  width,
float  height,
Config  config 
)

Member Function Documentation

◆ AddInPoint()

ConnectionPoint Calcatz.CookieCutter.Node.AddInPoint ( Config  _config)

◆ AddOutPoint()

ConnectionPoint Calcatz.CookieCutter.Node.AddOutPoint ( Config  _config)

◆ Copy()

virtual void Calcatz.CookieCutter.Node.Copy ( )
protectedvirtual

◆ Drag()

void Calcatz.CookieCutter.Node.Drag ( Vector2  delta)

◆ Draw()

◆ DrawInPoint()

virtual void Calcatz.CookieCutter.Node.DrawInPoint ( Vector2  _nodePosition,
int  _index,
float  _yPos 
)
protectedvirtual

◆ DrawOutPoint()

virtual void Calcatz.CookieCutter.Node.DrawOutPoint ( Vector2  _nodePosition,
int  _index,
float  _yPos 
)
protectedvirtual

◆ HandleContextMenu()

virtual void Calcatz.CookieCutter.Node.HandleContextMenu ( GenericMenu  _genericMenu)
protectedvirtual

◆ IsCopyAvailable()

virtual bool Calcatz.CookieCutter.Node.IsCopyAvailable ( )
protectedvirtual

◆ OnClickRemoveNode()

virtual void Calcatz.CookieCutter.Node.OnClickRemoveNode ( )
protectedvirtual

◆ OnEndDragNode()

virtual void Calcatz.CookieCutter.Node.OnEndDragNode ( )
protectedvirtual

◆ OnRemoved()

virtual void Calcatz.CookieCutter.Node.OnRemoved ( )
protectedvirtual

◆ Paste()

virtual void Calcatz.CookieCutter.Node.Paste ( )
protectedvirtual

◆ ProcessEvents()

bool Calcatz.CookieCutter.Node.ProcessEvents ( Vector2  _offset,
Event  e,
float  _zoomScale,
ref bool  _anyNodeClicked 
)

◆ ProcessSelectedNodesEvents()

bool Calcatz.CookieCutter.Node.ProcessSelectedNodesEvents ( Vector2  _offset,
Event  e,
HashSet< Node _selectedNodes 
)

◆ SetConfig()

void Calcatz.CookieCutter.Node.SetConfig ( Config  _config)

Member Data Documentation

◆ defaultNodeStyle

GUIStyle Calcatz.CookieCutter.Node.defaultNodeStyle

◆ hasOffScreenCalculated

bool Calcatz.CookieCutter.Node.hasOffScreenCalculated

◆ inPoints

List<ConnectionPoint> Calcatz.CookieCutter.Node.inPoints

◆ isDragged

bool Calcatz.CookieCutter.Node.isDragged

◆ isOffScreen

bool Calcatz.CookieCutter.Node.isOffScreen

◆ isSelected

bool Calcatz.CookieCutter.Node.isSelected

◆ OnRemoveNode

Action<Node> Calcatz.CookieCutter.Node.OnRemoveNode

◆ outPoints

List<ConnectionPoint> Calcatz.CookieCutter.Node.outPoints

◆ rect

Rect Calcatz.CookieCutter.Node.rect

◆ selectedNodeStyle

GUIStyle Calcatz.CookieCutter.Node.selectedNodeStyle

◆ style

GUIStyle Calcatz.CookieCutter.Node.style

◆ verticalSpacing

const float Calcatz.CookieCutter.Node.verticalSpacing = 5
static