Доработка. Не отображать отметки излучений за рабочими диапазонами модулей ФС

This commit is contained in:
sasha80
2025-09-18 23:32:52 +03:00
parent 938b4d663a
commit 2992ed7d6f

View File

@@ -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 freq = th.freq
var sector_key = null var sector_key = null
var sector_width = 50.0 var sector_width = 50.0
@@ -189,13 +189,15 @@ func map_threat_to_bip(th: threats.Threat, bip: Control):
radius_outter, radius_outter,
freq_low, freq_low,
freq_high) - bip.size / 2 freq_high) - bip.size / 2
return sector_key != null
## Обработчик сигнала обновления цели. ## Обработчик сигнала обновления цели.
func on_threat_update(th): func on_threat_update(th):
var bip = get_node('%d' % th.id) var bip = get_node('%d' % th.id)
bip.update(th.tick_rx) bip.update(th.tick_rx)
map_threat_to_bip(th, bip) var rc = map_threat_to_bip(th, bip)
bip.visible = rc
## Обработчик выбора помехи для цели. ## Обработчик выбора помехи для цели.