diff --git a/scenes/pribor-rtr/pribor-rtr.tscn b/scenes/pribor-rtr/pribor-rtr.tscn index 39ef630..6641a0c 100644 --- a/scenes/pribor-rtr/pribor-rtr.tscn +++ b/scenes/pribor-rtr/pribor-rtr.tscn @@ -13,9 +13,9 @@ script = ExtResource("1_ab82m") [node name="lbl_header" type="Label" parent="."] layout_mode = 0 -offset_left = 20.0 -offset_right = 620.0 -offset_bottom = 40.0 +offset_left = 25.0 +offset_right = 595.0 +offset_bottom = 35.0 theme_override_font_sizes/font_size = 22 text = "Контроль исправности прибора" horizontal_alignment = 1 @@ -24,9 +24,9 @@ vertical_alignment = 1 [node name="konverter" type="NinePatchRect" parent="."] layout_mode = 0 offset_left = 20.0 -offset_top = 880.0 -offset_right = 620.0 -offset_bottom = 1160.0 +offset_top = 890.0 +offset_right = 600.0 +offset_bottom = 1155.0 texture = ExtResource("2_02opt") patch_margin_left = 16 patch_margin_top = 16 @@ -36,18 +36,20 @@ patch_margin_bottom = 16 [node name="lbl_fname" type="Label" parent="konverter"] self_modulate = Color(1, 1, 1, 0.62) layout_mode = 0 -offset_right = 600.0 -offset_bottom = 40.0 +offset_left = 5.0 +offset_top = 5.0 +offset_right = 575.0 +offset_bottom = 25.0 text = "Конвертер 1000...6000 МГц" horizontal_alignment = 1 vertical_alignment = 1 [node name="grid" type="GridContainer" parent="konverter"] layout_mode = 2 -offset_left = 20.0 -offset_top = 40.0 -offset_right = 580.0 -offset_bottom = 270.0 +offset_left = 10.0 +offset_top = 25.0 +offset_right = 570.0 +offset_bottom = 257.0 columns = 4 [node name="kanal1" parent="konverter/grid" instance=ExtResource("2_v25ql")] @@ -197,9 +199,9 @@ fname = "Канал 8" [node name="antenna1" type="NinePatchRect" parent="."] layout_mode = 0 offset_left = 20.0 -offset_top = 40.0 -offset_right = 620.0 -offset_bottom = 460.0 +offset_top = 80.0 +offset_right = 600.0 +offset_bottom = 485.0 texture = ExtResource("2_02opt") patch_margin_left = 16 patch_margin_top = 16 @@ -209,18 +211,20 @@ patch_margin_bottom = 16 [node name="lbl_fname" type="Label" parent="antenna1"] self_modulate = Color(1, 1, 1, 0.62) layout_mode = 0 -offset_right = 600.0 -offset_bottom = 40.0 +offset_left = 5.0 +offset_top = 5.0 +offset_right = 575.0 +offset_bottom = 25.0 text = "Антенна 400...1000 МГц" horizontal_alignment = 1 vertical_alignment = 1 [node name="grid" type="GridContainer" parent="antenna1"] layout_mode = 2 -offset_left = 20.0 -offset_top = 34.0 -offset_right = 574.0 -offset_bottom = 406.0 +offset_left = 10.0 +offset_top = 25.0 +offset_right = 570.0 +offset_bottom = 397.0 columns = 4 [node name="yelement1" parent="antenna1/grid" instance=ExtResource("4_2tw5p")] @@ -354,9 +358,9 @@ fname = "Элемент 16" [node name="antenna2" type="NinePatchRect" parent="."] layout_mode = 0 offset_left = 20.0 -offset_top = 460.0 -offset_right = 620.0 -offset_bottom = 880.0 +offset_top = 485.0 +offset_right = 600.0 +offset_bottom = 890.0 texture = ExtResource("2_02opt") patch_margin_left = 16 patch_margin_top = 16 @@ -366,18 +370,20 @@ patch_margin_bottom = 16 [node name="lbl_fname" type="Label" parent="antenna2"] self_modulate = Color(1, 1, 1, 0.62) layout_mode = 0 -offset_right = 600.0 -offset_bottom = 40.0 +offset_left = 5.0 +offset_top = 5.0 +offset_right = 575.0 +offset_bottom = 25.0 text = "Антенна 1000...6000 МГц" horizontal_alignment = 1 vertical_alignment = 1 [node name="grid" type="GridContainer" parent="antenna2"] layout_mode = 2 -offset_left = 20.0 -offset_top = 34.0 -offset_right = 574.0 -offset_bottom = 406.0 +offset_left = 10.0 +offset_top = 25.0 +offset_right = 570.0 +offset_bottom = 397.0 columns = 4 [node name="yelement1" parent="antenna2/grid" instance=ExtResource("4_2tw5p")] @@ -510,10 +516,10 @@ fname = "Элемент 16" [node name="rpu" parent="." instance=ExtResource("2_v25ql")] layout_mode = 2 -offset_left = 620.0 -offset_top = 1040.0 -offset_right = 860.0 -offset_bottom = 1160.0 +offset_left = 605.0 +offset_top = 1035.0 +offset_right = 845.0 +offset_bottom = 1155.0 value_name0 = "t, °C" value_name1 = "U, В" value_name2 = "CAN" @@ -524,10 +530,10 @@ fname = "Приёмник 20...1000 МГц" [node name="gen" parent="." instance=ExtResource("2_v25ql")] layout_mode = 2 -offset_left = 620.0 -offset_top = 920.0 -offset_right = 860.0 -offset_bottom = 1034.0 +offset_left = 605.0 +offset_top = 915.0 +offset_right = 845.0 +offset_bottom = 1029.0 value_name0 = "t, °C" value_name1 = "U, В" value_name2 = "CAN" @@ -538,16 +544,16 @@ fname = "Генератор" [node name="dsp" parent="." instance=ExtResource("5_mxmk0")] layout_mode = 0 -offset_left = 620.0 -offset_top = 878.0 -offset_right = 860.0 -offset_bottom = 920.0 +offset_left = 315.0 +offset_top = 30.0 +offset_right = 600.0 +offset_bottom = 80.0 fname = "Плата ЦОС" [node name="adc" parent="." instance=ExtResource("5_mxmk0")] layout_mode = 0 -offset_left = 620.0 -offset_top = 820.0 -offset_right = 860.0 -offset_bottom = 862.0 +offset_left = 20.0 +offset_top = 30.0 +offset_right = 305.0 +offset_bottom = 80.0 fname = "Плата АЦП" diff --git a/scenes/pribor-uf/pribor-uf.tscn b/scenes/pribor-uf/pribor-uf.tscn index 40b0b63..b3296bb 100644 --- a/scenes/pribor-uf/pribor-uf.tscn +++ b/scenes/pribor-uf/pribor-uf.tscn @@ -23,7 +23,7 @@ patch_margin_bottom = 16 [node name="ref_bu1" type="NinePatchRect" parent="ref_uf"] layout_mode = 0 -offset_left = 281.0 +offset_left = 282.0 offset_top = 138.0 offset_right = 591.0 offset_bottom = 468.0 @@ -35,22 +35,20 @@ patch_margin_bottom = 16 [node name="ref_A13" parent="ref_uf/ref_bu1" instance=ExtResource("3_dp78y")] offset_left = 7.0 -offset_top = 58.0 +offset_top = 60.0 offset_right = 59.0 offset_bottom = 322.0 -self_size = Vector2i(52, 264) +self_size = Vector2i(52, 262) fname = "MKEG/C" rname = "A13" -state = 1 [node name="ref_A" parent="ref_uf/ref_bu1" instance=ExtResource("3_dp78y")] offset_left = 59.0 -offset_top = 57.0 +offset_top = 60.0 offset_right = 302.0 offset_bottom = 322.0 -self_size = Vector2i(243, 265) +self_size = Vector2i(243, 262) fname = "ВК-110" -state = 1 [node name="А8" type="Label" parent="ref_uf/ref_bu1"] layout_mode = 0 @@ -70,10 +68,10 @@ text = "БУ-1" [node name="ref_kassetav13" type="NinePatchRect" parent="ref_uf"] layout_mode = 0 -offset_left = 8.0 -offset_top = 517.0 -offset_right = 597.0 -offset_bottom = 857.0 +offset_left = 12.0 +offset_top = 513.0 +offset_right = 601.0 +offset_bottom = 852.0 texture = ExtResource("2_ho0da") patch_margin_left = 16 patch_margin_top = 16 @@ -82,83 +80,75 @@ patch_margin_bottom = 16 [node name="ref_A18" parent="ref_uf/ref_kassetav13" instance=ExtResource("3_dp78y")] offset_left = 6.0 -offset_top = 64.0 +offset_top = 65.0 offset_right = 165.0 -offset_bottom = 328.0 -self_size = Vector2i(159, 264) +offset_bottom = 325.0 +self_size = Vector2i(159, 260) fname = "ESW-6U16TP" rname = "A18" -state = 1 [node name="ref_A7" parent="ref_uf/ref_kassetav13" instance=ExtResource("3_dp78y")] offset_left = 166.0 -offset_top = 63.0 +offset_top = 65.0 offset_right = 218.0 -offset_bottom = 327.0 -self_size = Vector2i(52, 264) +offset_bottom = 325.0 +self_size = Vector2i(52, 260) fname = "ЯУ-07Б" rname = "A7" -state = 1 [node name="ref_A2" parent="ref_uf/ref_kassetav13" instance=ExtResource("3_dp78y")] offset_left = 218.0 -offset_top = 63.0 +offset_top = 65.0 offset_right = 270.0 -offset_bottom = 327.0 -self_size = Vector2i(52, 264) +offset_bottom = 325.0 +self_size = Vector2i(52, 260) fname = "КЭМС-Б" rname = "A2" -state = 1 [node name="ref_A4" parent="ref_uf/ref_kassetav13" instance=ExtResource("3_dp78y")] offset_left = 269.0 -offset_top = 63.0 +offset_top = 65.0 offset_right = 321.0 -offset_bottom = 327.0 -self_size = Vector2i(52, 264) +offset_bottom = 325.0 +self_size = Vector2i(52, 260) fname = "КЭМС-Б1" rname = "A4" -state = 1 [node name="ref_A5" parent="ref_uf/ref_kassetav13" instance=ExtResource("3_dp78y")] offset_left = 322.0 -offset_top = 63.0 +offset_top = 65.0 offset_right = 374.0 -offset_bottom = 327.0 -self_size = Vector2i(52, 264) +offset_bottom = 325.0 +self_size = Vector2i(52, 260) fname = "ЭМС-Б" rname = "A5" -state = 1 [node name="ref_A6" parent="ref_uf/ref_kassetav13" instance=ExtResource("3_dp78y")] offset_left = 374.0 -offset_top = 63.0 +offset_top = 65.0 offset_right = 426.0 -offset_bottom = 327.0 -self_size = Vector2i(52, 264) +offset_bottom = 325.0 +self_size = Vector2i(52, 260) fname = "ЭМС-Б" rname = "A6" -state = 1 [node name="ref_A3" parent="ref_uf/ref_kassetav13" instance=ExtResource("3_dp78y")] offset_left = 427.0 -offset_top = 63.0 +offset_top = 65.0 offset_right = 532.0 -offset_bottom = 327.0 -self_size = Vector2i(105, 264) +offset_bottom = 325.0 +self_size = Vector2i(105, 260) fname = "ИП-220-5Б" rname = "A3" -state = 1 [node name="ref_A8" parent="ref_uf/ref_kassetav13" instance=ExtResource("3_dp78y")] offset_left = 531.0 -offset_top = 63.0 +offset_top = 65.0 offset_right = 582.0 -offset_bottom = 327.0 -self_size = Vector2i(51, 264) +offset_bottom = 325.0 +self_size = Vector2i(51, 260) fname = "ИП220-27Б" rname = "A12" -state = 1 [node name="А1" type="Label" parent="ref_uf/ref_kassetav13"] layout_mode = 0 diff --git a/scenes/pribor-uyep/pribor-uyep.tscn b/scenes/pribor-uyep/pribor-uyep.tscn index a56a8a6..18c747b 100644 --- a/scenes/pribor-uyep/pribor-uyep.tscn +++ b/scenes/pribor-uyep/pribor-uyep.tscn @@ -24,32 +24,29 @@ patch_margin_bottom = 16 [node name="ref_A1" parent="." instance=ExtResource("2_cf6tc")] offset_left = 175.0 offset_top = 529.0 -offset_right = 332.0 +offset_right = 335.0 offset_bottom = 984.0 -self_size = Vector2i(157, 455) +self_size = Vector2i(160, 455) fname = "МАА150-1С27" rname = "A1" -state = 1 [node name="ref_A2" parent="." instance=ExtResource("2_cf6tc")] offset_left = 496.0 offset_top = 531.0 -offset_right = 631.0 +offset_right = 636.0 offset_bottom = 988.0 -self_size = Vector2i(135, 457) +self_size = Vector2i(140, 457) fname = "МАА150-1С27" rname = "A2" -state = 1 [node name="ref_A3" parent="." instance=ExtResource("2_cf6tc")] offset_left = 377.0 offset_top = 531.0 -offset_right = 468.0 +offset_right = 467.0 offset_bottom = 985.0 -self_size = Vector2i(91, 454) +self_size = Vector2i(90, 454) fname = "МАА150-1С27" rname = "A2" -state = 1 [node name="lbl_header" type="Label" parent="."] layout_mode = 0 diff --git a/scenes/контроль/блок-а.tscn b/scenes/контроль/блок-а.tscn index fb195f2..2e807ad 100644 --- a/scenes/контроль/блок-а.tscn +++ b/scenes/контроль/блок-а.tscn @@ -130,10 +130,8 @@ extends PanelContainer @export var state: int: set(v): - v = 0 if v < 0 else v - v %= textures.size() - state = v - $margin/vbox/grid0/state.texture = textures[v] + state = 0 if v < 0 else v % textures.size() + $margin/vbox/grid0/state.texture = textures[state] get: return state diff --git a/scenes/контроль/контроль.gd b/scenes/контроль/контроль.gd index d7fb65b..562cb76 100644 --- a/scenes/контроль/контроль.gd +++ b/scenes/контроль/контроль.gd @@ -27,11 +27,13 @@ const PRIBORS_RES = \ 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)) log.info('Модуль контроля работы готов') diff --git a/scenes/контроль/контроль.tscn b/scenes/контроль/контроль.tscn index ef2ac0f..040dff4 100644 --- a/scenes/контроль/контроль.tscn +++ b/scenes/контроль/контроль.tscn @@ -1,9 +1,11 @@ -[gd_scene load_steps=10 format=3 uid="uid://lwmw4egynmd1"] +[gd_scene load_steps=12 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"] +[ext_resource type="Script" 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://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"] @@ -21,33 +23,67 @@ metadata/_edit_lock_ = true [node name="pribor_uf" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1206.0 -offset_top = 502.0 -offset_right = 1287.0 -offset_bottom = 682.0 +offset_left = 1194.0 +offset_top = 500.0 +offset_right = 1305.0 +offset_bottom = 685.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("2_0nvm1") +stretch_mode = 0 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_uf"] layout_mode = 0 -offset_left = 3.0 -offset_top = -19.0 -offset_right = 79.0 +offset_left = 15.0 +offset_top = -15.0 +offset_right = 91.0 +offset_bottom = 4.0 text = "УФ" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_uf"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -14.0 +offset_top = -30.0 +offset_right = 126.0 +offset_bottom = 200.0 +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="state" type="TextureRect" parent="pribor_uf"] +layout_mode = 0 +offset_left = 16.0 +offset_top = -15.0 +offset_right = 240.0 +offset_bottom = 209.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_rtr" type="TextureButton" parent="."] layout_mode = 0 offset_left = 1197.0 -offset_top = 298.0 -offset_right = 1290.0 -offset_bottom = 454.0 +offset_top = 289.0 +offset_right = 1300.0 +offset_bottom = 445.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("3_hhadv") -stretch_mode = 4 +stretch_mode = 0 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_rtr"] layout_mode = 0 @@ -58,17 +94,45 @@ 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_bottom = 171.0 +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="state" type="TextureRect" parent="pribor_rtr"] +layout_mode = 0 +offset_left = 13.0 +offset_top = -24.0 +offset_right = 237.0 +offset_bottom = 200.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_afsp_l" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1020.0 -offset_top = 300.0 -offset_right = 1853.0 -offset_bottom = 940.0 +offset_left = 996.0 +offset_top = 301.0 +offset_right = 1829.0 +offset_bottom = 941.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") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_afsp_l"] layout_mode = 0 @@ -81,17 +145,46 @@ 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="state" type="TextureRect" parent="pribor_afsp_l"] +layout_mode = 0 +offset_left = 45.0001 +offset_top = -105.0 +offset_right = 269.0 +offset_bottom = 119.0 +scale = Vector2(0.5, 0.5) +texture = ExtResource("7_6j01w") + [node name="pribor_afsp_r" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1305.0 -offset_top = 300.0 -offset_right = 2138.0 -offset_bottom = 940.0 +offset_left = 1342.0 +offset_top = 301.0 +offset_right = 2175.0 +offset_bottom = 941.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") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_afsp_r"] layout_mode = 0 @@ -104,17 +197,45 @@ 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="state" type="TextureRect" parent="pribor_afsp_r"] +layout_mode = 0 +offset_left = 5.00006 +offset_top = -105.0 +offset_right = 229.0 +offset_bottom = 119.0 +scale = Vector2(0.5, 0.5) +texture = ExtResource("7_6j01w") + [node name="pribor_uyep" type="TextureButton" parent="."] layout_mode = 0 offset_left = 1194.0 offset_top = 739.0 -offset_right = 1287.0 +offset_right = 1288.0 offset_bottom = 925.0 -scale = Vector2(1.07179, 0.98464) size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("5_kvnex") -stretch_mode = 4 +stretch_mode = 0 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_uyep"] layout_mode = 0 @@ -126,16 +247,44 @@ text = "УЭП" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_uyep"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -13.0 +offset_top = -29.0 +offset_right = 117.0 +offset_bottom = 199.0 +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="state" type="TextureRect" parent="pribor_uyep"] +layout_mode = 0 +offset_left = 10.0 +offset_top = -24.0 +offset_right = 234.0 +offset_bottom = 200.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_v_2" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 931.0 -offset_top = 319.0 -offset_right = 1008.0 -offset_bottom = 435.0 +offset_left = 960.0 +offset_top = 480.0 +offset_right = 1037.0 +offset_bottom = 596.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_v_2"] layout_mode = 0 @@ -146,36 +295,94 @@ text = "ПРД В2" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_v_2"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -10.0 +offset_top = -30.0 +offset_right = 95.0 +offset_bottom = 120.0 +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="state" type="TextureRect" parent="pribor_prd_v_2"] +layout_mode = 0 +offset_left = -20.0 +offset_top = -21.0 +offset_right = 204.0 +offset_bottom = 203.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_n_2" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 931.0 -offset_top = 479.0 -offset_right = 1008.0 -offset_bottom = 595.0 +offset_left = 960.0 +offset_top = 635.0 +offset_right = 1037.0 +offset_bottom = 751.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [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 +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_constants/outline_size = 0 text = "ПРД Н2" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_n_2"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -10.0 +offset_top = -25.0 +offset_right = 95.0 +offset_bottom = 125.0 +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="state" type="TextureRect" parent="pribor_prd_n_2"] +layout_mode = 0 +offset_left = -15.0 +offset_top = -20.0 +offset_right = 209.0 +offset_bottom = 204.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_k_2" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1057.0 +offset_left = 1077.0 offset_top = 479.0 -offset_right = 1134.0 +offset_right = 1154.0 offset_bottom = 595.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_k_2"] layout_mode = 0 @@ -186,17 +393,45 @@ text = "ПРД К2" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_k_2"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -12.0 +offset_top = -29.0 +offset_right = 93.0 +offset_bottom = 121.0 +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="state" type="TextureRect" parent="pribor_prd_k_2"] +layout_mode = 0 +offset_left = -6.99999 +offset_top = -20.0 +offset_right = 217.0 +offset_bottom = 204.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_v_3" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1364.0 +offset_left = 1344.0 offset_top = 797.0 -offset_right = 1441.0 +offset_right = 1421.0 offset_bottom = 913.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 flip_h = true +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_v_3"] layout_mode = 0 @@ -208,17 +443,45 @@ text = "ПРД В3" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_v_3"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -14.0 +offset_top = -27.0 +offset_right = 91.0 +offset_bottom = 123.0 +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="state" type="TextureRect" parent="pribor_prd_v_3"] +layout_mode = 0 +offset_left = -8.99999 +offset_top = -22.0 +offset_right = 215.0 +offset_bottom = 202.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_n_3" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1486.0 -offset_top = 637.0 -offset_right = 1563.0 -offset_bottom = 753.0 +offset_left = 1458.0 +offset_top = 798.0 +offset_right = 1535.0 +offset_bottom = 914.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 flip_h = true +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_n_3"] layout_mode = 0 @@ -229,39 +492,95 @@ text = "ПРД Н3" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_n_3"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -13.0 +offset_top = -28.0 +offset_right = 92.0 +offset_bottom = 122.0 +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="state" type="TextureRect" parent="pribor_prd_n_3"] +layout_mode = 0 +offset_left = -13.0 +offset_top = -21.0 +offset_right = 211.0 +offset_bottom = 203.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_k_3" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1363.0 -offset_top = 637.0 -offset_right = 1440.0 -offset_bottom = 753.0 +offset_left = 1343.0 +offset_top = 635.0 +offset_right = 1420.0 +offset_bottom = 751.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 flip_h = true +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_k_3"] layout_mode = 0 offset_left = 13.0 -offset_top = -20.0 +offset_top = -18.0 offset_right = 65.0 -offset_bottom = -1.0 +offset_bottom = 1.0 text = "ПРД К3" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_k_3"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -13.0 +offset_top = -25.0 +offset_right = 92.0 +offset_bottom = 125.0 +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="state" type="TextureRect" parent="pribor_prd_k_3"] +layout_mode = 0 +offset_left = -13.0 +offset_top = -20.0 +offset_right = 211.0 +offset_bottom = 204.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_v_1" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1485.0 -offset_top = 319.0 -offset_right = 1562.0 -offset_bottom = 435.0 +offset_left = 1457.0 +offset_top = 480.0 +offset_right = 1534.0 +offset_bottom = 596.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 flip_h = true +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_v_1"] layout_mode = 0 @@ -272,17 +591,45 @@ text = "ПРД В1" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_v_1"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -12.0 +offset_top = -30.0 +offset_right = 93.0 +offset_bottom = 120.0 +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="state" type="TextureRect" parent="pribor_prd_v_1"] +layout_mode = 0 +offset_left = -17.0 +offset_top = -19.0 +offset_right = 207.0 +offset_bottom = 205.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_n_1" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1483.0 -offset_top = 478.0 -offset_right = 1560.0 -offset_bottom = 594.0 +offset_left = 1455.0 +offset_top = 634.0 +offset_right = 1532.0 +offset_bottom = 750.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 flip_h = true +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_n_1"] layout_mode = 0 @@ -293,17 +640,45 @@ text = "ПРД Н1" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_n_1"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -10.0 +offset_top = -24.0 +offset_right = 95.0 +offset_bottom = 126.0 +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="state" type="TextureRect" parent="pribor_prd_n_1"] +layout_mode = 0 +offset_left = -9.99999 +offset_top = -19.0 +offset_right = 214.0 +offset_bottom = 205.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_k_1" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1357.0 +offset_left = 1344.0 offset_top = 478.0 -offset_right = 1434.0 +offset_right = 1421.0 offset_bottom = 594.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 flip_h = true +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_k_1"] layout_mode = 0 @@ -314,16 +689,44 @@ text = "ПРД К1" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_k_1"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -14.0 +offset_top = -28.0 +offset_right = 91.0 +offset_bottom = 122.0 +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="state" type="TextureRect" parent="pribor_prd_k_1"] +layout_mode = 0 +offset_left = -14.0 +offset_top = -19.0 +offset_right = 210.0 +offset_bottom = 205.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_v_4" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1057.0 +offset_left = 1077.0 offset_top = 796.0 -offset_right = 1134.0 +offset_right = 1154.0 offset_bottom = 912.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_v_4"] layout_mode = 0 @@ -335,16 +738,44 @@ text = "ПРД В4" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_v_4"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -12.0 +offset_top = -26.0 +offset_right = 93.0 +offset_bottom = 124.0 +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="state" type="TextureRect" parent="pribor_prd_v_4"] +layout_mode = 0 +offset_left = -12.0 +offset_top = -21.0 +offset_right = 212.0 +offset_bottom = 203.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_n_4" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 932.0 -offset_top = 633.0 -offset_right = 1009.0 -offset_bottom = 749.0 +offset_left = 961.0 +offset_top = 794.0 +offset_right = 1038.0 +offset_bottom = 910.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_n_4"] layout_mode = 0 @@ -355,26 +786,78 @@ text = "ПРД Н4" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_n_4"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -11.0 +offset_top = -24.0 +offset_right = 94.0 +offset_bottom = 126.0 +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="state" type="TextureRect" parent="pribor_prd_n_4"] +layout_mode = 0 +offset_left = -11.0 +offset_top = -19.0 +offset_right = 213.0 +offset_bottom = 205.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="pribor_prd_k_4" type="TextureButton" parent="."] layout_mode = 0 -offset_left = 1057.0 -offset_top = 634.0 -offset_right = 1134.0 -offset_bottom = 750.0 +offset_left = 1077.0 +offset_top = 635.0 +offset_right = 1154.0 +offset_bottom = 751.0 size_flags_horizontal = 15 size_flags_vertical = 15 +toggle_mode = true +action_mode = 0 texture_normal = ExtResource("6_i1yfn") stretch_mode = 4 +script = ExtResource("3_4pt7j") +textures = [ExtResource("7_6j01w"), ExtResource("8_isjua"), ExtResource("9_ll0vs")] [node name="label" type="Label" parent="pribor_prd_k_4"] layout_mode = 0 -offset_left = 12.0 +offset_left = 13.0 offset_top = -19.0 -offset_right = 64.0 +offset_right = 65.0 text = "ПРД К4" horizontal_alignment = 1 vertical_alignment = 1 +[node name="frame" type="NinePatchRect" parent="pribor_prd_k_4"] +visible = false +self_modulate = Color(0.890196, 0.486275, 0.196078, 1) +layout_mode = 0 +offset_left = -12.0 +offset_top = -25.0 +offset_right = 93.0 +offset_bottom = 125.0 +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="state" type="TextureRect" parent="pribor_prd_k_4"] +layout_mode = 0 +offset_left = -6.99999 +offset_top = -20.0 +offset_right = 217.0 +offset_bottom = 204.0 +scale = Vector2(0.1, 0.1) +texture = ExtResource("7_6j01w") + [node name="mnemo_container" type="Panel" parent="."] layout_mode = 0 @@ -434,3 +917,21 @@ offset_right = 1505.0 offset_bottom = 981.0 theme_override_font_sizes/font_size = 17 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"] +[connection signal="toggled" from="pribor_prd_k_2" to="pribor_prd_k_2" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_v_3" to="pribor_prd_v_3" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_n_3" to="pribor_prd_n_3" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_k_3" to="pribor_prd_k_3" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_v_1" to="pribor_prd_v_1" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_n_1" to="pribor_prd_n_1" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_k_1" to="pribor_prd_k_1" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_v_4" to="pribor_prd_v_4" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_n_4" to="pribor_prd_n_4" method="_on_toggled"] +[connection signal="toggled" from="pribor_prd_k_4" to="pribor_prd_k_4" method="_on_toggled"] diff --git a/scenes/контроль/элемент-в.tscn b/scenes/контроль/элемент-в.tscn index c7e6eb1..9c8c4ca 100644 --- a/scenes/контроль/элемент-в.tscn +++ b/scenes/контроль/элемент-в.tscn @@ -65,6 +65,8 @@ func _on_resized() -> void: v %= textures.size() state = v $txr_state.texture = textures[v] + get: + return state " [node name="yelement_v" type="Control"]