API ReferenceGE Extensionsflowgraphnodesdebug
Flow Button
- **Name:** `Flow Button`
Overview
- Name:
Flow Button - Type:
simple - Category:
logic - File:
lua/ge/extensions/flowgraph/nodes/debug/flowButton.lua - Pattern: Class-based (
C = {}, returns_flowgraph_createNode(C))
Description
Displays a clickable button in the flowgraph editor that triggers an impulse flow output when pressed. Only works while the graph is running. The button label auto-updates when linked to another node.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Inflow for this node |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (impulse) | Fires once when the button is pressed |
Behavior
drawMiddle()renders an ImGui button in the node body. Clicking it while the graph is running setsdoTrigger = true.work()outputs the trigger state on the flow pin and immediately resets it.onLink()auto-names the button after the connected target pin name (or target node name if the pin is named'flow').onUnlink()resets the button label to"Push".
Properties
| Property | Default | Description |
|---|---|---|
btnName | "Push" | Button label text |
Tags
#flowgraph #node #ge #debug #button #input
Additional Exports
init(mgr, ...)
-
mgr -
any -
... -
any -
type-string- (see source) -
description-string- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- AI Debug Display - Related reference
- Camera Mouse Raycast - Related reference
- Comment - Related reference
- FlowGraph Guide - Guide