mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
c7e003ffe6
closes #60 Reviewed-on: https://codeberg.org/StreamGraph/StreamGraph/pulls/74 Co-authored-by: Lera Elvoé <yagich@poto.cafe> Co-committed-by: Lera Elvoé <yagich@poto.cafe>
14 lines
452 B
GDScript
14 lines
452 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 line_edit: LineEdit = %LineEdit
|
|
|
|
|
|
func _setup(port: Port, _node: DeckNode) -> void:
|
|
if port.value:
|
|
line_edit.text = str(port.value)
|
|
line_edit.placeholder_text = port.label
|
|
port.value_callback = line_edit.get_text
|
|
line_edit.text_changed.connect(port.set_value)
|