API ReferenceGE ExtensionsflowgraphnodesuiupdatedUI
Screen Main Header (Flowgraph Node)
- **Node Name:** `Screen Main Header`
Overview
- Node Name:
Screen Main Header - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/updatedUI/startScreenMainHeader.lua
Adds a large header element to the screen layout, typically used for the mission name with an optional pre-header (e.g., mission type).
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
flow | flow (chain) | - | Chain inflow |
header | string | "Header" | Main header text (e.g., mission name) |
preHeader | string | "Header" | Pre-header text (e.g., mission type) |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (chain) | Chain outflow |
Internals
Key Methods
| Method | Description |
|---|---|
work() | Passes flow and adds header to the UI layout |
How It Works
- Passes
flowthrough. - Calls
mgr.modules.ui:addHeader()withheaderandpreHeadervalues.
Usage Example
-- Flowgraph chain:
-- [StartScreen Begin] → (build) → [Screen Main Header] → [StartScreen Intro] → [Screen Finish]
-- ↑ header = "Time Trial: East Coast"
-- ↑ preHeader = "Time Trial"
-- Equivalent to:
mgr.modules.ui:addHeader({
header = "Time Trial: East Coast",
preHeader = "Time Trial",
})Key Dependencies
mgr.modules.ui:addHeader()- adds the header element 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