API ReferenceGE Extensionsflowgraphnodesui
Show Monitor (Flowgraph Node)
- **Node Name:** `Show Monitor`
Overview
- Node Name:
Show Monitor - Category:
once_instant - File:
extensions/flowgraph/nodes/ui/showMonitor.lua - Author: BeamNG
Enables the flowgraph monitor window and hides the full editor. Useful for debugging flowgraphs at runtime with a minimal UI footprint.
Pin Schema
Input Pins
| Pin | Type | Hidden | Description |
|---|---|---|---|
showStates | bool | yes | Shows or hides the States section in the monitor |
showLog | bool | yes | Shows or hides the Log section in the monitor |
How It Works
workOnce()- Executes once:- Sets
self.mgr.fgEditor.switchToSmallWindow = trueto switch from the full editor to the compact monitor. - Sets
self.mgr.fgEditor.forceOpen.statesandself.mgr.fgEditor.forceOpen.logbased on pin values. - Calls
dumpz()on the editor state before and after for debugging.
- Sets
Lua Code Example
-- Programmatically switch to the monitor:
local editor = myFlowgraphManager.fgEditor
editor.switchToSmallWindow = true
editor.forceOpen.states = true
editor.forceOpen.log = falseKey Dependencies
self.mgr.fgEditor- Flowgraph editor state objectdumpz()- Debug dump utility
See Also
- Medal / Auto Medal (Flowgraph Node) - Related reference
- Clear Messages (Flowgraph Node) - Related reference
- Context Translation (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide