miggor-StreamGraph/graph_node_renderer/descriptors/button_descriptor.gd

13 lines
419 B
GDScript3
Raw Permalink Normal View History

# meta-description: An empty template with StreamGraph license header.
# (c) 2023-present Eroax
# (c) 2023-present Yagich
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
extends DescriptorContainer
@onready var button: Button = %Button
func _setup(port: Port, node: DeckNode) -> void:
button.text = port.label
button.pressed.connect(node.press_button.bind(port.index))