diff --git a/data/СПТ.png b/data/СПТ.png index 6452b42..33abb89 100644 Binary files a/data/СПТ.png and b/data/СПТ.png differ diff --git a/project.godot b/project.godot index 36e7935..df01b21 100644 --- a/project.godot +++ b/project.godot @@ -117,7 +117,6 @@ folder_colors={ "res://scenes/frame/": "blue", "res://scenes/grid-buttons-ecm/": "blue", "res://scenes/grid-side-panel/": "blue", -"res://scenes/pribor-afsp/": "purple", "res://scenes/pribor-prd-k/": "purple", "res://scenes/pribor-prd-n/": "purple", "res://scenes/pribor-prd-v/": "purple", diff --git a/scenes/pribor-afsp/pribor-afsp.gd b/scenes/pribor-afsp/pribor-afsp.gd deleted file mode 100644 index ba0c565..0000000 --- a/scenes/pribor-afsp/pribor-afsp.gd +++ /dev/null @@ -1,18 +0,0 @@ -extends "res://scenes/контроль/прибор.gd" - - -var test_req: HTTPRequest -var test_addr: = String() -var test_data: = {} - -func _ready(): - test_req = HTTPRequest.new() - add_child(test_req) - test_req.request_completed.connect(_map_request_completed) - -func _map_request_completed(): - pass - - -func on_req_test_data_timer(): - test_req.request(test_addr) diff --git a/scenes/pribor-afsp/pribor-afsp.gd.uid b/scenes/pribor-afsp/pribor-afsp.gd.uid deleted file mode 100644 index ffeb0a3..0000000 --- a/scenes/pribor-afsp/pribor-afsp.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://dleg6a3d0wy33 diff --git a/scenes/pribor-afsp/pribor-afsp.tscn b/scenes/pribor-afsp/pribor-afsp.tscn deleted file mode 100644 index b152b55..0000000 --- a/scenes/pribor-afsp/pribor-afsp.tscn +++ /dev/null @@ -1,673 +0,0 @@ -[gd_scene load_steps=4 format=3 uid="uid://cpsbybk4r6t8d"] - -[ext_resource type="Script" path="res://scenes/pribor-afsp/pribor-afsp.gd" id="1_6xgf6"] -[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="2_won25"] -[ext_resource type="PackedScene" uid="uid://d3iqb5e4g81m5" path="res://scenes/контроль/элемент-г.tscn" id="3_7rc2x"] - -[node name="pribor_afsp" type="Control"] -layout_mode = 3 -anchors_preset = 0 -offset_left = -10.0 -offset_top = 65.0 -offset_right = -10.0 -offset_bottom = 65.0 -script = ExtResource("1_6xgf6") - -[node name="lbl_header" type="Label" parent="."] -layout_mode = 0 -offset_left = 25.0 -offset_top = -55.0 -offset_right = 745.0 -offset_bottom = -25.0 -theme_override_font_sizes/font_size = 22 -text = "Контроль исправности прибора" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="ref_afsp_A1" type="NinePatchRect" parent="."] -layout_mode = 0 -offset_left = 20.0 -offset_top = -20.0 -offset_right = 375.0 -offset_bottom = 1090.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A1"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 10.0 -offset_top = 5.0 -offset_right = 320.0 -offset_bottom = 35.0 -text = "АФСП-П" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A1"] -layout_mode = 0 -offset_left = 310.0 -offset_top = 5.0 -offset_right = 350.0 -offset_bottom = 35.0 -theme_override_font_sizes/font_size = 22 -text = "A1" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="geterodin" parent="ref_afsp_A1" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 10.0 -offset_top = 76.0 -offset_right = 340.0 -offset_bottom = 121.0 -fname = "Гетеродин" -rname = "ZZ2" - -[node name="modul_og" parent="ref_afsp_A1" instance=ExtResource("3_7rc2x")] -layout_mode = 2 -offset_left = 10.0 -offset_top = 31.0 -offset_right = 340.0 -offset_bottom = 76.0 -fname = "Модуль ОГ" -rname = "ZZ1" - -[node name="ref_A1A" type="NinePatchRect" parent="ref_afsp_A1"] -layout_mode = 0 -offset_left = 10.0 -offset_top = 142.0 -offset_right = 340.0 -offset_bottom = 622.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A1/ref_A1A"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 10.0 -offset_top = 7.0 -offset_right = 320.0 -offset_bottom = 37.0 -text = "Панель ЛПА" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A1/ref_A1A"] -layout_mode = 0 -offset_left = 280.0 -offset_top = 7.0 -offset_right = 320.0 -offset_bottom = 37.0 -theme_override_font_sizes/font_size = 22 -text = "A1A" - -[node name="ref_bpch_8s" type="NinePatchRect" parent="ref_afsp_A1/ref_A1A"] -layout_mode = 0 -offset_left = 15.0 -offset_top = 45.0 -offset_right = 315.0 -offset_bottom = 465.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 8.0 -offset_top = 5.0 -offset_right = 293.0 -offset_bottom = 35.0 -text = "БПЧ-8С" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s"] -layout_mode = 0 -offset_left = 253.0 -offset_top = 5.0 -offset_right = 293.0 -offset_bottom = 35.0 -theme_override_font_sizes/font_size = 22 -text = "A17" - -[node name="ref_mshu1" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 225.0 -offset_right = 283.0 -offset_bottom = 270.0 -fname = "Модуль ЛА6А45" -rname = "А5" - -[node name="ref_mshu2" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 90.0 -offset_right = 283.0 -offset_bottom = 135.0 -fname = "Модуль ЛА6А45" -rname = "А2" - -[node name="ref_mshu3" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 135.0 -offset_right = 283.0 -offset_bottom = 180.0 -fname = "Модуль ЛА6А45" -rname = "А3" - -[node name="ref_mshu4" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 180.0 -offset_right = 283.0 -offset_bottom = 225.0 -fname = "Модуль ЛА6А45" -rname = "А4" - -[node name="ref_mshu5" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 270.0 -offset_right = 283.0 -offset_bottom = 315.0 -fname = "Модуль ЛА6А45" -rname = "А6" - -[node name="ref_mshu6" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 45.0 -offset_right = 283.0 -offset_bottom = 90.0 -fname = "Модуль ЛА6А45" -rname = "А1" - -[node name="ref_mshu7" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 315.0 -offset_right = 283.0 -offset_bottom = 360.0 -fname = "Модуль ЛА6А45" -rname = "А7" - -[node name="ref_mshu8" parent="ref_afsp_A1/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 360.0 -offset_right = 283.0 -offset_bottom = 405.0 -fname = "Модуль ЛА6А45" -rname = "А8" - -[node name="ref_A2A" type="NinePatchRect" parent="ref_afsp_A1"] -layout_mode = 0 -offset_left = 10.0 -offset_top = 645.0 -offset_right = 340.0 -offset_bottom = 1096.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A1/ref_A2A"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 10.0 -offset_top = 5.0 -offset_right = 320.0 -offset_bottom = 35.0 -text = "Панель ЛПА" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A1/ref_A2A"] -layout_mode = 0 -offset_left = 280.0 -offset_top = 5.0 -offset_right = 320.0 -offset_bottom = 35.0 -theme_override_font_sizes/font_size = 22 -text = "A2A" - -[node name="ref_bpch_8s" type="NinePatchRect" parent="ref_afsp_A1/ref_A2A"] -layout_mode = 0 -offset_left = 15.0 -offset_top = 34.0 -offset_right = 315.0 -offset_bottom = 438.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 8.0 -offset_top = 4.0 -offset_right = 293.0 -offset_bottom = 34.0 -text = "БПЧ-8С" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s"] -layout_mode = 0 -offset_left = 253.0 -offset_top = 4.0 -offset_right = 293.0 -offset_bottom = 34.0 -theme_override_font_sizes/font_size = 22 -text = "A17" - -[node name="ref_mshu1" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 214.0 -offset_right = 283.0 -offset_bottom = 259.0 -fname = "Модуль ЛА6А45" -rname = "А5" - -[node name="ref_mshu2" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 79.0 -offset_right = 283.0 -offset_bottom = 124.0 -fname = "Модуль ЛА6А45" -rname = "А2" - -[node name="ref_mshu3" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 124.0 -offset_right = 283.0 -offset_bottom = 169.0 -fname = "Модуль ЛА6А45" -rname = "А3" - -[node name="ref_mshu4" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 169.0 -offset_right = 283.0 -offset_bottom = 214.0 -fname = "Модуль ЛА6А45" -rname = "А4" - -[node name="ref_mshu5" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 259.0 -offset_right = 283.0 -offset_bottom = 304.0 -fname = "Модуль ЛА6А45" -rname = "А6" - -[node name="ref_mshu6" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 34.0 -offset_right = 283.0 -offset_bottom = 79.0 -fname = "Модуль ЛА6А45" -rname = "А1" - -[node name="ref_mshu7" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 304.0 -offset_right = 283.0 -offset_bottom = 349.0 -fname = "Модуль ЛА6А45" -rname = "А7" - -[node name="ref_mshu8" parent="ref_afsp_A1/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 349.0 -offset_right = 283.0 -offset_bottom = 394.0 -fname = "Модуль ЛА6А45" -rname = "А8" - -[node name="ref_afsp_A2" type="NinePatchRect" parent="."] -layout_mode = 0 -offset_left = 394.0 -offset_top = -20.0 -offset_right = 749.0 -offset_bottom = 1090.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A2"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 10.0 -offset_top = 5.0 -offset_right = 320.0 -offset_bottom = 35.0 -text = "АФСП-П" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A2"] -layout_mode = 0 -offset_left = 310.0 -offset_top = 5.0 -offset_right = 350.0 -offset_bottom = 35.0 -theme_override_font_sizes/font_size = 22 -text = "A2" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="geterodin" parent="ref_afsp_A2" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 10.0 -offset_top = 76.0 -offset_right = 340.0 -offset_bottom = 121.0 -fname = "Гетеродин" -rname = "ZZ2" - -[node name="modul_og" parent="ref_afsp_A2" instance=ExtResource("3_7rc2x")] -layout_mode = 2 -offset_left = 10.0 -offset_top = 31.0 -offset_right = 340.0 -offset_bottom = 76.0 -fname = "Модуль ОГ" -rname = "ZZ1" - -[node name="ref_A1A" type="NinePatchRect" parent="ref_afsp_A2"] -layout_mode = 0 -offset_left = 10.0 -offset_top = 142.0 -offset_right = 340.0 -offset_bottom = 622.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A2/ref_A1A"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 10.0 -offset_top = 7.0 -offset_right = 320.0 -offset_bottom = 37.0 -text = "Панель ЛПА" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A2/ref_A1A"] -layout_mode = 0 -offset_left = 280.0 -offset_top = 7.0 -offset_right = 320.0 -offset_bottom = 37.0 -theme_override_font_sizes/font_size = 22 -text = "A1A" - -[node name="ref_bpch_8s" type="NinePatchRect" parent="ref_afsp_A2/ref_A1A"] -layout_mode = 0 -offset_left = 15.0 -offset_top = 45.0 -offset_right = 315.0 -offset_bottom = 465.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 8.0 -offset_top = 5.0 -offset_right = 293.0 -offset_bottom = 35.0 -text = "БПЧ-8С" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s"] -layout_mode = 0 -offset_left = 253.0 -offset_top = 5.0 -offset_right = 293.0 -offset_bottom = 35.0 -theme_override_font_sizes/font_size = 22 -text = "A17" - -[node name="ref_mshu1" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 225.0 -offset_right = 283.0 -offset_bottom = 270.0 -fname = "Модуль ЛА6А45" -rname = "А5" - -[node name="ref_mshu2" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 90.0 -offset_right = 283.0 -offset_bottom = 135.0 -fname = "Модуль ЛА6А45" -rname = "А2" - -[node name="ref_mshu3" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 135.0 -offset_right = 283.0 -offset_bottom = 180.0 -fname = "Модуль ЛА6А45" -rname = "А3" - -[node name="ref_mshu4" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 180.0 -offset_right = 283.0 -offset_bottom = 225.0 -fname = "Модуль ЛА6А45" -rname = "А4" - -[node name="ref_mshu5" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 270.0 -offset_right = 283.0 -offset_bottom = 315.0 -fname = "Модуль ЛА6А45" -rname = "А6" - -[node name="ref_mshu6" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 45.0 -offset_right = 283.0 -offset_bottom = 90.0 -fname = "Модуль ЛА6А45" -rname = "А1" - -[node name="ref_mshu7" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 315.0 -offset_right = 283.0 -offset_bottom = 360.0 -fname = "Модуль ЛА6А45" -rname = "А7" - -[node name="ref_mshu8" parent="ref_afsp_A2/ref_A1A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 360.0 -offset_right = 283.0 -offset_bottom = 405.0 -fname = "Модуль ЛА6А45" -rname = "А8" - -[node name="ref_A2A" type="NinePatchRect" parent="ref_afsp_A2"] -layout_mode = 0 -offset_left = 14.0 -offset_top = 645.0 -offset_right = 344.0 -offset_bottom = 1096.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A2/ref_A2A"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 10.0 -offset_top = 5.0 -offset_right = 320.0 -offset_bottom = 35.0 -text = "Панель ЛПА" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A2/ref_A2A"] -layout_mode = 0 -offset_left = 280.0 -offset_top = 5.0 -offset_right = 320.0 -offset_bottom = 35.0 -theme_override_font_sizes/font_size = 22 -text = "A2A" - -[node name="ref_bpch_8s" type="NinePatchRect" parent="ref_afsp_A2/ref_A2A"] -layout_mode = 0 -offset_left = 15.0 -offset_top = 34.0 -offset_right = 315.0 -offset_bottom = 438.0 -texture = ExtResource("2_won25") -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="lbl_fname" type="Label" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s"] -self_modulate = Color(1, 1, 1, 0.62) -layout_mode = 0 -offset_left = 8.0 -offset_top = 4.0 -offset_right = 293.0 -offset_bottom = 34.0 -text = "БПЧ-8С" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="lbl_rname" type="Label" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s"] -layout_mode = 0 -offset_left = 253.0 -offset_top = 4.0 -offset_right = 293.0 -offset_bottom = 34.0 -theme_override_font_sizes/font_size = 22 -text = "A17" - -[node name="ref_mshu1" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 214.0 -offset_right = 283.0 -offset_bottom = 259.0 -fname = "Модуль ЛА6А45" -rname = "А5" - -[node name="ref_mshu2" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 79.0 -offset_right = 283.0 -offset_bottom = 124.0 -fname = "Модуль ЛА6А45" -rname = "А2" - -[node name="ref_mshu3" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 124.0 -offset_right = 283.0 -offset_bottom = 169.0 -fname = "Модуль ЛА6А45" -rname = "А3" - -[node name="ref_mshu4" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 169.0 -offset_right = 283.0 -offset_bottom = 214.0 -fname = "Модуль ЛА6А45" -rname = "А4" - -[node name="ref_mshu5" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 259.0 -offset_right = 283.0 -offset_bottom = 304.0 -fname = "Модуль ЛА6А45" -rname = "А6" - -[node name="ref_mshu6" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 34.0 -offset_right = 283.0 -offset_bottom = 79.0 -fname = "Модуль ЛА6А45" -rname = "А1" - -[node name="ref_mshu7" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 304.0 -offset_right = 283.0 -offset_bottom = 349.0 -fname = "Модуль ЛА6А45" -rname = "А7" - -[node name="ref_mshu8" parent="ref_afsp_A2/ref_A2A/ref_bpch_8s" instance=ExtResource("3_7rc2x")] -layout_mode = 0 -offset_left = 23.0 -offset_top = 349.0 -offset_right = 283.0 -offset_bottom = 394.0 -fname = "Модуль ЛА6А45" -rname = "А8" diff --git a/scenes/pribor-rtr/pribor-rtr.tscn b/scenes/pribor-rtr/pribor-rtr.tscn index d53af62..7d7c2fb 100644 --- a/scenes/pribor-rtr/pribor-rtr.tscn +++ b/scenes/pribor-rtr/pribor-rtr.tscn @@ -1,8 +1,8 @@ [gd_scene load_steps=5 format=3 uid="uid://5uv1idl3lqet"] -[ext_resource type="Script" path="res://scenes/pribor-rtr/pribor-rtr.gd" id="1_sqyma"] +[ext_resource type="Script" uid="uid://d0jwv5opi3mrl" path="res://scenes/pribor-rtr/pribor-rtr.gd" id="1_sqyma"] [ext_resource type="PackedScene" uid="uid://dnxq870xf6pkh" path="res://scenes/pribor-rtr/bort-rtr.tscn" id="3_tig5m"] -[ext_resource type="Script" path="res://scenes/pribor-rtr/request-rtr.gd" id="6_iwtoo"] +[ext_resource type="Script" uid="uid://bux47vkw71w1t" path="res://scenes/pribor-rtr/request-rtr.gd" id="6_iwtoo"] [sub_resource type="GDScript" id="GDScript_yhnwg"] script/source = "extends Timer diff --git a/scenes/контроль/контроль.gd b/scenes/контроль/контроль.gd index 2046c03..e712cf5 100644 --- a/scenes/контроль/контроль.gd +++ b/scenes/контроль/контроль.gd @@ -6,8 +6,6 @@ extends Panel const PRIBORS_RES = \ { - 'pribor_afsp_l': ['res://scenes/pribor-afsp/pribor-afsp.tscn', 'Контроль исправности прибора АФСП левый'], - 'pribor_afsp_r': ['res://scenes/pribor-afsp/pribor-afsp.tscn', 'Контроль исправности прибора АФСП правый'], 'pribor_prd_k_1': ['res://scenes/pribor-prd-k/pribor-prd-k.tscn', 'Контроль исправности прибора ПРД-К 1'], 'pribor_prd_k_2': ['res://scenes/pribor-prd-k/pribor-prd-k.tscn', 'Контроль исправности прибора ПРД-К 2'], 'pribor_prd_k_3': ['res://scenes/pribor-prd-k/pribor-prd-k.tscn', 'Контроль исправности прибора ПРД-К 3'], @@ -30,12 +28,11 @@ func _ready(): var group = ButtonGroup.new() for k in PRIBORS_RES: var pribor_node = get_node(k) - assert(pribor_node) var pribor_path = PRIBORS_RES[k][0] var header_text = PRIBORS_RES[k][1] pribor_node.set_button_group(group) pribor_node.connect('button_down', Callable(self, 'on_pribor_press').bind(pribor_path, header_text, pribor_node)) - var conn_node = pribor_node.get_node("connect_pribor") + var conn_node = pribor_node.get_node('connect_pribor') var pribor_meta = pribor_node.get_meta('unit_name', []) var pribor_proc = pribor_node.get_meta('online_proc', '') if pribor_proc == '': diff --git a/scenes/контроль/контроль.tscn b/scenes/контроль/контроль.tscn index c62b08c..042f61c 100644 --- a/scenes/контроль/контроль.tscn +++ b/scenes/контроль/контроль.tscn @@ -1,10 +1,9 @@ -[gd_scene load_steps=16 format=3 uid="uid://lwmw4egynmd1"] +[gd_scene load_steps=15 format=3 uid="uid://lwmw4egynmd1"] [ext_resource type="Script" uid="uid://b0wcp76bbl2jx" path="res://scenes/контроль/контроль.gd" id="1_x5d6w"] [ext_resource type="Texture2D" uid="uid://bar8k5qef7kch" path="res://data/УФ.png" id="2_0nvm1"] [ext_resource type="Script" uid="uid://bj4nndrurbunl" path="res://scenes/контроль/кнопка-прибора.gd" id="3_4pt7j"] [ext_resource type="Texture2D" uid="uid://dkqlvd750pplc" path="res://data/СПТ.png" id="3_hhadv"] -[ext_resource type="Texture2D" uid="uid://b4isaggma6q3" path="res://data/Грани22.png" id="4_l0nc7"] [ext_resource type="Texture2D" uid="uid://b0o8jhb5jbrev" path="res://data/рамка-1.png" id="4_rasbe"] [ext_resource type="Texture2D" uid="uid://bdlbqs88bki8x" path="res://data/connect-a.png" id="5_c621m"] [ext_resource type="Texture2D" uid="uid://d2jxmtd6n5jd1" path="res://data/Щ3.png" id="5_kvnex"] @@ -93,10 +92,11 @@ script = ExtResource("11_u7tym") [node name="pribor_rtr" type="TextureButton" parent="." groups=["pribor_buttons"]] editor_description = "Кнопка для выбора прибора." layout_mode = 0 -offset_left = 1197.0 -offset_top = 289.0 -offset_right = 1300.0 -offset_bottom = 445.0 +offset_left = 992.0 +offset_top = 264.0 +offset_right = 1504.0 +offset_bottom = 420.0 +pivot_offset = Vector2(-10, -65) size_flags_horizontal = 15 size_flags_vertical = 15 toggle_mode = true @@ -108,21 +108,41 @@ state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(0.65, 0.0715, 0.0 [node name="label" type="Label" parent="pribor_rtr"] layout_mode = 0 -offset_left = 9.0 -offset_top = -38.0 -offset_right = 92.0 -offset_bottom = -19.0 +offset_left = 217.0 +offset_top = -53.0 +offset_right = 300.0 +offset_bottom = -34.0 text = "РТР" horizontal_alignment = 1 vertical_alignment = 1 +[node name="label-l" type="Label" parent="pribor_rtr"] +layout_mode = 0 +offset_left = 47.0 +offset_top = -18.0 +offset_right = 130.0 +offset_bottom = 1.0 +text = "АФСП левый" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="label-r" type="Label" parent="pribor_rtr"] +layout_mode = 0 +offset_left = 377.0 +offset_top = -18.0 +offset_right = 460.0 +offset_bottom = 1.0 +text = "АФСП правый" +horizontal_alignment = 1 +vertical_alignment = 1 + [node name="frame" type="NinePatchRect" parent="pribor_rtr"] visible = false self_modulate = Color(0.890196, 0.486275, 0.196078, 1) layout_mode = 0 offset_left = -17.0 -offset_top = -29.0 -offset_right = 123.0 +offset_top = -69.0 +offset_right = 528.0 offset_bottom = 171.0 texture = ExtResource("4_rasbe") region_rect = Rect2(-3, -3, 89, 89) @@ -134,118 +154,12 @@ patch_margin_bottom = 16 [node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_rtr"] modulate = Color(0.498039, 0.498039, 0.498039, 1) light_mask = 3 -position = Vector2(49, -10) +position = Vector2(259, -20) scale = Vector2(0.615385, 0.625) sprite_frames = SubResource("SpriteFrames_foasq") frame_progress = 0.72355 script = ExtResource("11_u7tym") -[node name="pribor_afsp_l" type="TextureButton" parent="." groups=["pribor_buttons"]] -editor_description = "Кнопка для выбора прибора." -layout_mode = 0 -offset_left = 996.0 -offset_top = 291.0 -offset_right = 1829.0 -offset_bottom = 931.0 -scale = Vector2(0.2, 0.2) -size_flags_horizontal = 15 -size_flags_vertical = 15 -toggle_mode = true -action_mode = 0 -texture_normal = ExtResource("4_l0nc7") -stretch_mode = 4 -script = ExtResource("3_4pt7j") -state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(0.65, 0.0715, 0.0715, 1)] - -[node name="label" type="Label" parent="pribor_afsp_l"] -layout_mode = 0 -offset_left = 20.0 -offset_top = -175.0 -offset_right = 198.0 -offset_bottom = -156.0 -scale = Vector2(4.478, 5) -text = "АФСП левый борт" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="frame" type="NinePatchRect" parent="pribor_afsp_l"] -visible = false -self_modulate = Color(0.890196, 0.486275, 0.196078, 1) -layout_mode = 0 -offset_left = -80.0003 -offset_top = -130.0 -offset_right = 110.0 -offset_bottom = 34.9998 -scale = Vector2(5, 5) -texture = ExtResource("4_rasbe") -region_rect = Rect2(-3, -3, 89, 89) -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_afsp_l"] -modulate = Color(0.498039, 0.498039, 0.498039, 1) -light_mask = 3 -position = Vector2(410, -30) -scale = Vector2(3.23077, 3.28125) -sprite_frames = SubResource("SpriteFrames_foasq") -frame_progress = 0.72355 -script = ExtResource("11_u7tym") - -[node name="pribor_afsp_r" type="TextureButton" parent="." groups=["pribor_buttons"]] -editor_description = "Кнопка для выбора прибора." -layout_mode = 0 -offset_left = 1342.0 -offset_top = 291.0 -offset_right = 2175.0 -offset_bottom = 931.0 -scale = Vector2(0.2, 0.2) -size_flags_horizontal = 15 -size_flags_vertical = 15 -toggle_mode = true -action_mode = 0 -texture_normal = ExtResource("4_l0nc7") -stretch_mode = 4 -script = ExtResource("3_4pt7j") -state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(0.65, 0.0715, 0.0715, 1)] - -[node name="label" type="Label" parent="pribor_afsp_r"] -layout_mode = 0 -offset_left = -20.0 -offset_top = -180.0 -offset_right = 168.0 -offset_bottom = -161.0 -scale = Vector2(4.65, 5) -text = "АФСП правый борт" -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="frame" type="NinePatchRect" parent="pribor_afsp_r"] -visible = false -self_modulate = Color(0.890196, 0.486275, 0.196078, 1) -layout_mode = 0 -offset_left = -60.0 -offset_top = -130.0 -offset_right = 130.0 -offset_bottom = 35.0 -scale = Vector2(5, 5) -texture = ExtResource("4_rasbe") -region_rect = Rect2(-3, -3, 89, 89) -patch_margin_left = 16 -patch_margin_top = 16 -patch_margin_right = 16 -patch_margin_bottom = 16 - -[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_afsp_r"] -modulate = Color(0.498039, 0.498039, 0.498039, 1) -light_mask = 3 -position = Vector2(410, -30) -scale = Vector2(3.23077, 3.28125) -sprite_frames = SubResource("SpriteFrames_foasq") -frame_progress = 0.72355 -script = ExtResource("11_u7tym") - [node name="pribor_uyep" type="TextureButton" parent="." groups=["pribor_buttons"]] editor_description = "Кнопка для выбора прибора." layout_mode = 0 @@ -989,8 +903,6 @@ text = "Сбой" [connection signal="toggled" from="pribor_uf" to="pribor_uf" method="_on_toggled"] [connection signal="toggled" from="pribor_rtr" to="pribor_rtr" method="_on_toggled"] -[connection signal="toggled" from="pribor_afsp_l" to="pribor_afsp_l" method="_on_toggled"] -[connection signal="toggled" from="pribor_afsp_r" to="pribor_afsp_r" method="_on_toggled"] [connection signal="toggled" from="pribor_uyep" to="pribor_uyep" method="_on_toggled"] [connection signal="toggled" from="pribor_prd_v_2" to="pribor_prd_v_2" method="_on_toggled"] [connection signal="toggled" from="pribor_prd_n_2" to="pribor_prd_n_2" method="_on_toggled"]