From 2992ed7d6fd6c69ab6e090201025a675573befcb Mon Sep 17 00:00:00 2001 From: sasha80 Date: Thu, 18 Sep 2025 23:32:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0.=20=D0=9D=D0=B5=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B6=D0=B0=D1=82=D1=8C=20=D0=BE=D1=82=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B8=D0=B7=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B9=20=D0=B7=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=87=D0=B8?= =?UTF-8?q?=D0=BC=D0=B8=20=D0=B4=D0=B8=D0=B0=D0=BF=D0=B0=D0=B7=D0=BE=D0=BD?= =?UTF-8?q?=D0=B0=D0=BC=D0=B8=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=20=D0=A4=D0=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/работа/работа.gd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scenes/работа/работа.gd b/scenes/работа/работа.gd index 1871639..cfd1a16 100644 --- a/scenes/работа/работа.gd +++ b/scenes/работа/работа.gd @@ -166,7 +166,7 @@ func get_all_nodes(root): ## Производит отображение цели на диаграмму. -func map_threat_to_bip(th: threats.Threat, bip: Control): +func map_threat_to_bip(th: threats.Threat, bip: Control) -> bool: var freq = th.freq var sector_key = null var sector_width = 50.0 @@ -189,13 +189,15 @@ func map_threat_to_bip(th: threats.Threat, bip: Control): radius_outter, freq_low, freq_high) - bip.size / 2 + return sector_key != null ## Обработчик сигнала обновления цели. func on_threat_update(th): var bip = get_node('%d' % th.id) bip.update(th.tick_rx) - map_threat_to_bip(th, bip) + var rc = map_threat_to_bip(th, bip) + bip.visible = rc ## Обработчик выбора помехи для цели.