API ReferenceGE Extensionseditorflowgraph
Flowgraph Overview
Flowgraph manager window showing a hierarchical tree view of all graphs, macros, and optionally nodes for project navigation.
Flowgraph manager window showing a hierarchical tree view of all graphs, macros, and optionally nodes for project navigation.
Overview
fg_treeview (window name fg_treeview) renders a tree of all graphs in the current flowgraph project. Root graphs appear at the top level with children nested underneath. Graphs are color-coded by type (graph, macro, instance, state). A text filter allows searching by graph or node name. Clicking a graph selects it in the editor; clicking a node selects it and navigates to it.
Class Fields
| Field | Type | Description |
|---|---|---|
C.windowName | string | 'fg_treeview' |
C.windowDescription | string | 'Overview' |
Class Methods
| Method | Description |
|---|---|
C:init() | Registers window (150×300), creates text filter |
C:attach(mgr) | Binds to a flowgraph manager |
C:draw() | Entry point - calls TreeView() if visible |
C:TreeView() | Main view: filter + sorted root graphs tree |
C:drawGraph(graph) | Recursively draws one graph node with type label |
C:drawPopups() | Context menu: Focus/Delete node |
C:fillPassedGraphsArray() | Pre-filter graphs/macros matching the text filter |
C:skipDrawing(graph) | Check if graph should be hidden by filter |
C:selectNode(node, append) | Select a node in the flowgraph editor canvas |
Graph Type Colors
Each graph type is displayed with its registered color from ui_flowgraph_editor.getGraphTypes():
- Graph / Sub Graph: Default color
- Macro: Macro-specific color
- Instance: Instance color
- State: State graph color (also in name label)
Features
- Text filter searches graph names and (optionally) node names
- Graph children and nodes shown when
flowgraph.debug.displayNodesInOverviewis enabled - Current graph highlighted with
TreeNodeFlags_Selected - Graph type abbreviation shown in brackets after name
- Debug mode: "Print Graphs" button dumps structure to console
Usage Example
-- Navigate to a specific graph:
self.mgr:selectGraph(targetGraph)
-- Select a node in the canvas:
ui_flowgraph_editor.SelectNode(node.id, false) -- false = not appendClass Fields (Additional)
| Field | Type | Description |
|---|---|---|
C.passedGraphIds | table | Tracks graph IDs that pass the current text filter |
See Also
- Flowgraph Base Window - Related reference
- Flowgraph Events - Related reference
- Flowgraph Examples - Related reference
- World Editor Guide - Guide