API ReferenceGE Extensionseditorflowgraph
Flowgraph Node Preview
Tooltip popup that renders a live preview of a flowgraph node, macro, or graph when hovering over library items.
Tooltip popup that renders a live preview of a flowgraph node, macro, or graph when hovering over library items.
Overview
nodePreview creates a secondary flowgraph editor context to render a small preview of a node, macro, or graph inside an ImGui tooltip. When the user hovers over items in the node library or overview, this popup shows the node's visual appearance, name, path, description, and TODO notes.
Class Fields
| Field | Type | Description |
|---|---|---|
C.windowKind | string | 'nodePreview' (not a registered window) |
Class Methods
| Method | Description |
|---|---|
C:init() | Initializes hover state, preview size (200×200) |
C:attach(mgr) | Binds to manager, creates a dummy graph for previews |
C:setNode(node) | Set a node template for preview |
C:setMacro(macro) | Set a macro for preview |
C:setGraph(graph) | Set a graph for preview |
C:draw() | Renders the tooltip with node canvas or macro info |
Preview Modes
| Mode | Content |
|---|---|
"node" | Creates temporary node instance, renders in preview editor |
"graph" | Renders all nodes/links of the graph in preview editor |
"macro" | Shows name, type, and description text only |
Usage Example
-- Called by the node library when hovering:
self.fgEditor.nodePreviewPopup:setNode(nodeTemplate)
-- Called by overview when hovering a graph:
self.fgEditor.nodePreviewPopup:setGraph(graph)
-- The draw() method is called each frame; it shows tooltip only when hover is set
-- After drawing, the main window calls setNode(nil) to clearSee Also
- Flowgraph Base Window - Related reference
- Flowgraph Events - Related reference
- Flowgraph Examples - Related reference
- World Editor Guide - Guide