Dungeon Architect
17.0.0
|
The context menu shown when the user right clicks on the theme graph editor More...
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 |
The context menu shown when the user right clicks on the theme graph editor
Definition at line 23 of file GraphContextMenu.cs.
void DungeonArchitect.UI.Widgets.GraphEditors.GraphContextMenu.HandleInput | ( | Event | e, |
UISystem | uiSystem | ||
) |
|
pure virtual |
Shows the context menu in the theme graph editor
graph | The graph shown in the graph editor |
sourcePin | The source pin, if the user dragged a link out of a pin. null otherwise |
mouseWorld | The position of the mouse. The context menu would be shown from here |
Implemented in DungeonArchitect.UI.Widgets.GraphEditors.NullGraphContextMenu, DungeonArchitect.Editors.DungeonThemeEditorContextMenu, DungeonArchitect.Editors.SnapFlow.SnapEdResultGraphContextMenu, DungeonArchitect.Editors.SnapFlow.SnapEdGrammarGraphContextMenu, DungeonArchitect.Editors.SnapFlow.SnapEdExecutionGraphContextMenu, DungeonArchitect.Editors.Flow.Layout.DungeonGridFlowAbstractGraphContextMenu, DungeonArchitect.Editors.Flow.FlowExecGraphContextMenu, and DungeonArchitect.Editors.SpatialConstraints.SpatialConstraintsEditorContextMenu.