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 ## Обработчик выбора помехи для цели.