Dungeon Architect  17.0.0
DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphEditor Class Reference
Inheritance diagram for DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphEditor:
DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor DungeonArchitect.UI.Widgets.IWidget

Public Member Functions

override void Init (Graph graph, Rect editorBounds, UnityEngine.Object assetObject, UISystem uiSystem)
 Initializes the graph editor with the specified graph More...
 
override GraphSchema GetGraphSchema ()
 
override T CreateLink< T > (Graph graph, GraphPin output, GraphPin input, UISystem uiSystem)
 Creates a graph link between the two specified pins More...
 
override void Draw (UISystem uiSystem, UIRenderer renderer)
 Renders the graph editor in the editor window More...
 
override void HandleInput (Event e, UISystem uiSystem)
 Handles user input (mouse and keyboard) More...
 
- Public Member Functions inherited from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor
bool CanAcquireFocus ()
 
virtual void SortPinsForDrawing (GraphPin[] pins)
 
Vector2 GetDesiredSize (Vector2 size, UISystem uiSystem)
 
virtual void HandleMessage (UISystem uiSystem, WidgetMessage message)
 
void SetReadOnly (bool graphReadOnly)
 
virtual void Release (UISystem uiSystem)
 
void FocusCameraOnNode (GraphNode node)
 Moves the graph editor viewport to show the marker on the screen More...
 
virtual void OnFocus ()
 
virtual void LostFocus ()
 
virtual bool RequiresInputEveryFrame ()
 
void FocusCameraOnBestFit (Rect editorBounds)
 Moves the graph editor viewport to show as many markers as possible. Called when a new graph is loaded More...
 
void FocusCameraOnBestFit ()
 
virtual void OnEnable ()
 
void OnDisable ()
 
void OnDestroy ()
 
virtual void HandleMarkedDirty (UISystem uiSystem)
 
virtual void UpdateWidget (UISystem uiSystem, Rect bounds)
 
virtual void Update ()
 
virtual void HandleGraphStateChanged (UISystem uiSystem)
 
virtual void HandleNodePropertyChanged (GraphNode node)
 
virtual void OnNodeSelectionChanged (UISystem uiSystem)
 
virtual void OnNodeDoubleClicked (UISystem uiSystem, GraphNode node)
 
void DeleteNodes (GraphNode[] nodesToDelete, UISystem uiSystem)
 
virtual bool IsCompositeWidget ()
 
IWidget[] GetChildWidgets ()
 
virtual T CreateNode< T > (Vector2 screenCoord, UISystem uiSystem)
 Creates a new node in the specified screen coordinate More...
 
virtual GraphNode CreateNode (Vector2 screenCoord, System.Type nodeType, UISystem uiSystem)
 
void SelectNode (GraphNode nodeToSelect, UISystem uiSystem)
 Selects and highlights a node More...
 
GraphPin GetPinUnderPosition (Vector2 worldPosition)
 Gets the node pin under the mouse position. Takes the owning node's Z-order into consideration More...
 

Protected Member Functions

override IGraphLinkRenderer CreateGraphLinkRenderer ()
 
override GraphContextMenu CreateContextMenu ()
 
override void InitializeNodeRenderers (GraphNodeRendererFactory nodeRenderers)
 
override void OnMenuItemClicked (object userdata, GraphContextMenuEvent e)
 
override void DrawHUD (UISystem uiSystem, UIRenderer renderer, Rect bounds)
 Draws non-interactive textual information for the user More...
 
override string GetGraphNotInitializedMessage ()
 
override GraphEditorStyle CreateEditorStyle ()
 
- Protected Member Functions inherited from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor
virtual void SortNodesForDeletion (GraphNode[] nodesToDelete)
 
virtual void DrawHighlight (UIRenderer renderer)
 
void SetGraph (Graph graph)
 
GraphNode[] GetSelectedNodes ()
 
virtual GraphNode DuplicateNode (GraphNode sourceNode, UISystem uiSystem)
 
virtual void DestroyNode (GraphNode node, UISystem uiSystem)
 
virtual void DrawOverlay (UIRenderer renderer, Rect bounds)
 
bool IsPaintEvent (UISystem uiSystem)
 
void BringToFront (GraphNode node)
 
virtual void CreateLinkBetweenPins (GraphPin outputPin, GraphPin inputPin, UISystem uiSystem)
 

Properties

SnapFlowAsset FlowAsset [get]
 
- Properties inherited from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor
GraphCamera Camera [get]
 
GraphEditorStyle EditorStyle [get]
 
GraphEditorEvents Events [get]
 
bool ShowFocusHighlight [get, set]
 
Rect WidgetBounds [get, set]
 
virtual Vector2 ScrollPosition [get, set]
 
IGraphLinkRenderer GraphLinkRenderer [get]
 
Vector2 LastMousePosition [get]
 
Graph Graph [get]
 The owning graph More...
 
- Properties inherited from DungeonArchitect.UI.Widgets.IWidget
Rect WidgetBounds [get, set]
 
bool ShowFocusHighlight [get, set]
 
Vector2 ScrollPosition [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor
Graph graph
 
GraphCamera camera
 
UnityEngine.Object assetObject
 
GraphEditorEvents events = new GraphEditorEvents()
 
float renderCullingBias = 0
 
GraphSelectionBox selectionBox
 
GraphContextMenu contextMenu
 
GraphNodeRendererFactory nodeRenderers
 
GraphRendererContext rendererContext = new GraphRendererContext()
 
Vector2 lastMousePosition = new Vector2()
 
Rect lastDrawBounds = Rect.zero
 
bool draggingNodes = false
 

Detailed Description

Definition at line 73 of file SnapEdExecutionGraphEditor.cs.

Member Function Documentation

◆ CreateLink< T >()

override T DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphEditor.CreateLink< T > ( Graph  graph,
GraphPin  output,
GraphPin  input,
UISystem  uiSystem 
)
virtual

Creates a graph link between the two specified pins

Template Parameters
TThe type of the link. Should be GraphLink or one of its subclass
Parameters
outputThe output pin from where the link originates
inputThe input pin, where the link points to
Returns

Reimplemented from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor.

Definition at line 103 of file SnapEdExecutionGraphEditor.cs.

◆ Draw()

override void DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphEditor.Draw ( UISystem  uiSystem,
UIRenderer  renderer 
)
virtual

Renders the graph editor in the editor window

Parameters
boundsThe bounds of the editor window

Reimplemented from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor.

Definition at line 151 of file SnapEdExecutionGraphEditor.cs.

◆ DrawHUD()

override void DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphEditor.DrawHUD ( UISystem  uiSystem,
UIRenderer  renderer,
Rect  bounds 
)
protectedvirtual

Draws non-interactive textual information for the user

Parameters
boundsBounds.

Reimplemented from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor.

Definition at line 270 of file SnapEdExecutionGraphEditor.cs.

◆ HandleInput()

override void DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphEditor.HandleInput ( Event  _e,
UISystem  uiSystem 
)
virtual

Handles user input (mouse and keyboard)

Parameters
e

Reimplemented from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor.

Definition at line 168 of file SnapEdExecutionGraphEditor.cs.

◆ Init()

override void DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphEditor.Init ( Graph  graph,
Rect  editorBounds,
UnityEngine.Object  assetObject,
UISystem  uiSystem 
)
virtual

Initializes the graph editor with the specified graph

Parameters
graphThe owning graph
editorBoundsThe bounds of the editor window

Reimplemented from DungeonArchitect.UI.Widgets.GraphEditors.GraphEditor.

Definition at line 76 of file SnapEdExecutionGraphEditor.cs.


The documentation for this class was generated from the following file: