Отладка в КЭН 11 контроля прд

This commit is contained in:
Maxim
2025-09-01 15:20:00 +03:00
parent 20a27d36f3
commit b5f5496d55
5 changed files with 83 additions and 46 deletions

View File

@@ -15,7 +15,7 @@ const constants_v = {
'RAY_DOU_NUM': 0x3,
'ATT_UM_4': 0x7,
'ATT_UM_5': 0x7,
'POWER_UM': 70,
'POWER_UM': 75,
'TIMER_DELAY': 5.0,
'STATE_MASHINE_TIMER': 0.3,
}

View File

@@ -35,6 +35,8 @@ signal pressed(control: PanelContainer)
if not is_inside_tree():
return
$margin/vbox/grid1/level7.value = v
$margin/vbox/grid1/level7.tint_progress = Color.RED if v > 70 else Color.WHITE
@export var min_value0: float:
@@ -357,8 +359,9 @@ size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00
Диапазон: 0.00…100.00"
Диапазон: 0.00…1400.00"
mouse_filter = 0
max_value = 1400.0
fill_mode = 3
nine_patch_stretch = true
stretch_margin_left = 8
@@ -376,8 +379,9 @@ size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00
Диапазон: 0.00…100.00"
Диапазон: 0.00…1400.00"
mouse_filter = 0
max_value = 1400.0
fill_mode = 3
nine_patch_stretch = true
stretch_margin_left = 8
@@ -395,8 +399,9 @@ size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00
Диапазон: 0.00…100.00"
Диапазон: 0.00…1400.00"
mouse_filter = 0
max_value = 1400.0
fill_mode = 3
nine_patch_stretch = true
stretch_margin_left = 8
@@ -414,8 +419,9 @@ size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00
Диапазон: 0.00…100.00"
Диапазон: 0.00…1400.00"
mouse_filter = 0
max_value = 1400.0
fill_mode = 3
nine_patch_stretch = true
stretch_margin_left = 8
@@ -433,8 +439,9 @@ size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00
Диапазон: 0.00…100.00"
Диапазон: 0.00…1400.00"
mouse_filter = 0
max_value = 1400.0
fill_mode = 3
nine_patch_stretch = true
stretch_margin_left = 8
@@ -452,8 +459,9 @@ size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00
Диапазон: 0.00…100.00"
Диапазон: 0.00…1400.00"
mouse_filter = 0
max_value = 1400.0
fill_mode = 3
nine_patch_stretch = true
stretch_margin_left = 8

View File

@@ -111,6 +111,7 @@ metadata/unit_name = ["уарэп-эмс"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_uf"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 15.0
offset_top = -34.0
@@ -177,6 +178,7 @@ patch_margin_right = 16
patch_margin_bottom = 16
[node name="label" type="Label" parent="pribor_rtr"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 12.0
offset_top = -54.0
@@ -230,6 +232,7 @@ patch_margin_right = 16
patch_margin_bottom = 16
[node name="label" type="Label" parent="pribor_afsp_1"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 165.0
offset_top = -245.0
@@ -244,7 +247,7 @@ vertical_alignment = 1
modulate = Color(0.498039, 0.498039, 0.498039, 1)
light_mask = 3
position = Vector2(415, -40)
scale = Vector2(3.0, 3.0)
scale = Vector2(3, 3)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
@@ -285,6 +288,7 @@ patch_margin_right = 16
patch_margin_bottom = 16
[node name="label" type="Label" parent="pribor_afsp_2"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 200.0
offset_top = -240.0
@@ -299,7 +303,7 @@ vertical_alignment = 1
modulate = Color(0.498039, 0.498039, 0.498039, 1)
light_mask = 3
position = Vector2(425, -40)
scale = Vector2(3.0, 3.0)
scale = Vector2(3, 3)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
@@ -323,6 +327,7 @@ metadata/unit_name = ["уарэп-щ3", "уарэп-спт25-1", "уарэп-с
metadata/online_proc = "online_change_arr"
[node name="label" type="Label" parent="pribor_uyep"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 26.8566
offset_top = -38.3276
@@ -376,6 +381,7 @@ metadata/unit_name = ["уарэп-яу07-2в"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_v_2"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 14.0
offset_top = -38.0
@@ -429,6 +435,7 @@ metadata/unit_name = ["уарэп-яу07-2н"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_n_2"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 15.0
offset_top = -38.0
@@ -484,6 +491,7 @@ metadata/unit_name = ["уарэп-яу07-2к"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_k_2"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 17.0
offset_top = -38.0
@@ -537,6 +545,7 @@ metadata/unit_name = ["уарэп-яу07-3в"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_v_3"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 9.0
offset_top = -38.0
@@ -590,6 +599,7 @@ metadata/unit_name = ["уарэп-яу07-3н"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_n_3"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 8.0
offset_top = -38.0
@@ -643,6 +653,7 @@ metadata/unit_name = ["уарэп-яу07-3к"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_k_3"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 9.0
offset_top = -38.0
@@ -696,6 +707,7 @@ metadata/unit_name = ["уарэп-яу07-1в"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_v_1"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 8.0
offset_top = -38.0
@@ -749,6 +761,7 @@ metadata/online_proc = "on_line_changed"
metadata/unit_name = ["уарэп-яу07-1н"]
[node name="label" type="Label" parent="pribor_prd_n_1"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 8.0
offset_top = -38.0
@@ -802,6 +815,7 @@ metadata/unit_name = ["уарэп-яу07-1к"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_k_1"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 9.0
offset_top = -38.0
@@ -854,6 +868,7 @@ metadata/unit_name = ["уарэп-яу07-4в"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_v_4"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 17.0
offset_top = -38.0
@@ -906,6 +921,7 @@ metadata/unit_name = ["уарэп-яу07-4н"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_n_4"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 14.0
offset_top = -38.0
@@ -958,6 +974,7 @@ metadata/unit_name = ["уарэп-яу07-4к"]
metadata/online_proc = "on_line_changed"
[node name="label" type="Label" parent="pribor_prd_k_4"]
self_modulate = Color(0, 0, 0, 0)
layout_mode = 0
offset_left = 17.0
offset_top = -38.0