Dungeon Architect  17.0.0
DungeonArchitect.UI.Widgets.GraphEditors.GraphContextMenu Class Referenceabstract

The context menu shown when the user right clicks on the theme graph editor More...

Inheritance diagram for DungeonArchitect.UI.Widgets.GraphEditors.GraphContextMenu:
DungeonArchitect.Editors.DungeonThemeEditorContextMenu DungeonArchitect.Editors.Flow.FlowExecGraphContextMenu DungeonArchitect.Editors.Flow.Layout.DungeonGridFlowAbstractGraphContextMenu DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphContextMenu DungeonArchitect.Editors.SnapFlow.SnapEdGrammarGraphContextMenu DungeonArchitect.Editors.SnapFlow.SnapEdResultGraphContextMenu DungeonArchitect.Editors.SpatialConstraints.SpatialConstraintsEditorContextMenu DungeonArchitect.UI.Widgets.GraphEditors.NullGraphContextMenu

Public Member Functions

delegate void OnRequestContextMenuCreation (Event e, UISystem uiSystem)
 
delegate void OnMenuItemClicked (object userdata, GraphContextMenuEvent e)
 
void HandleInput (Event e, UISystem uiSystem)
 Handles mouse input More...
 
abstract void Show (GraphEditor graphEditor, GraphPin sourcePin, Vector2 mouseWorld, UISystem uiSystem)
 Shows the context menu in the theme graph editor More...
 

Protected Member Functions

GraphContextMenuEvent BuildEvent (object userdata, UISystem uiSystem)
 
void DispatchMenuItemEvent (object action, GraphContextMenuEvent e)
 

Protected Attributes

bool dragged
 
int dragButtonId = 1
 
GraphPin sourcePin
 
Vector2 mouseWorldPosition
 

Events

OnRequestContextMenuCreation RequestContextMenuCreation
 
OnMenuItemClicked MenuItemClicked
 

Detailed Description

The context menu shown when the user right clicks on the theme graph editor

Definition at line 23 of file GraphContextMenu.cs.

Member Function Documentation

◆ HandleInput()

void DungeonArchitect.UI.Widgets.GraphEditors.GraphContextMenu.HandleInput ( Event  e,
UISystem  uiSystem 
)

Handles mouse input

Parameters
eInput event data

Definition at line 42 of file GraphContextMenu.cs.

◆ Show()

abstract void DungeonArchitect.UI.Widgets.GraphEditors.GraphContextMenu.Show ( GraphEditor  graphEditor,
GraphPin  sourcePin,
Vector2  mouseWorld,
UISystem  uiSystem 
)
pure virtual

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