API ReferenceGE Extensionsflowgraphnodesuibuttons
Set Multiple Buttons Property (Flowgraph Node)
- **Node Name:** `Set Multiple Buttons Property`
Overview
- Node Name:
Set Multiple Buttons Property - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/buttons/setMultipleButtonsProperty.lua
Updates properties of multiple buttons in a single node. The number of button slots is configurable in the editor.
Pin Schema (per slot, numbered _1, _2, etc.)
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
buttonId_N | number | - | ID of button N |
label_N | string | "Button" | Label for button N |
active_N | bool | - | Active state for button N |
order_N | number | - | Order for button N |
style_N | string | "default" | Style for button N |
How It Works
init()- Starts withcount = 1.drawCustomProperties()- Integer input to set the number of button slots.updatePins(old, new)- Dynamically adds/removes 5-pin groups per slot.work()- For each slot, retrieves the button and sets any non-nil properties.
Serialization
- Saves and restores
count, rebuilding pins on deserialization.
Example Usage
-- Update labels and active states for 3 buttons at once
-- Set count=3, connect buttonId_1..3 and label_1..3See Also
- Create Button (Flowgraph Node) - Related reference
- Get Button (Flowgraph Node) - Related reference
- Get Multiple Buttons (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide