API ReferenceGE Extensionsflowgraphnodesuibuttons
Get Multiple Buttons (Flowgraph Node)
- **Node Name:** `Get Multiple Buttons`
Overview
- Node Name:
Get Multiple Buttons - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/buttons/getMultipleButtons.lua
Handles multiple buttons in a single node, checking click states for each. The number of button slots is configurable in the editor.
Pin Schema (per slot, numbered _1, _2, etc.)
Input Pins
| Pin | Type | Description |
|---|---|---|
buttonId_N | number | ID of button N |
Output Pins
| Pin | Type | Description |
|---|---|---|
clicked_N | flow | (Impulse) Fires when button N is clicked |
buttonId_N | number | Passthrough of button N's ID |
How It Works
init()- Starts withcount = 1.drawCustomProperties()- Shows an integer input to change the number of button slots.updatePins(old, new)- Dynamically adds or removes pin triplets (buttonId input, clicked output, buttonId output) as the count changes.work()- For each slot, retrieves the button and outputs itsclickedstate.
Serialization
- Saves and restores
count, rebuilding pins on deserialization.
Example Usage
-- Create 3 buttons with createButton nodes, then feed all 3 IDs
-- into a single getMultipleButtons node with count=3.
-- Branch on clicked_1, clicked_2, clicked_3 individually.See Also
- Create Button (Flowgraph Node) - Related reference
- Get Button (Flowgraph Node) - Related reference
- Set Button Property (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide