mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
240750c48e
~~cl0ses #51~~ ~~cl0ses #93~~ ~~cl0ses #98~~ ~~cl0ses #150~~ another change in this PR: the Deck and DeckNode classes now use manual memory management. Reviewed-on: https://codeberg.org/StreamGraph/StreamGraph/pulls/151 Co-authored-by: Lera Elvoé <yagich@poto.cafe> Co-committed-by: Lera Elvoé <yagich@poto.cafe>
12 lines
397 B
GDScript
12 lines
397 B
GDScript
# (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))
|
|
button.disabled = node._belonging_to.is_library
|