[gd_scene load_steps=10 format=3 uid="uid://dlkvu6bp6w5u7"] [ext_resource type="Script" path="res://scenes/pribor-uyep/sch3-view.gd" id="1_ln7ac"] [ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="2_ln52a"] [ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="3_1yamu"] [ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="4_nijdy"] [ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="5_skqdl"] [ext_resource type="Shader" path="res://shaders/color-invers.gdshader" id="6_ypnlb"] [sub_resource type="GDScript" id="GDScript_45hqb"] script/source = "@tool extends MarginContainer func _enter_tree() -> void: margins = [8, 8, 8, 8] @export var margins: Array: set(vals): add_theme_constant_override('margin_top', vals[0]) add_theme_constant_override('margin_left', vals[1]) add_theme_constant_override('margin_bottom', vals[2]) add_theme_constant_override('margin_right', vals[3]) get: var vals = [0, 0, 0, 0] vals[0] = get_theme_constant('margin_top') vals[1] = get_theme_constant('margin_left') vals[2] = get_theme_constant('margin_bottom') vals[3] = get_theme_constant('margin_right') return vals " [sub_resource type="ShaderMaterial" id="ShaderMaterial_c1mqk"] shader = ExtResource("6_ypnlb") [sub_resource type="ShaderMaterial" id="ShaderMaterial_vdwfd"] shader = ExtResource("6_ypnlb") [node name="sch3" type="Control"] editor_description = "Элемент замены из ЗИП" custom_minimum_size = Vector2(32, 32) layout_mode = 3 anchors_preset = 0 offset_left = 175.0 offset_top = 640.0 offset_right = 730.0 offset_bottom = 935.0 script = ExtResource("1_ln7ac") textures = [ExtResource("2_ln52a"), ExtResource("3_1yamu"), ExtResource("4_nijdy")] unit_name = "уарэп-щ3" fname = "Щ3" rname = "A3" [node name="rect" type="NinePatchRect" parent="."] layout_mode = 2 offset_right = 555.0 offset_bottom = 295.0 size_flags_horizontal = 3 size_flags_vertical = 3 texture = ExtResource("5_skqdl") draw_center = false region_rect = Rect2(0, 0, 63, 63) patch_margin_left = 17 patch_margin_top = 17 patch_margin_right = 17 patch_margin_bottom = 15 [node name="margin" type="MarginContainer" parent="."] layout_mode = 0 offset_right = 555.0 offset_bottom = 295.0 theme_override_constants/margin_left = 8 theme_override_constants/margin_top = 8 theme_override_constants/margin_right = 8 theme_override_constants/margin_bottom = 8 script = SubResource("GDScript_45hqb") margins = [8, 8, 8, 8] [node name="vbox" type="VBoxContainer" parent="margin"] layout_mode = 2 [node name="grid" type="GridContainer" parent="margin/vbox"] layout_mode = 2 size_flags_vertical = 2 columns = 3 [node name="state" type="TextureRect" parent="margin/vbox/grid"] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 [node name="fname" type="Label" parent="margin/vbox/grid"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 6 theme_override_font_sizes/font_size = 17 text = "Щ3 - управление питанием " vertical_alignment = 1 [node name="rname" type="Label" parent="margin/vbox/grid"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 6 theme_override_font_sizes/font_size = 22 text = "A3" horizontal_alignment = 2 vertical_alignment = 1 [node name="table" type="GridContainer" parent="margin/vbox"] layout_mode = 2 size_flags_vertical = 6 columns = 9 [node name="name0" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "УФ" [node name="state0" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 0, 2, 0] [node name="switch0" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "Питание УФ" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "Выключатель питания УФ" action_mode = 0 metadata/bits = [0, 0, 2, 0] [node name="name1" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "РТР" [node name="state1" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 1, 2, 1] [node name="switch1" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "РТР" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 0 tooltip_text = "Выключатель питания РТР" action_mode = 0 metadata/bits = [0, 1, 2, 1] [node name="name2" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-Н.1" [node name="state2" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 2, 2, 2] [node name="switch2" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "ПРД-Н.1" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "Выключатель питания ПРД-Н.1" action_mode = 0 metadata/bits = [0, 2, 2, 2] [node name="name3" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-Н.2" [node name="state3" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 3, 2, 3] [node name="switch3" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "Питание ПРД-Н.2" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 0 tooltip_text = "Выключатель питания ПРД-Н.2" action_mode = 0 metadata/bits = [0, 3, 2, 3] [node name="name4" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-Н.3" [node name="state4" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 4, 2, 4] [node name="switch4" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "ПРД-Н.3" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "Выключатель питания ПРД-Н.3" action_mode = 0 metadata/bits = [0, 4, 2, 4] [node name="name5" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-Н.4" [node name="state5" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 5, 2, 5] [node name="switch5" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "ПРД-Н.4" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 0 tooltip_text = "Выключатель питания ПРД-Н.4" action_mode = 0 metadata/bits = [0, 5, 2, 5] [node name="name6" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-В.1" [node name="state6" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 6, 2, 6] [node name="switch6" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "Питание ПРД-В.1" material = SubResource("ShaderMaterial_vdwfd") layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "Выключатель питания ПРД-В.1" action_mode = 0 metadata/bits = [0, 6, 2, 6] [node name="name7" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-В.2" [node name="state7" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 7, 2, 7] [node name="switch7" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "ПРД-В.2" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 0 tooltip_text = "Выключатель питания ПРД-В.2" action_mode = 0 metadata/bits = [0, 7, 2, 7] [node name="name8" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-В.3" [node name="state8" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 8, 2, 8] [node name="switch8" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "ПРД-В.3" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "Выключатель питания ПРД-В.3" action_mode = 0 metadata/bits = [0, 8, 2, 8] [node name="name9" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-В.4" [node name="state9" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 9, 2, 9] [node name="switch9" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "Питание ПРД-В.4" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 0 tooltip_text = "Выключатель питания ПРД-В.4" action_mode = 0 metadata/bits = [0, 9, 2, 9] [node name="name10" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-К.1" [node name="state10" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 10, 2, 10] [node name="switch10" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "ПРД-К.1" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "Выключатель питания ПРД-К.1" action_mode = 0 metadata/bits = [0, 10, 2, 10] [node name="name11" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-К.2" [node name="state11" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 11, 2, 11] [node name="switch11" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "ПРД-К.2" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 0 tooltip_text = "Выключатель питания ПРД-К.2" action_mode = 0 metadata/bits = [0, 11, 2, 11] [node name="name12" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-К.3" [node name="state12" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 0, 3, 0] [node name="switch12" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "Питание ПРД-К.3" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "Выключатель питания ПРД-К.3" action_mode = 0 metadata/bits = [1, 0, 3, 0] [node name="name13" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-К.4" [node name="state13" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 1, 3, 1] [node name="switch13" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "ПРД-К.4" material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 0 tooltip_text = "Выключатель питания ПРД-К.4" action_mode = 0 metadata/bits = [1, 1, 3, 1] [node name="name14" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Бл. по вент." [node name="state14" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 2, 3, 2] [node name="switch14" type="CheckButton" parent="margin/vbox/table" groups=["bits_items_switch"]] editor_description = "Бл. по вент." material = SubResource("ShaderMaterial_c1mqk") layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "Выключатель блокировки по вентиляции" action_mode = 0 metadata/bits = [1, 2, 3, 2] [node name="name15" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ДУ" [node name="state15" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 3, 3, 3] [node name="switch15" type="CheckButton" parent="margin/vbox/table"] editor_description = "ДУ" layout_mode = 2 size_flags_horizontal = 0 disabled = true button_pressed = true action_mode = 0 [node name="name16" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. РТР" [node name="state16" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 7, 3, 7] [node name="switch16" type="CheckButton" parent="margin/vbox/table"] editor_description = "Вент. РТР" layout_mode = 2 size_flags_horizontal = 2 disabled = true button_pressed = true action_mode = 0 [node name="name17" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. ПРД.1" [node name="state17" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 8, 3, 8] [node name="switch17" type="CheckButton" parent="margin/vbox/table"] editor_description = "Вент. ПРД.1" layout_mode = 2 size_flags_horizontal = 0 disabled = true button_pressed = true action_mode = 0 [node name="name18" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. ПРД.2" [node name="state18" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 9, 3, 9] [node name="switch18" type="CheckButton" parent="margin/vbox/table"] editor_description = "Вент. ПРД.2" layout_mode = 2 size_flags_horizontal = 2 disabled = true button_pressed = true action_mode = 0 [node name="name19" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. ПРД.3" [node name="state19" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 10, 3, 10] [node name="switch19" type="CheckButton" parent="margin/vbox/table"] editor_description = "Вент. ПРД.3" layout_mode = 2 size_flags_horizontal = 0 disabled = true button_pressed = true action_mode = 0 [node name="name20" type="Label" parent="margin/vbox/table"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. ПРД.4" [node name="state20" type="TextureRect" parent="margin/vbox/table" groups=["bits_items_good"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 11, 3, 11] [node name="switch20" type="CheckButton" parent="margin/vbox/table"] editor_description = "Вент. ПРД.4" layout_mode = 2 size_flags_horizontal = 2 disabled = true button_pressed = true action_mode = 0 [node name="grid1" type="GridContainer" parent="margin/vbox"] layout_mode = 2 size_flags_vertical = 8 columns = 2 [node name="lbl1" type="Label" parent="margin/vbox/grid1"] self_modulate = Color(1, 1, 1, 0.627451) layout_mode = 2 size_flags_horizontal = 3 theme_override_font_sizes/font_size = 17 text = "Частота, Гц:" horizontal_alignment = 2 [node name="lbl_freq" type="Label" parent="margin/vbox/grid1"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 6 theme_override_font_sizes/font_size = 22 text = "50" vertical_alignment = 1 [connection signal="resized" from="." to="." method="_on_resized"]