diff --git a/data/disconnect_1.png b/data/disconnect_1.png index b10adfa..55a3b77 100644 Binary files a/data/disconnect_1.png and b/data/disconnect_1.png differ diff --git a/scenes/контроль/контроль.tscn b/scenes/контроль/контроль.tscn index d7b9672..5a9b813 100644 --- a/scenes/контроль/контроль.tscn +++ b/scenes/контроль/контроль.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=12 format=3 uid="uid://lwmw4egynmd1"] +[gd_scene load_steps=15 format=3 uid="uid://lwmw4egynmd1"] [ext_resource type="Script" path="res://scenes/контроль/контроль.gd" id="1_x5d6w"] [ext_resource type="Texture2D" uid="uid://bar8k5qef7kch" path="res://data/УФ.png" id="2_0nvm1"] @@ -6,12 +6,28 @@ [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_1.png" id="5_c621m"] [ext_resource type="Texture2D" uid="uid://d2jxmtd6n5jd1" path="res://data/Щ3.png" id="5_kvnex"] [ext_resource type="Texture2D" uid="uid://bos68thpqqvn" path="res://data/ПРД.png" id="6_i1yfn"] [ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="7_6j01w"] +[ext_resource type="Texture2D" uid="uid://u3tnejvpm8it" path="res://data/disconnect_1.png" id="8_gs2be"] [ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="8_isjua"] [ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="9_ll0vs"] +[sub_resource type="SpriteFrames" id="SpriteFrames_foasq"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("8_gs2be") +}, { +"duration": 1.0, +"texture": ExtResource("5_c621m") +}], +"loop": true, +"name": &"default", +"speed": 5.0 +}] + [node name="Контроль" type="Panel"] anchors_preset = 15 anchor_right = 1.0 @@ -40,9 +56,9 @@ state_colors = [Color(1, 1, 1, 1), Color(0, 0.74, 0.37, 1), Color(0.854902, 0.07 [node name="label" type="Label" parent="pribor_uf"] layout_mode = 0 offset_left = 15.0 -offset_top = -15.0 +offset_top = -34.0 offset_right = 91.0 -offset_bottom = 4.0 +offset_bottom = -15.0 text = "УФ" horizontal_alignment = 1 vertical_alignment = 1 @@ -62,6 +78,14 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_uf"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(52, -6) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_rtr" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 @@ -80,9 +104,10 @@ 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 = 6.0 -offset_top = -19.0 -offset_right = 89.0 +offset_left = 9.0 +offset_top = -38.0 +offset_right = 92.0 +offset_bottom = -19.0 text = "РТР" horizontal_alignment = 1 vertical_alignment = 1 @@ -102,13 +127,21 @@ patch_margin_top = 16 patch_margin_right = 16 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) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_afsp_l" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 offset_left = 996.0 -offset_top = 301.0 +offset_top = 291.0 offset_right = 1829.0 -offset_bottom = 941.0 +offset_bottom = 931.0 scale = Vector2(0.2, 0.2) size_flags_horizontal = 15 size_flags_vertical = 15 @@ -122,9 +155,9 @@ 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_afsp_l"] layout_mode = 0 offset_left = 20.0 -offset_top = -95.0 +offset_top = -175.0 offset_right = 198.0 -offset_bottom = -76.0 +offset_bottom = -156.0 scale = Vector2(4.478, 5) text = "АФСП левый борт" horizontal_alignment = 1 @@ -146,13 +179,21 @@ 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 + [node name="pribor_afsp_r" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 offset_left = 1342.0 -offset_top = 301.0 +offset_top = 291.0 offset_right = 2175.0 -offset_bottom = 941.0 +offset_bottom = 931.0 scale = Vector2(0.2, 0.2) size_flags_horizontal = 15 size_flags_vertical = 15 @@ -166,9 +207,9 @@ 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_afsp_r"] layout_mode = 0 offset_left = -20.0 -offset_top = -95.0 +offset_top = -180.0 offset_right = 168.0 -offset_bottom = -76.0 +offset_bottom = -161.0 scale = Vector2(4.65, 5) text = "АФСП правый борт" horizontal_alignment = 1 @@ -190,12 +231,20 @@ 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 + [node name="pribor_uyep" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 -offset_left = 1194.0 +offset_left = 1201.0 offset_top = 739.0 -offset_right = 1288.0 +offset_right = 1295.0 offset_bottom = 925.0 size_flags_horizontal = 15 size_flags_vertical = 15 @@ -208,10 +257,10 @@ 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_uyep"] layout_mode = 0 -offset_left = 29.8566 -offset_top = -21.3276 -offset_right = 69.8566 -offset_bottom = -2.32759 +offset_left = 26.8566 +offset_top = -38.3276 +offset_right = 66.8566 +offset_bottom = -19.3276 text = "У-ЭП" horizontal_alignment = 1 vertical_alignment = 1 @@ -231,13 +280,21 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_uyep"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(45, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.872305 + [node name="pribor_prd_v_2" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 offset_left = 960.0 -offset_top = 480.0 +offset_top = 475.0 offset_right = 1037.0 -offset_bottom = 596.0 +offset_bottom = 591.0 size_flags_horizontal = 15 size_flags_vertical = 15 toggle_mode = true @@ -251,8 +308,9 @@ metadata/unit_name = "уарэп-яу07-2в" [node name="label" type="Label" parent="pribor_prd_v_2"] layout_mode = 0 offset_left = 14.0 -offset_top = -19.0 +offset_top = -38.0 offset_right = 66.0 +offset_bottom = -19.0 text = "ПРД В2" horizontal_alignment = 1 vertical_alignment = 1 @@ -272,6 +330,14 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_2"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(40, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_n_2" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 @@ -291,9 +357,10 @@ metadata/unit_name = "уарэп-яу07-2н" [node name="label" type="Label" parent="pribor_prd_n_2"] layout_mode = 0 -offset_left = 13.0 -offset_top = -19.0 -offset_right = 65.0 +offset_left = 15.0 +offset_top = -38.0 +offset_right = 67.0 +offset_bottom = -19.0 theme_override_colors/font_outline_color = Color(0, 0, 0, 1) theme_override_constants/outline_size = 0 text = "ПРД Н2" @@ -315,13 +382,21 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_2"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(40, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_k_2" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 offset_left = 1077.0 -offset_top = 479.0 +offset_top = 474.0 offset_right = 1154.0 -offset_bottom = 595.0 +offset_bottom = 590.0 size_flags_horizontal = 15 size_flags_vertical = 15 toggle_mode = true @@ -334,9 +409,10 @@ metadata/unit_name = "уарэп-яу07-2к" [node name="label" type="Label" parent="pribor_prd_k_2"] layout_mode = 0 -offset_left = 14.0 -offset_top = -19.0 -offset_right = 66.0 +offset_left = 17.0 +offset_top = -38.0 +offset_right = 69.0 +offset_bottom = -19.0 text = "ПРД К2" horizontal_alignment = 1 vertical_alignment = 1 @@ -356,6 +432,14 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_2"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(43, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_v_3" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 @@ -376,10 +460,10 @@ metadata/unit_name = "уарэп-яу07-3в" [node name="label" type="Label" parent="pribor_prd_v_3"] layout_mode = 0 -offset_left = 13.0 -offset_top = -20.0 -offset_right = 65.0 -offset_bottom = -1.0 +offset_left = 9.0 +offset_top = -38.0 +offset_right = 61.0 +offset_bottom = -19.0 text = "ПРД В3" horizontal_alignment = 1 vertical_alignment = 1 @@ -399,12 +483,20 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_3"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(34, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_n_3" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 -offset_left = 1458.0 +offset_left = 1457.0 offset_top = 798.0 -offset_right = 1535.0 +offset_right = 1534.0 offset_bottom = 914.0 size_flags_horizontal = 15 size_flags_vertical = 15 @@ -419,9 +511,10 @@ metadata/unit_name = "уарэп-яу07-3н" [node name="label" type="Label" parent="pribor_prd_n_3"] layout_mode = 0 -offset_left = 12.0 -offset_top = -19.0 -offset_right = 64.0 +offset_left = 8.0 +offset_top = -38.0 +offset_right = 60.0 +offset_bottom = -19.0 text = "ПРД Н3" horizontal_alignment = 1 vertical_alignment = 1 @@ -441,12 +534,20 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_3"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(33, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_k_3" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 -offset_left = 1343.0 +offset_left = 1344.0 offset_top = 635.0 -offset_right = 1420.0 +offset_right = 1421.0 offset_bottom = 751.0 size_flags_horizontal = 15 size_flags_vertical = 15 @@ -461,10 +562,10 @@ metadata/unit_name = "уарэп-яу07-3к" [node name="label" type="Label" parent="pribor_prd_k_3"] layout_mode = 0 -offset_left = 13.0 -offset_top = -18.0 -offset_right = 65.0 -offset_bottom = 1.0 +offset_left = 9.0 +offset_top = -38.0 +offset_right = 61.0 +offset_bottom = -19.0 text = "ПРД К3" horizontal_alignment = 1 vertical_alignment = 1 @@ -484,13 +585,21 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_3"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(35, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_v_1" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 offset_left = 1457.0 -offset_top = 480.0 +offset_top = 475.0 offset_right = 1534.0 -offset_bottom = 596.0 +offset_bottom = 591.0 size_flags_horizontal = 15 size_flags_vertical = 15 toggle_mode = true @@ -504,9 +613,10 @@ metadata/unit_name = "уарэп-яу07-1в" [node name="label" type="Label" parent="pribor_prd_v_1"] layout_mode = 0 -offset_left = 10.0 -offset_top = -19.0 -offset_right = 50.0 +offset_left = 8.0 +offset_top = -38.0 +offset_right = 60.0 +offset_bottom = -19.0 text = "ПРД В1" horizontal_alignment = 1 vertical_alignment = 1 @@ -526,12 +636,20 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_1"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(34, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_n_1" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 -offset_left = 1455.0 +offset_left = 1457.0 offset_top = 634.0 -offset_right = 1532.0 +offset_right = 1534.0 offset_bottom = 750.0 size_flags_horizontal = 15 size_flags_vertical = 15 @@ -546,9 +664,10 @@ metadata/unit_name = "уарэп-яу07-1н" [node name="label" type="Label" parent="pribor_prd_n_1"] layout_mode = 0 -offset_left = 12.0 -offset_top = -19.0 -offset_right = 64.0 +offset_left = 8.0 +offset_top = -38.0 +offset_right = 60.0 +offset_bottom = -19.0 text = "ПРД Н1" horizontal_alignment = 1 vertical_alignment = 1 @@ -568,13 +687,21 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_1"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(35, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_k_1" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 offset_left = 1344.0 -offset_top = 478.0 +offset_top = 473.0 offset_right = 1421.0 -offset_bottom = 594.0 +offset_bottom = 589.0 size_flags_horizontal = 15 size_flags_vertical = 15 toggle_mode = true @@ -588,9 +715,10 @@ metadata/unit_name = "уарэп-яу07-1к" [node name="label" type="Label" parent="pribor_prd_k_1"] layout_mode = 0 -offset_left = 12.0 -offset_top = -19.0 -offset_right = 64.0 +offset_left = 9.0 +offset_top = -38.0 +offset_right = 61.0 +offset_bottom = -19.0 text = "ПРД К1" horizontal_alignment = 1 vertical_alignment = 1 @@ -610,13 +738,21 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_1"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(35, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_v_4" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 offset_left = 1077.0 -offset_top = 796.0 +offset_top = 797.0 offset_right = 1154.0 -offset_bottom = 912.0 +offset_bottom = 913.0 size_flags_horizontal = 15 size_flags_vertical = 15 toggle_mode = true @@ -629,10 +765,10 @@ metadata/unit_name = "уарэп-яу07-4в" [node name="label" type="Label" parent="pribor_prd_v_4"] layout_mode = 0 -offset_left = 13.0 -offset_top = -20.0 -offset_right = 65.0 -offset_bottom = -1.0 +offset_left = 17.0 +offset_top = -38.0 +offset_right = 69.0 +offset_bottom = -19.0 text = "ПРД В4" horizontal_alignment = 1 vertical_alignment = 1 @@ -652,13 +788,21 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_4"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(41, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_n_4" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 -offset_left = 961.0 -offset_top = 794.0 -offset_right = 1038.0 -offset_bottom = 910.0 +offset_left = 960.0 +offset_top = 797.0 +offset_right = 1037.0 +offset_bottom = 913.0 size_flags_horizontal = 15 size_flags_vertical = 15 toggle_mode = true @@ -671,9 +815,10 @@ metadata/unit_name = "уарэп-яу07-4н" [node name="label" type="Label" parent="pribor_prd_n_4"] layout_mode = 0 -offset_left = 13.0 -offset_top = -19.0 -offset_right = 65.0 +offset_left = 14.0 +offset_top = -38.0 +offset_right = 66.0 +offset_bottom = -19.0 text = "ПРД Н4" horizontal_alignment = 1 vertical_alignment = 1 @@ -693,6 +838,14 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_4"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(40, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="pribor_prd_k_4" type="TextureButton" parent="."] editor_description = "Кнопка для выбора прибора." layout_mode = 0 @@ -712,9 +865,10 @@ metadata/unit_name = "уарэп-яу07-4к" [node name="label" type="Label" parent="pribor_prd_k_4"] layout_mode = 0 -offset_left = 13.0 -offset_top = -19.0 -offset_right = 65.0 +offset_left = 17.0 +offset_top = -38.0 +offset_right = 69.0 +offset_bottom = -19.0 text = "ПРД К4" horizontal_alignment = 1 vertical_alignment = 1 @@ -734,6 +888,14 @@ patch_margin_top = 16 patch_margin_right = 16 patch_margin_bottom = 16 +[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_4"] +modulate = Color(0.498039, 0.498039, 0.498039, 1) +light_mask = 3 +position = Vector2(42, -10) +scale = Vector2(0.615385, 0.625) +sprite_frames = SubResource("SpriteFrames_foasq") +frame_progress = 0.72355 + [node name="mnemo_container" type="Panel" parent="."] layout_mode = 0