From 67ba194ea320440017c20011931b8363355881a3 Mon Sep 17 00:00:00 2001 From: sasha80 Date: Fri, 15 Nov 2024 10:01:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5.=20=D0=9D=D0=B0=D0=B4=D0=BF=D0=B8?= =?UTF-8?q?=D1=81=D0=B8=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B0?= =?UTF-8?q?=D1=8E=D1=82=D1=81=D1=8F=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE?= =?UTF-8?q?=20=D0=B2=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/контроль/элемент-я.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scenes/контроль/элемент-я.gd b/scenes/контроль/элемент-я.gd index 36757deb..01b0e31d 100644 --- a/scenes/контроль/элемент-я.gd +++ b/scenes/контроль/элемент-я.gd @@ -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: