Sequine - Scripting API
Calcatz.CookieCutter.CommandNodesContainer Class Reference
Inheritance diagram for Calcatz.CookieCutter.CommandNodesContainer:
Calcatz.CookieCutter.NodesContainer Calcatz.CookieCutter.CommandCreatorWindow.DummyNodesContainer Calcatz.CookieCutter.TimelineCommandNodesContainer Calcatz.Sequine.SequineFlowNodesContainer

Public Member Functions

 CommandNodesContainer ()
 
CommandNode GetCommandNode (int _id)
 
void ReloadNodes (bool _resetNullConnections=true)
 
virtual void RepaintContainer ()
 
void SetDirty ()
 
override void RepaintIfDirty (bool _dontRepaintOnRemovalAction=false)
 
void GoToNode (int _commandId)
 
override void OnDrawNodesArea ()
 

Static Public Member Functions

static CommandNodesContainer CreateFromCommandData (CommandData _commandData)
 

Public Attributes

Action onValidateCommandDataReference
 
Action< VisualElement > onCreateAssetSelection
 
Action< VisualElement > onCreateBeforeCommandList
 

Protected Member Functions

virtual void ValidateAvailableCommands (Type _commandDataType)
 
virtual string GetVersionString ()
 
override Node.Config GetNodeConfig ()
 
virtual void ValidateData ()
 
virtual void OnReloadReservedNodes (CommandNode _node)
 
virtual void NodeOnRefreshNeeded ()
 
override void Save ()
 
override void OnCreateGUI (VisualElement _root)
 
virtual void OnCreateLeftPane (VisualElement _leftPane)
 
virtual void OnCreateAssetSelection (VisualElement _leftPane)
 
virtual void OnCreateBeforeCommandList (VisualElement _leftPane)
 
override Rect GetNodesArea ()
 
override void ProcessEvents (Event e)
 
virtual void HandleRemoveConnection (ConnectionPoint _inPoint, ConnectionPoint _outPoint)
 
override void OnClickRemoveConnection (Connection connection)
 
void OnRemovePropertyConnection (ConnectionPoint _inPoint, ConnectionPoint _outPoint)
 
void OnSwapInConnections (ConnectionPoint _lowerInPoint, ConnectionPoint _upperInPoint, int _lowerIndex)
 
override void OnClickInPoint (ConnectionPoint inPoint)
 
override void OnClickOutPoint (ConnectionPoint outPoint)
 
override void HandleRemovedConnections (Node _removedNode, List< Connection > _connectionsToRemove)
 
override void OnClickRemoveNode (Node _node)
 
override void HandleContextMenu (Vector2 _mousePosition, GenericMenu _genericMenu)
 
override List< string > GetStarredContextMenu ()
 
void OnClickAddNode (Type _type, Vector2 _mousePosition)
 
void OnClickAddNode< T2 > (Vector2 _mousePosition)
 
virtual void AddNewCommand (Command _command)
 
virtual void AddNewCommands (List< Command > _commands, bool _resetNullConnections=true)
 
override bool OnDragUpdated (UnityEngine.Object[] _draggedObjects)
 When drag is updated inside the empty nodes area. Use this to handle the visual before dropping. More...
 
override bool OnDragPerformed (UnityEngine.Object[] _draggedObjects)
 When drag is performed inside the empty nodes area. Use this to handle when the object(s) actually dropped. More...
 

Static Protected Member Functions

static void SetNodeStyle (CommandNode node, string _nodeTextureIndex)
 

Protected Attributes

Type commandDataType
 
Dictionary< int, CommandNodem_commandNodes = new Dictionary<int, CommandNode>()
 
Command currentOutPointCommand
 
CommandNodesContainerLeftPane leftPaneHandler
 
bool m_useVariables
 
bool m_showCreateVariableNodeButton = true
 
bool m_useLoadSave
 

Properties

override bool enableNodesAreaDragAndDrop [get]
 
bool isPromptingRemoveConnection [get]
 
CommandData commandData [getset]
 
bool saveAvailable [set]
 
float leftPaneWidth [getset]
 
bool useVariables [getset]
 
bool showCreateVariableNodeButton [getset]
 
bool useLoadSave [getset]
 

Constructor & Destructor Documentation

◆ CommandNodesContainer()

Calcatz.CookieCutter.CommandNodesContainer.CommandNodesContainer ( )

Member Function Documentation

◆ AddNewCommand()

virtual void Calcatz.CookieCutter.CommandNodesContainer.AddNewCommand ( Command  _command)
protectedvirtual

◆ AddNewCommands()

virtual void Calcatz.CookieCutter.CommandNodesContainer.AddNewCommands ( List< Command _commands,
bool  _resetNullConnections = true 
)
protectedvirtual

◆ CreateFromCommandData()

static CommandNodesContainer Calcatz.CookieCutter.CommandNodesContainer.CreateFromCommandData ( CommandData  _commandData)
static

◆ GetCommandNode()

CommandNode Calcatz.CookieCutter.CommandNodesContainer.GetCommandNode ( int  _id)

◆ GetNodeConfig()

override Node.Config Calcatz.CookieCutter.CommandNodesContainer.GetNodeConfig ( )
protectedvirtual

◆ GetNodesArea()

override Rect Calcatz.CookieCutter.CommandNodesContainer.GetNodesArea ( )
protectedvirtual

◆ GetStarredContextMenu()

override List< string > Calcatz.CookieCutter.CommandNodesContainer.GetStarredContextMenu ( )
protectedvirtual

◆ GetVersionString()

virtual string Calcatz.CookieCutter.CommandNodesContainer.GetVersionString ( )
protectedvirtual

◆ GoToNode()

void Calcatz.CookieCutter.CommandNodesContainer.GoToNode ( int  _commandId)

◆ HandleContextMenu()

override void Calcatz.CookieCutter.CommandNodesContainer.HandleContextMenu ( Vector2  _mousePosition,
GenericMenu  _genericMenu 
)
protectedvirtual

◆ HandleRemoveConnection()

virtual void Calcatz.CookieCutter.CommandNodesContainer.HandleRemoveConnection ( ConnectionPoint  _inPoint,
ConnectionPoint  _outPoint 
)
protectedvirtual

◆ HandleRemovedConnections()

override void Calcatz.CookieCutter.CommandNodesContainer.HandleRemovedConnections ( Node  _removedNode,
List< Connection _connectionsToRemove 
)
protectedvirtual

◆ NodeOnRefreshNeeded()

virtual void Calcatz.CookieCutter.CommandNodesContainer.NodeOnRefreshNeeded ( )
protectedvirtual

◆ OnClickAddNode()

void Calcatz.CookieCutter.CommandNodesContainer.OnClickAddNode ( Type  _type,
Vector2  _mousePosition 
)
protected

◆ OnClickAddNode< T2 >()

void Calcatz.CookieCutter.CommandNodesContainer.OnClickAddNode< T2 > ( Vector2  _mousePosition)
protected

◆ OnClickInPoint()

override void Calcatz.CookieCutter.CommandNodesContainer.OnClickInPoint ( ConnectionPoint  inPoint)
protectedvirtual

◆ OnClickOutPoint()

override void Calcatz.CookieCutter.CommandNodesContainer.OnClickOutPoint ( ConnectionPoint  outPoint)
protectedvirtual

◆ OnClickRemoveConnection()

override void Calcatz.CookieCutter.CommandNodesContainer.OnClickRemoveConnection ( Connection  connection)
protectedvirtual

◆ OnClickRemoveNode()

override void Calcatz.CookieCutter.CommandNodesContainer.OnClickRemoveNode ( Node  _node)
protectedvirtual

◆ OnCreateAssetSelection()

virtual void Calcatz.CookieCutter.CommandNodesContainer.OnCreateAssetSelection ( VisualElement  _leftPane)
protectedvirtual

◆ OnCreateBeforeCommandList()

virtual void Calcatz.CookieCutter.CommandNodesContainer.OnCreateBeforeCommandList ( VisualElement  _leftPane)
protectedvirtual

◆ OnCreateGUI()

override void Calcatz.CookieCutter.CommandNodesContainer.OnCreateGUI ( VisualElement  _root)
protectedvirtual

◆ OnCreateLeftPane()

virtual void Calcatz.CookieCutter.CommandNodesContainer.OnCreateLeftPane ( VisualElement  _leftPane)
protectedvirtual

◆ OnDragPerformed()

override bool Calcatz.CookieCutter.CommandNodesContainer.OnDragPerformed ( UnityEngine.Object[]  _draggedObjects)
protectedvirtual

When drag is performed inside the empty nodes area. Use this to handle when the object(s) actually dropped.

Parameters
_draggedObjects
Returns
If return true, the event will be used.

Reimplemented from Calcatz.CookieCutter.NodesContainer.

Reimplemented in Calcatz.Sequine.SequineFlowNodesContainer.

◆ OnDragUpdated()

override bool Calcatz.CookieCutter.CommandNodesContainer.OnDragUpdated ( UnityEngine.Object[]  _draggedObjects)
protectedvirtual

When drag is updated inside the empty nodes area. Use this to handle the visual before dropping.

Parameters
_draggedObjects
Returns
If return true, the event will be used.

Reimplemented from Calcatz.CookieCutter.NodesContainer.

