API ReferenceGE Extensionseditorflowgraph
Flowgraph History
Flowgraph manager window displaying the undo/redo history stack with clickable navigation to any history state.
Flowgraph manager window displaying the undo/redo history stack with clickable navigation to any history state.
Overview
fg_history renders a scrollable list of all history entries for the current flowgraph manager. The current history index is highlighted with >. Clicking any entry jumps to that history state. Undo/Redo buttons are provided at the top.
Class Fields
| Field | Type | Description |
|---|---|---|
C.windowName | string | 'fg_history' |
C.windowDescription | string | 'History' |
Class Methods
| Method | Description |
|---|---|
C:init() | Registers window (150×300, hidden by default) |
C:attach(mgr) | Binds to a flowgraph manager |
C:draw() | Draws undo/redo buttons and history list |
UI Layout
- Two-column table: Index | Action description
- Current index marked with
>prefix - Future entries (above current) shown in disabled grey
- Clicking any entry calls
mgr:goToHistory(index)
Usage Example
-- History entries are added by the flowgraph editor:
self.fgEditor.addHistory("Moved Node(s) in " .. graph.name)
-- Programmatic undo/redo:
self.mgr:undo()
self.mgr:redo()
self.mgr:goToHistory(5)See Also
- Flowgraph Base Window - Related reference
- Flowgraph Events - Related reference
- Flowgraph Examples - Related reference
- World Editor Guide - Guide