API ReferenceGE Extensionseditorflowgraph
Flowgraph State View Window
Displays a hierarchical view of the state machine within a flowgraph project.
Displays a hierarchical view of the state machine within a flowgraph project.
Overview
A flowgraph manager window that renders the state graph tree, showing which states are running or paused. It recursively traverses the state graph and its children, displaying play/pause icons for each state node.
Window Properties
| Property | Value |
|---|---|
C.windowName | "fg_stateView" |
C.windowDescription | "State View" |
Key Functions
| Function | Description |
|---|---|
C:init() | Creates text filter, registers editor window |
C:attach(mgr) | Binds the window to a flowgraph manager |
C:drawStategraphRecursive(graph, depth) | Recursively draws state nodes with running/paused icons, indented by depth |
C:draw() | Main draw entry; renders a two-column layout (icon + name) |
C:selectNode(node, append) | Selects a node in the flowgraph editor canvas |
State Display
| Icon | Meaning |
|---|---|
play_circle_filled | State is currently running |
pause_circle_outline | State is not running |
Each state node's target graph name is indented according to its depth in the hierarchy.
Usage Example
-- The state view is opened from the flowgraph editor's Window menu.
-- It shows the state machine hierarchy:
-- [Main State Graph]
-- - Idle
-- - Driving (running)
-- - [Sub State Graph]
-- - Accelerating
-- - Braking (running)See Also
- Flowgraph Editor - Parent editor module
- Flowgraph Variables - Variable management