Reimplemented in Calcatz.Sequine.SequineFlowNodesContainer.

◆ OnDrawNodesArea()

override void Calcatz.CookieCutter.CommandNodesContainer.OnDrawNodesArea ( )
virtual

◆ OnReloadReservedNodes()

virtual void Calcatz.CookieCutter.CommandNodesContainer.OnReloadReservedNodes ( CommandNode  _node)
protectedvirtual

◆ OnRemovePropertyConnection()

void Calcatz.CookieCutter.CommandNodesContainer.OnRemovePropertyConnection ( ConnectionPoint  _inPoint,
ConnectionPoint  _outPoint 
)
protected

◆ OnSwapInConnections()

void Calcatz.CookieCutter.CommandNodesContainer.OnSwapInConnections ( ConnectionPoint  _lowerInPoint,
ConnectionPoint  _upperInPoint,
int  _lowerIndex 
)
protected

◆ ProcessEvents()

override void Calcatz.CookieCutter.CommandNodesContainer.ProcessEvents ( Event  e)
protectedvirtual

◆ ReloadNodes()

void Calcatz.CookieCutter.CommandNodesContainer.ReloadNodes ( bool  _resetNullConnections = true)

◆ RepaintContainer()

virtual void Calcatz.CookieCutter.CommandNodesContainer.RepaintContainer ( )
virtual

◆ RepaintIfDirty()

override void Calcatz.CookieCutter.CommandNodesContainer.RepaintIfDirty ( bool  _dontRepaintOnRemovalAction = false)
virtual

◆ Save()

override void Calcatz.CookieCutter.CommandNodesContainer.Save ( )
protectedvirtual

◆ SetDirty()

void Calcatz.CookieCutter.CommandNodesContainer.SetDirty ( )

◆ SetNodeStyle()

static void Calcatz.CookieCutter.CommandNodesContainer.SetNodeStyle ( CommandNode  node,
string  _nodeTextureIndex 
)
staticprotected

◆ ValidateAvailableCommands()

virtual void Calcatz.CookieCutter.CommandNodesContainer.ValidateAvailableCommands ( Type  _commandDataType)
protectedvirtual

◆ ValidateData()

virtual void Calcatz.CookieCutter.CommandNodesContainer.ValidateData ( )
protectedvirtual

Member Data Documentation

◆ commandDataType

Type Calcatz.CookieCutter.CommandNodesContainer.commandDataType
protected

◆ currentOutPointCommand

Command Calcatz.CookieCutter.CommandNodesContainer.currentOutPointCommand
protected

◆ leftPaneHandler

CommandNodesContainerLeftPane Calcatz.CookieCutter.CommandNodesContainer.leftPaneHandler
protected

◆ m_commandNodes

Dictionary<int, CommandNode> Calcatz.CookieCutter.CommandNodesContainer.m_commandNodes = new Dictionary<int, CommandNode>()
protected

◆ m_showCreateVariableNodeButton

bool Calcatz.CookieCutter.CommandNodesContainer.m_showCreateVariableNodeButton = true
protected

◆ m_useLoadSave

bool Calcatz.CookieCutter.CommandNodesContainer.m_useLoadSave
protected

◆ m_useVariables

bool Calcatz.CookieCutter.CommandNodesContainer.m_useVariables
protected

◆ onCreateAssetSelection

Action<VisualElement> Calcatz.CookieCutter.CommandNodesContainer.onCreateAssetSelection

◆ onCreateBeforeCommandList

Action<VisualElement> Calcatz.CookieCutter.CommandNodesContainer.onCreateBeforeCommandList

◆ onValidateCommandDataReference

Action Calcatz.CookieCutter.CommandNodesContainer.onValidateCommandDataReference

Property Documentation

◆ commandData

CommandData Calcatz.CookieCutter.CommandNodesContainer.commandData
getset

◆ enableNodesAreaDragAndDrop

override bool Calcatz.CookieCutter.CommandNodesContainer.enableNodesAreaDragAndDrop
getprotected

◆ isPromptingRemoveConnection

bool Calcatz.CookieCutter.CommandNodesContainer.isPromptingRemoveConnection
getprotected

◆ leftPaneWidth

float Calcatz.CookieCutter.CommandNodesContainer.leftPaneWidth
getset

◆ saveAvailable

bool Calcatz.CookieCutter.CommandNodesContainer.saveAvailable
set

◆ showCreateVariableNodeButton

bool Calcatz.CookieCutter.CommandNodesContainer.showCreateVariableNodeButton
getset

◆ useLoadSave

bool Calcatz.CookieCutter.CommandNodesContainer.useLoadSave
getset

◆ useVariables

bool Calcatz.CookieCutter.CommandNodesContainer.useVariables
getset