API ReferenceGE Extensionsflowgraphnodesuiimgui
ImGui Simple Text Box
- **Node Name:** `im Simple Text Box`
Overview
- Node Name:
im Simple Text Box - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/imgui/imSimpleBox.lua
Displays a simple ImGui window with a title and text body. The window renders every frame while the node is active.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
title | string | "Some Title" | Displayed window title |
text | string | "Some Text" | Displayed text content |
Internals
| Field | Purpose |
|---|---|
C.tags | {'imgui'} |
How It Works
work()- Called every frame while the node is active.- Opens an ImGui
Beginwindow using thetitlepin value, appended with##<nodeId>for uniqueness. - Renders the
textpin value usingim.Text(). - Closes the window with
im.End().
- Opens an ImGui
The window is non-closable from the user's perspective (uses BoolPtr(true) as the open flag).
Lua Code Example
-- Flowgraph usage: simply wire string values into the title/text pins
-- The node continuously renders the ImGui window each frame
-- Equivalent manual ImGui call:
im.Begin("My Title##123", im.BoolPtr(true))
im.Text("Hello World")
im.End()Key Dependencies
ui_imgui- BeamNG's ImGui binding layer
See Also
- im Dialogue (Flowgraph Node) - Related reference
- im Vehicle Selector (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide