From d707d65323ddb75c923dccf331970eb235802e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Mon, 4 Dec 2023 16:59:09 +0300 Subject: [PATCH] set labels to right align if the port is output --- graph_node_renderer/deck_node_renderer_graph_node.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graph_node_renderer/deck_node_renderer_graph_node.gd b/graph_node_renderer/deck_node_renderer_graph_node.gd index 571074d..0d690bc 100644 --- a/graph_node_renderer/deck_node_renderer_graph_node.gd +++ b/graph_node_renderer/deck_node_renderer_graph_node.gd @@ -135,6 +135,8 @@ func update_port(port: Port) -> void: var label := Label.new() add_child(label) label.text = port.label + if port.port_type == DeckNode.PortType.OUTPUT: + label.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT set_slot( port.index,