Flowgraph Base Window
Base class for all flowgraph editor windows, providing open/close/toggle, focus tracking, and serialization interface.
Base class for all flowgraph editor windows, providing open/close/toggle, focus tracking, and serialization interface.
Overview
basewindow defines the C class used as a base for all flowgraph manager windows (events, history, properties, etc.). It wraps editor.beginWindow/editor.endWindow and tracks child-window focus state. Derived classes override init(), draw(), and serialization hooks.
Class Methods
| Method | Description |
|---|---|
C:init(fgEditor) | Store reference to the flowgraph editor |
C:Begin(name, flags) | Calls editor.beginWindow() with the window's registered name |
C:End() | Updates hasFocus and calls editor.endWindow() |
C:attach(mgr) | Attach a flowgraph manager instance |
C:open() | Show the window via editor.showWindow() |
C:close() | Hide the window and clear focus |
C:toggle() | Toggle window visibility |
C:__onSerialize() | Calls _onSerialize() hook, returns result |
C:__onDeserialized(data) | Calls _onDeserialized() hook, resets focus |
Factory Functions
| Function | Description |
|---|---|
M.createBase(...) | Create a plain base window instance (varargs) |
M.use(fgEditor, derivedClass) | Create a base window and merge a derived class table into it |
Usage Example
local basewindow = require('/lua/ge/extensions/editor/flowgraph/basewindow')
local MyWindow = {}
MyWindow.windowName = 'fg_mywindow'
function MyWindow:init()
editor.registerWindow(self.windowName, imgui.ImVec2(200, 300))
end
function MyWindow:draw()
if self:Begin("My Window") then
imgui.Text("Hello")
end
self:End()
end
local instance = basewindow.use(fgEditor, MyWindow)See Also
- Flowgraph Events - Related reference
- Flowgraph Examples - Related reference
- Flowgraph Execution (Task Manager) - Related reference
- World Editor Guide - Guide
Dynamic Decals Layer Type: Texture Fill
Editor module for the Texture Fill layer type. Applies a repeating texture pattern across the entire vehicle surface with configurable scale, offset, color, and palette mapping.
Flowgraph Events
Flowgraph manager window displaying a scrollable event log with timestamps, severity levels, color coding, and clickable navigation to source nodes/graphs.