set labels to right align if the port is output

This commit is contained in:
Lera Elvoé 2023-12-04 16:59:09 +03:00
parent dfbb5f10cd
commit d707d65323
No known key found for this signature in database

View file

@ -135,6 +135,8 @@ func update_port(port: Port) -> void:
var label := Label.new() var label := Label.new()
add_child(label) add_child(label)
label.text = port.label label.text = port.label
if port.port_type == DeckNode.PortType.OUTPUT:
label.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT
set_slot( set_slot(
port.index, port.index,