API ReferenceGE ExtensionsflowgraphnodesuiupdatedUI
StartScreen Text Panel (Flowgraph Node)
- **Node Name:** `StartScreen Text Panel`
Overview
- Node Name:
StartScreen Text Panel - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/updatedUI/startScreenText.lua
Adds a text panel with header and content to the start screen. Automatically routes "Rules" panels to the rules page instead of the main page.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
flow | flow (chain) | - | Chain inflow |
header | string | "missions.missions.general.rules" | Panel header text |
text | string/table | "Text" | Panel body content |
experimental | bool | - | Show "experimental" visuals (hidden) |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (chain) | Chain outflow |
Internals
Key Methods
| Method | Description |
|---|---|
work() | Adds a text panel to the UI layout with automatic page routing |
How It Works
- Passes
flowthrough. - Skips if
textis empty. - Determines the page: if header is
"missions.missions.general.rules"or"Rules", setspages = { main = false, rules = true }. Otherwise,pages = { main = true }. - Adds a
textPanelUI element with header, text, experimental flag, and page routing.
Usage Example
-- Flowgraph chain:
-- [StartScreen Begin] → (build) → [StartScreen Text] → [Screen Finish]
-- ↑ header = "Rules"
-- ↑ text = "Complete 3 laps..."
-- Rules go to the rules page:
mgr.modules.ui:addUIElement({
type = 'textPanel',
header = "Rules",
text = "Complete 3 laps under 5 minutes",
pages = { main = false, rules = true },
})
-- Other headers go to main page:
mgr.modules.ui:addUIElement({
type = 'textPanel',
header = "Description",
text = "A scenic mountain drive...",
pages = { main = true },
})Key Dependencies
mgr.modules.ui:addUIElement()- adds the text panel to the screen layout
See Also
- EndScreen Begin (Flowgraph Node) - Related reference
- EndScreen Drift Stats (Flowgraph Node) - Related reference
- EndScreen Lap Times (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide