Sequine - Scripting API
Calcatz.CookieCutter.CommandNode Class Reference
Inheritance diagram for Calcatz.CookieCutter.CommandNode:
Calcatz.CookieCutter.Node 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  CommandNodeConfig
 
class  Styles
 

Public Member Functions

CommandData GetCommandData ()
 
Command GetCommand ()
 
GetCommand< T > ()
 
 CommandNode (CommandData _commandData, Command _command, Vector2 _position, float _width, float _height, Config _config)
 
ConnectionPoint AddMainInPoint (Config _config)
 
ConnectionPoint AddMainOutPoint (Config _config)
 
ConnectionPoint AddPropertyInPoint (Type _type, Config _config)
 
ConnectionPoint AddPropertyInPoint< T > (Config _config)
 
ConnectionPoint AddPropertyOutPoint (Type _type, Config _config)
 
ConnectionPoint AddPropertyOutPoint< T > (Config _config)
 
override void Draw (Vector2 _offset)
 
virtual bool FilterByContent (string _filter, out string _displayContent)
 

Static Public Member Functions

static int GetConnectionPointIndex (ConnectionPoint _point, List< ConnectionPoint > _points)
 
static MonoScript GetMonoScript (Type _commandType)
 

Public Attributes

System.Action onRefreshNeeded
 
string nodeName = "Command"
 
string tooltip = ""
 

Static Public Attributes

static List< CommandclipboardCommands = new List<Command>()
 

Protected Member Functions

virtual void HandleFirstInPointCreation (Config _config)
 
virtual void HandleFirstOutPointCreation (Config _config)
 
override void DrawInPoint (Vector2 _nodePosition, int _index, float _yPos)
 
override void DrawOutPoint (Vector2 _nodePosition, int _index, float _yPos)
 
virtual void OnDrawTitle (Vector2 _absolutePosition)
 
virtual void OnDrawContents (Vector2 _absolutePosition)
 
void AddRectHeight (float _height, bool _autoAddVerticalSpacing=true)
 
override void OnEndDragNode ()
 
override void HandleContextMenu (GenericMenu _genericMenu)
 
override bool IsCopyAvailable ()
 
bool IsPasteAvailable ()
 
override void Copy ()
 
override void Paste ()
 
override void OnClickRemoveNode ()
 
Rect GenerateLineRect (Vector2 _absolutePosition, int _lineCount=1)
 A wrapper to generate a standard rect for one line (or more) field. More...
 
void GenerateSingleLineLabeledRect (Vector2 _absolutePosition, out Rect labelRect, out Rect valueRect)
 

Static Protected Member Functions

static void DropBinderAreaGUI< T > (Rect _dropArea, System.Action< T > _onObjectChanged)
 

Protected Attributes

CommandData commandData
 
SerializedProperty serializedProperty
 
Command command
 
float currentY
 

Static Protected Attributes

const float LABEL_WIDTH = 0.4f
 
static Styles styles = new Styles()
 

Properties

virtual string[] ReservedNodeNames [get]
 
virtual bool[] ReservedNodeTypes [get]
 

Constructor & Destructor Documentation

◆ CommandNode()

Calcatz.CookieCutter.CommandNode.CommandNode ( CommandData  _commandData,
Command  _command,
Vector2  _position,
float  _width,
float  _height,
Config  _config 
)

Member Function Documentation

◆ AddMainInPoint()

ConnectionPoint Calcatz.CookieCutter.CommandNode.AddMainInPoint ( Config  _config)

◆ AddMainOutPoint()

ConnectionPoint Calcatz.CookieCutter.CommandNode.AddMainOutPoint ( Config  _config)

◆ AddPropertyInPoint()

ConnectionPoint Calcatz.CookieCutter.CommandNode.AddPropertyInPoint ( Type  _type,
Config  _config 
)

◆ AddPropertyInPoint< T >()

◆ AddPropertyOutPoint()

ConnectionPoint Calcatz.CookieCutter.CommandNode.AddPropertyOutPoint ( Type  _type,
Config  _config 
)

◆ AddPropertyOutPoint< T >()

◆ AddRectHeight()

void Calcatz.CookieCutter.CommandNode.AddRectHeight ( float  _height,
bool  _autoAddVerticalSpacing = true 
)
protected

◆ Copy()

override void Calcatz.CookieCutter.CommandNode.Copy ( )
protectedvirtual

Reimplemented from Calcatz.CookieCutter.Node.

◆ Draw()

override void Calcatz.CookieCutter.CommandNode.Draw ( Vector2  _offset)
virtual

◆ DrawInPoint()

override void Calcatz.CookieCutter.CommandNode.DrawInPoint ( Vector2  _nodePosition,
int  _index,
float  _yPos 
)
protectedvirtual

Reimplemented from Calcatz.CookieCutter.Node.

◆ DrawOutPoint()

override void Calcatz.CookieCutter.CommandNode.DrawOutPoint ( Vector2  _nodePosition,
int  _index,
float  _yPos 
)
protectedvirtual

Reimplemented from Calcatz.CookieCutter.Node.

◆ DropBinderAreaGUI< T >()

static void Calcatz.CookieCutter.CommandNode.DropBinderAreaGUI< T > ( Rect  _dropArea,
System.Action< T >  _onObjectChanged 
)
staticprotected

◆ FilterByContent()

virtual bool Calcatz.CookieCutter.CommandNode.FilterByContent ( string  _filter,
out string  _displayContent 
)
virtual

◆ GenerateLineRect()

Rect Calcatz.CookieCutter.CommandNode.GenerateLineRect ( Vector2  _absolutePosition,
int  _lineCount = 1 
)
protected

A wrapper to generate a standard rect for one line (or more) field.

Parameters
_absolutePosition
_lineCount
Returns

◆ GenerateSingleLineLabeledRect()

void Calcatz.CookieCutter.CommandNode.GenerateSingleLineLabeledRect ( Vector2  _absolutePosition,
out Rect  labelRect,
out Rect  valueRect 
)
protected

◆ GetCommand()

Command Calcatz.CookieCutter.CommandNode.GetCommand ( )

◆ GetCommand< T >()

Type Constraints
T :Command 

◆ GetCommandData()

CommandData Calcatz.CookieCutter.CommandNode.GetCommandData ( )

◆ GetConnectionPointIndex()

static int Calcatz.CookieCutter.CommandNode.GetConnectionPointIndex ( ConnectionPoint  _point,
List< ConnectionPoint _points 
)
static

◆ GetMonoScript()

static MonoScript Calcatz.CookieCutter.CommandNode.GetMonoScript ( Type  _commandType)
static

◆ HandleContextMenu()

override void Calcatz.CookieCutter.CommandNode.HandleContextMenu ( GenericMenu  _genericMenu)
protectedvirtual

Reimplemented from Calcatz.CookieCutter.Node.

◆ HandleFirstInPointCreation()

◆ HandleFirstOutPointCreation()

◆ IsCopyAvailable()

override bool Calcatz.CookieCutter.CommandNode.IsCopyAvailable ( )
protectedvirtual

Reimplemented from Calcatz.CookieCutter.Node.

◆ IsPasteAvailable()

bool Calcatz.CookieCutter.CommandNode.IsPasteAvailable ( )
protected

◆ OnClickRemoveNode()

override void Calcatz.CookieCutter.CommandNode.OnClickRemoveNode ( )
protectedvirtual

Reimplemented from Calcatz.CookieCutter.Node.

◆ OnDrawContents()

◆ OnDrawTitle()

◆ OnEndDragNode()

override void Calcatz.CookieCutter.CommandNode.OnEndDragNode ( )
protectedvirtual

Reimplemented from Calcatz.CookieCutter.Node.

◆ Paste()

override void Calcatz.CookieCutter.CommandNode.Paste ( )
protectedvirtual

Reimplemented from Calcatz.CookieCutter.Node.

Member Data Documentation

◆ clipboardCommands

List<Command> Calcatz.CookieCutter.CommandNode.clipboardCommands = new List<Command>()
static

◆ command

Command Calcatz.CookieCutter.CommandNode.command
protected

◆ commandData

CommandData Calcatz.CookieCutter.CommandNode.commandData
protected

◆ currentY

float Calcatz.CookieCutter.CommandNode.currentY
protected

◆ LABEL_WIDTH

const float Calcatz.CookieCutter.CommandNode.LABEL_WIDTH = 0.4f
staticprotected

◆ nodeName

string Calcatz.CookieCutter.CommandNode.nodeName = "Command"

◆ onRefreshNeeded

System.Action Calcatz.CookieCutter.CommandNode.onRefreshNeeded

◆ serializedProperty

SerializedProperty Calcatz.CookieCutter.CommandNode.serializedProperty
protected

◆ styles

Styles Calcatz.CookieCutter.CommandNode.styles = new Styles()
staticprotected

◆ tooltip

string Calcatz.CookieCutter.CommandNode.tooltip = ""

Property Documentation

◆ ReservedNodeNames

virtual string [] Calcatz.CookieCutter.CommandNode.ReservedNodeNames
get

◆ ReservedNodeTypes

virtual bool [] Calcatz.CookieCutter.CommandNode.ReservedNodeTypes
get