diff --git a/project.godot b/project.godot index 8697781e..922bfd47 100644 --- a/project.godot +++ b/project.godot @@ -28,7 +28,7 @@ interfer/center_offset=Vector2(200, 225) interfer/default_color0=Color(0.38, 0.47, 0.51, 1) interfer/default_color1=Color(0.39, 0.44, 0.5, 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 config/external_cu=false config/unit_rr_request_period=20.0 diff --git a/scenes/работа/работа.gd b/scenes/работа/работа.gd index f0934ec8..356debef 100644 --- a/scenes/работа/работа.gd +++ b/scenes/работа/работа.gd @@ -625,7 +625,7 @@ func _on_btn_all_work_pressed() -> void: func on_th_aoa_update(ths): count_threats(ths) - + func count_threats(ths): $count_all_pad/count_all.text = '%02d' % ths.size() diff --git a/scripts/interfer.gd b/scripts/interfer.gd index 7c9a60ce..cefdb438 100644 --- a/scripts/interfer.gd +++ b/scripts/interfer.gd @@ -267,7 +267,7 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> v thr.nmfs = nmfs if (thr.proto in gos_protocols) and thr.fflags.proto and (not gos_flag): gos_nmfs.append(nmfs) - + thr.emit_state = 0 for ecm in ecms.values(): if thr.nmfs == ecm.nmfs: @@ -279,7 +279,7 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> v ecm_active = false if ecm_active and (prd.fs_caps_id[ecm.nmfs] in fs_closed): interfer_off(ecm, unit_instance) - + var th_id = thr.id for ecm_i in thrs.keys(): if thrs[ecm_i] == th_id: @@ -695,4 +695,3 @@ func set_th_emit(th: threats.Threat, ecm: Interfer): return else: th.emit_state = 1 -