Исправление. Надписи отображаются только в редакторе

This commit is contained in:
sasha80
2024-11-15 10:01:48 +03:00
parent 0fcafe18c1
commit 67ba194ea3

View File

@@ -52,7 +52,6 @@ func _ready() -> void: call_deferred('_on_resized')
func _on_resized() -> void:
$rect.size = size
$margin.size = size
$button.size = size
func _enter_tree() -> void:
@@ -61,6 +60,10 @@ func _enter_tree() -> void:
var unit = network.units[unit_key]
unit.connect('data_received', Callable(self, 'on_data_received'))
unit.connect('line_changed', Callable(self, 'on_line_changed'))
$margin/vbox.alignment = alignment
$margin/vbox/grid/fname.text = fname
$margin/vbox/grid/rname.text = rname
$margin/vbox/grid/state.texture = textures[state]
func _exit_tree() -> void: