Рефактор
This commit is contained in:
@@ -28,7 +28,7 @@ interfer/center_offset=Vector2(200, 225)
|
|||||||
interfer/default_color0=Color(0.38, 0.47, 0.51, 1)
|
interfer/default_color0=Color(0.38, 0.47, 0.51, 1)
|
||||||
interfer/default_color1=Color(0.39, 0.44, 0.5, 1)
|
interfer/default_color1=Color(0.39, 0.44, 0.5, 1)
|
||||||
interfer/select_color=Color(1, 1, 1, 1)
|
interfer/select_color=Color(1, 1, 1, 1)
|
||||||
interfer/interfer_color=Color(0.90, 0.1, 0.25, 0.9)
|
interfer/interfer_color=Color(0.9, 0.1, 0.25, 0.9)
|
||||||
interfer/resend_timeout=1000.0
|
interfer/resend_timeout=1000.0
|
||||||
config/external_cu=false
|
config/external_cu=false
|
||||||
config/unit_rr_request_period=20.0
|
config/unit_rr_request_period=20.0
|
||||||
|
|||||||
@@ -625,7 +625,7 @@ func _on_btn_all_work_pressed() -> void:
|
|||||||
|
|
||||||
func on_th_aoa_update(ths):
|
func on_th_aoa_update(ths):
|
||||||
count_threats(ths)
|
count_threats(ths)
|
||||||
|
|
||||||
|
|
||||||
func count_threats(ths):
|
func count_threats(ths):
|
||||||
$count_all_pad/count_all.text = '%02d' % ths.size()
|
$count_all_pad/count_all.text = '%02d' % ths.size()
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> v
|
|||||||
thr.nmfs = nmfs
|
thr.nmfs = nmfs
|
||||||
if (thr.proto in gos_protocols) and thr.fflags.proto and (not gos_flag):
|
if (thr.proto in gos_protocols) and thr.fflags.proto and (not gos_flag):
|
||||||
gos_nmfs.append(nmfs)
|
gos_nmfs.append(nmfs)
|
||||||
|
|
||||||
thr.emit_state = 0
|
thr.emit_state = 0
|
||||||
for ecm in ecms.values():
|
for ecm in ecms.values():
|
||||||
if thr.nmfs == ecm.nmfs:
|
if thr.nmfs == ecm.nmfs:
|
||||||
@@ -279,7 +279,7 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> v
|
|||||||
ecm_active = false
|
ecm_active = false
|
||||||
if ecm_active and (prd.fs_caps_id[ecm.nmfs] in fs_closed):
|
if ecm_active and (prd.fs_caps_id[ecm.nmfs] in fs_closed):
|
||||||
interfer_off(ecm, unit_instance)
|
interfer_off(ecm, unit_instance)
|
||||||
|
|
||||||
var th_id = thr.id
|
var th_id = thr.id
|
||||||
for ecm_i in thrs.keys():
|
for ecm_i in thrs.keys():
|
||||||
if thrs[ecm_i] == th_id:
|
if thrs[ecm_i] == th_id:
|
||||||
@@ -695,4 +695,3 @@ func set_th_emit(th: threats.Threat, ecm: Interfer):
|
|||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
th.emit_state = 1
|
th.emit_state = 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user