RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Flowgraph Base WindowFlowgraph EventsFlowgraph ExamplesFlowgraph Execution (Task Manager)Flowgraph Garbage DebugFlowgraph HistoryFlowgraph LegendFlowgraph Main WindowFlowgraph Mission Variable HelperFlowgraph Node LibraryFlowgraph Node PreviewFlowgraph OverviewFlowgraph Project SettingsFlowgraph PropertiesFlowgraph References WindowFlowgraph Search WindowFlowgraph State View WindowFlowgraph Variables WindowFlowgraph Welcome Window

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionseditorflowgraph

Flowgraph Main Window

The primary flowgraph editor window: renders graph tabs, the node canvas, toolbar controls, context menus, and execution controls.

The primary flowgraph editor window: renders graph tabs, the node canvas, toolbar controls, context menus, and execution controls.


Overview

fg_main is the central flowgraph editor window. It draws the menu bar (File, Windows, Preferences), graph tabs for all open graphs, the node editing canvas via ui_flowgraph_editor, execution controls (play/pause/stop/step), breadcrumb navigation, view mode selection, and context menus for nodes/pins/links/background. Supports drag-drop for nodes, macros, and variables.


Class Fields

FieldTypeDescription
C.windowNamestring'fg_main'
C.windowDescriptionstring'Main view'

Class Methods

MethodDescription
C:init()Registers window, initializes editor IDs, dockspaces, context pointers
C:attach(mgr)Binds manager, sets border colors for running states
C:draw()Entry point - calls drawSelf()
C:drawSelf()Full render: menu, tabs, graph canvas, context menus
C:drawMenu()File menu (New/Load/Save/Recent), Focus, Preferences, Windows, FPS
C:drawGraph(graph, builder, style)Renders all nodes and links for one graph
C:doContextMenus()Node/Pin/Link/Background right-click menus
C:showNewNodeContextMenu(menuPos)Background context: node library search
C:showQuickAccessSubmenu(menuPos, pin)Quick Connect menu for pin linking
C:resolveDragDropPayload()Handles dropped nodes/macros/variables onto canvas
C:isMouseHovering()Check if mouse is over the main window

Menu Actions

Menu ItemAction
New ProjectCreates new empty manager
Load ProjectOpens file dialog for .flow.json
Save / Save asSaves current project
Save as ScenarioCreates additional scenario .json
New GraphCreates sub-graph
New NodeOpens file dialog to create node template
Load into currentReplaces current project contents
Encode/Decode ClipboardClipboard serialization for copy/paste

View Modes

ModeDescription
defaultStandard node rendering
simpleSimplified view
heatmapColor-coded by activity
geometryGeometric layout view

Usage Example

-- The main window is managed by the flowgraph editor extension
-- Graph tabs are auto-generated from mgr.graphs
-- Execution controls apply mission variables before starting:
missionVarHelper.applyMissionVariablesToManager(self.mgr, "flowgraphEditor")
self.mgr:setRunning(true)

See Also

  • Flowgraph Base Window - Related reference
  • Flowgraph Events - Related reference
  • Flowgraph Examples - Related reference
  • World Editor Guide - Guide

Flowgraph Legend

Test/development window for experimenting with ImGui reorderable tab bars in the flowgraph editor.

Flowgraph Mission Variable Helper

Shared utility module for applying mission variables from the Mission Editor to flowgraph managers before execution.

On this page

OverviewClass FieldsClass MethodsMenu ActionsView ModesUsage ExampleSee Also