API ReferenceGE ExtensionsflowgraphnodesuiupdatedUI
EndScreen Drift Stats (Flowgraph Node)
- **Node Name:** `EndScreen Drift Stats`
Overview
- Node Name:
EndScreen Drift Stats - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/updatedUI/endScreenDriftStats.lua
Creates a drift statistics panel for the end screen showing performance stats, tier stats, and drift event data.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (chain) | Chain inflow |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (chain) | Chain outflow |
Internals
Key Methods
| Method | Description |
|---|---|
work() | Passes flow through and adds drift stats to the UI layout |
How It Works
- Passes
flowthrough (chain node pattern). - Calls
mgr.modules.ui:addDriftStats()with a table containing:perfStatsfromgameplay_drift_scoreboard.getPerformanceStats()tiersStatsfromgameplay_drift_scoreboard.getTiersStats()driftEventsfromgameplay_drift_scoreboard.getDriftEventStats()
Usage Example
-- Flowgraph chain:
-- [EndScreen Begin] → (build) → [EndScreen Drift Stats] → [Screen Finish]
-- The drift stats are pulled automatically from the scoreboard:
local perfStats = gameplay_drift_scoreboard.getPerformanceStats()
local tiersStats = gameplay_drift_scoreboard.getTiersStats()
local driftEvents = gameplay_drift_scoreboard.getDriftEventStats()Key Dependencies
gameplay_drift_scoreboard- provides all drift scoring datamgr.modules.ui:addDriftStats()- renders the drift stats panel
See Also
- EndScreen Begin (Flowgraph Node) - Related reference
- EndScreen Lap Times (Flowgraph Node) - Related reference
- EndScreen Results (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide