From c7be9d274018b1db621a85da2fb2c6768cb01849 Mon Sep 17 00:00:00 2001 From: sasha80 Date: Fri, 15 Nov 2024 10:25:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0.=20=D0=9F=D1=80=D0=B8=D0=B1=D0=BE=D1=80=20=D0=A93?= =?UTF-8?q?=20=D0=B2=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B5=20=D0=9A=D0=BE?= =?UTF-8?q?=D0=BD=D1=82=D1=80=D0=BE=D0=BB=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/pribor-uyep/pribor-uyep.tscn | 553 +--------------------------- 1 file changed, 6 insertions(+), 547 deletions(-) diff --git a/scenes/pribor-uyep/pribor-uyep.tscn b/scenes/pribor-uyep/pribor-uyep.tscn index 6c2b061..3d8881f 100644 --- a/scenes/pribor-uyep/pribor-uyep.tscn +++ b/scenes/pribor-uyep/pribor-uyep.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=17 format=3 uid="uid://bs7h65e7bodp3"] +[gd_scene load_steps=8 format=3 uid="uid://bs7h65e7bodp3"] [ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="1_6olof"] [ext_resource type="Script" path="res://scenes/контроль/прибор.gd" id="1_46rp6"] @@ -6,47 +6,7 @@ [ext_resource type="Script" path="res://scenes/pribor-uyep/spt25-view.gd" id="4_v0lil"] [ext_resource type="PackedScene" uid="uid://bsixhjfesq6r4" path="res://scenes/pribor-uyep/block-output.tscn" id="5_x74mk"] [ext_resource type="PackedScene" uid="uid://btpc78gucr57f" path="res://scenes/контроль/элемент-я.tscn" id="6_60xs3"] -[ext_resource type="Script" path="res://scenes/pribor-uyep/sch3-view.gd" id="8_4t3jv"] -[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="8_8gaqb"] -[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="9_wwljg"] -[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="10_jl4ga"] - -[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="StyleBoxEmpty" id="StyleBoxEmpty_evx06"] - -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_emtms"] - -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xxyaa"] - -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cd4fw"] - -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ox0yw"] +[ext_resource type="PackedScene" uid="uid://dlkvu6bp6w5u7" path="res://scenes/pribor-uyep/sch3.tscn" id="7_qu7ja"] [node name="pribor_uyep" type="Control"] layout_mode = 3 @@ -159,508 +119,7 @@ offset_top = 275.0 offset_right = 225.0 offset_bottom = 367.0 -[node name="sch3" type="Control" parent="."] -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 = 910.0 -script = ExtResource("8_4t3jv") -textures = [ExtResource("8_8gaqb"), ExtResource("9_wwljg"), ExtResource("10_jl4ga")] -unit_name = "уарэп-щ3" -fname = "Щ3" -rname = "A3" - -[node name="rect" type="NinePatchRect" parent="sch3"] -layout_mode = 2 -offset_right = 555.0 -offset_bottom = 270.0 -size_flags_horizontal = 3 -size_flags_vertical = 3 -texture = ExtResource("1_6olof") -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="sch3"] -layout_mode = 2 -offset_left = 10.0 -offset_top = 11.0 -offset_right = 565.0 -offset_bottom = 281.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="sch3/margin"] -layout_mode = 2 - -[node name="grid" type="GridContainer" parent="sch3/margin/vbox"] -layout_mode = 2 -size_flags_vertical = 2 -columns = 3 - -[node name="state" type="TextureRect" parent="sch3/margin/vbox/grid"] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 - -[node name="fname" type="Label" parent="sch3/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="sch3/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="sch3/margin/vbox"] -layout_mode = 2 -size_flags_vertical = 6 -columns = 9 - -[node name="name0" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 0, 2, 0] - -[node name="switch0" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -action_mode = 0 - -[node name="name1" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 1, 2, 1] - -[node name="switch1" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -action_mode = 0 - -[node name="name2" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 2, 2, 2] - -[node name="switch2" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -action_mode = 0 - -[node name="name3" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 3, 2, 3] - -[node name="switch3" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -action_mode = 0 - -[node name="name4" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 4, 2, 4] - -[node name="switch4" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -action_mode = 0 - -[node name="name5" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 5, 2, 5] - -[node name="switch5" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -action_mode = 0 - -[node name="name6" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 6, 2, 6] - -[node name="switch6" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -action_mode = 0 - -[node name="name7" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 7, 2, 7] - -[node name="switch7" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -action_mode = 0 - -[node name="name8" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 8, 2, 8] - -[node name="switch8" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -action_mode = 0 - -[node name="name9" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 9, 2, 9] - -[node name="switch9" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -action_mode = 0 - -[node name="name10" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 10, 2, 10] - -[node name="switch10" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -action_mode = 0 - -[node name="name11" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [0, 11, 2, 11] - -[node name="switch11" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -action_mode = 0 - -[node name="name12" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 0, 3, 0] - -[node name="switch12" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -action_mode = 0 - -[node name="name13" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 1, 3, 1] - -[node name="switch13" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -action_mode = 0 - -[node name="name14" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 2, 3, 2] - -[node name="switch14" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -action_mode = 0 - -[node name="name15" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 3, 3, 3] - -[node name="switch15" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -disabled = true -button_pressed = true -action_mode = 0 - -[node name="name16" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 7, 3, 7] - -[node name="switch16" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -disabled = true -button_pressed = true -action_mode = 0 - -[node name="name17" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 8, 3, 8] - -[node name="switch17" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -disabled = true -button_pressed = true -action_mode = 0 - -[node name="name18" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 9, 3, 9] - -[node name="switch18" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -disabled = true -button_pressed = true -action_mode = 0 - -[node name="name19" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 10, 3, 10] - -[node name="switch19" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 0 -disabled = true -button_pressed = true -action_mode = 0 - -[node name="name20" type="Label" parent="sch3/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="sch3/margin/vbox/table" groups=["bits_items"]] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -texture = ExtResource("8_8gaqb") -expand_mode = 1 -metadata/bits = [1, 11, 3, 11] - -[node name="switch20" type="CheckButton" parent="sch3/margin/vbox/table"] -layout_mode = 2 -size_flags_horizontal = 2 -disabled = true -button_pressed = true -action_mode = 0 - -[node name="button" type="Button" parent="sch3"] -layout_mode = 2 -offset_right = 555.0 -offset_bottom = 270.0 -theme_override_styles/focus = SubResource("StyleBoxEmpty_evx06") -theme_override_styles/disabled = SubResource("StyleBoxEmpty_emtms") -theme_override_styles/hover = SubResource("StyleBoxEmpty_xxyaa") -theme_override_styles/pressed = SubResource("StyleBoxEmpty_cd4fw") -theme_override_styles/normal = SubResource("StyleBoxEmpty_ox0yw") - -[connection signal="resized" from="sch3" to="sch3" method="_on_resized"] -[connection signal="pressed" from="sch3/button" to="sch3" method="_on_button_pressed"] +[node name="sch3" parent="." instance=ExtResource("7_qu7ja")] +offset_right = 720.0 +offset_bottom = 915.0 +fname = "Управление Щ3"