API ReferenceGE Extensionsflowgraphnodesui
Multi Description (Flowgraph Node)
- **Node Name:** `Multi Description`
Overview
- Node Name:
Multi Description - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/multiDescription.lua
Merges multiple input values into a table array, producing a multiTranslationObject for use with the Start Screen node or other UI elements that accept multi-part descriptions.
Pin Schema
Input Pins (Dynamic)
| Pin | Type | Description |
|---|---|---|
value_1 | any | First value |
| (value_2 … value_N) | any | Additional values (added via count) |
Output Pins
| Pin | Type | Description |
|---|---|---|
value | table (multiTranslationObject) | Array of all input values |
Internals
| Field | Purpose |
|---|---|
self.count | Number of input value slots |
How It Works
postInit()- Initializes pins from 0 tocountviaupdatePins().work()- Called every frame:- Creates a new empty table for
pinOut.value. - Iterates from 1 to
count, inserting eachvalue_<i>pin's value into the output array.
- Creates a new empty table for
drawCustomProperties()- Editor UI with an integer input to adjust the value count.updatePins(old, new)- Dynamically adds or removesvalue_<i>input pins.drawMiddle()- Shows a preview ofdata.patterntext in the node body (truncated to 10 chars).
Serialization
_onSerialize()- Savescount._onDeserialized()- Restores count and rebuilds pins.
Lua Code Example
-- This node is essentially:
local result = {}
for i = 1, count do
table.insert(result, pinIn['value_' .. i].value)
end
-- result is then passed as multiTranslationObject to startScreen's text pin
-- Usage with Start Screen node:
-- Wire multiDescription output -> startScreen text input
-- The start screen renders each entry as a separate description blockKey Dependencies
- Used primarily with the Start Screen node's
textpin (typemultiTranslationObject) ui_flowgraph_editor- Node color/icon constants
See Also
- Medal / Auto Medal (Flowgraph Node) - Related reference
- Clear Messages (Flowgraph Node) - Related reference
- Context Translation (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide