From 8743530da35177b8e7ff30e9dd8b0048672e11bc Mon Sep 17 00:00:00 2001 From: sasha80 Date: Fri, 15 Nov 2024 10:02:54 +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=92=D1=8B=D0=BA=D0=BB=D1=8E=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D0=B8=20=D0=B1=D0=BE=D0=BB=D0=B5=D0=B5=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BC=D0=B5=D1=82=D0=BD=D1=8B=20=D1=82=D0=B5=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/pribor-uyep/sch3.tscn | 267 +++++++++++++++++++++------------- shaders/color-invers.gdshader | 6 + 2 files changed, 175 insertions(+), 98 deletions(-) create mode 100644 shaders/color-invers.gdshader diff --git a/scenes/pribor-uyep/sch3.tscn b/scenes/pribor-uyep/sch3.tscn index 8ae457a..72bfa99 100644 --- a/scenes/pribor-uyep/sch3.tscn +++ b/scenes/pribor-uyep/sch3.tscn @@ -1,10 +1,11 @@ -[gd_scene load_steps=12 format=3 uid="uid://5c24lfvp72en"] +[gd_scene load_steps=10 format=3 uid="uid://dlkvu6bp6w5u7"] -[ext_resource type="Script" path="res://scenes/контроль/элемент-я.gd" id="1_mb0l2"] -[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="2_qglal"] -[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="3_gqvwf"] -[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="4_2lj00"] -[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="5_eanbw"] +[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 @@ -29,40 +30,36 @@ func _enter_tree() -> void: 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="ShaderMaterial" id="ShaderMaterial_c1mqk"] +shader = ExtResource("6_ypnlb") -[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"] +[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 = 75.0 -offset_top = 635.0 -offset_right = 795.0 -offset_bottom = 930.0 -script = ExtResource("1_mb0l2") -textures = [ExtResource("2_qglal"), ExtResource("3_gqvwf"), ExtResource("4_2lj00")] +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 = 720.0 +offset_right = 555.0 offset_bottom = 295.0 size_flags_horizontal = 3 size_flags_vertical = 3 -texture = ExtResource("5_eanbw") +texture = ExtResource("5_skqdl") draw_center = false region_rect = Rect2(0, 0, 63, 63) patch_margin_left = 17 @@ -71,11 +68,9 @@ patch_margin_right = 17 patch_margin_bottom = 15 [node name="margin" type="MarginContainer" parent="."] -layout_mode = 2 -offset_left = 10.0 -offset_top = 11.0 -offset_right = 730.0 -offset_bottom = 306.0 +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 @@ -94,7 +89,7 @@ columns = 3 [node name="state" type="TextureRect" parent="margin/vbox/grid"] custom_minimum_size = Vector2(24, 24) layout_mode = 2 -texture = ExtResource("2_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 [node name="fname" type="Label" parent="margin/vbox/grid"] @@ -103,6 +98,7 @@ 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"] @@ -110,6 +106,7 @@ 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 @@ -124,19 +121,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "УФ" -[node name="state0" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 0, 2, 0] -[node name="switch0" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -144,19 +145,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "РТР" -[node name="state1" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 1, 2, 1] -[node name="switch1" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -164,17 +169,21 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-Н.1" -[node name="state2" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 2, 2, 2] -[node name="switch2" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -182,19 +191,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-Н.2" -[node name="state3" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 3, 2, 3] -[node name="switch3" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -202,19 +215,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-Н.3" -[node name="state4" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 4, 2, 4] -[node name="switch4" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -222,17 +239,21 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-Н.4" -[node name="state5" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 5, 2, 5] -[node name="switch5" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -240,19 +261,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-В.1" -[node name="state6" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 6, 2, 6] -[node name="switch6" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -260,19 +285,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-В.2" -[node name="state7" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 7, 2, 7] -[node name="switch7" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -280,17 +309,21 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-В.3" -[node name="state8" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 8, 2, 8] -[node name="switch8" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -298,19 +331,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-В.4" -[node name="state9" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 9, 2, 9] -[node name="switch9" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -318,19 +355,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-К.1" -[node name="state10" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 10, 2, 10] -[node name="switch10" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -338,17 +379,21 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-К.2" -[node name="state11" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [0, 11, 2, 11] -[node name="switch11" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -356,19 +401,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-К.3" -[node name="state12" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 0, 3, 0] -[node name="switch12" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -376,17 +425,21 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ПРД-К.4" -[node name="state13" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 1, 3, 1] -[node name="switch13" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -394,19 +447,23 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Бл. по вент." -[node name="state14" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +texture = ExtResource("2_ln52a") expand_mode = 1 metadata/bits = [1, 2, 3, 2] -[node name="switch14" type="CheckButton" parent="margin/vbox/table"] +[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) @@ -414,16 +471,17 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "ДУ" -[node name="state15" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +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 @@ -436,14 +494,15 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. РТР" -[node name="state16" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +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 @@ -456,16 +515,17 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. ПРД.1" -[node name="state17" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +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 @@ -478,14 +538,15 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. ПРД.2" -[node name="state18" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +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 @@ -498,14 +559,15 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. ПРД.3" -[node name="state19" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +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 @@ -518,31 +580,40 @@ layout_mode = 2 theme_override_font_sizes/font_size = 17 text = "Вент. ПРД.4" -[node name="state20" type="TextureRect" parent="margin/vbox/table" groups=["bits_items"]] +[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_qglal") +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="button" type="Button" parent="."] +[node name="grid1" type="GridContainer" parent="margin/vbox"] layout_mode = 2 -offset_left = 18.0 -offset_top = 19.0 -offset_right = 738.0 -offset_bottom = 314.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") +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"] -[connection signal="pressed" from="button" to="." method="_on_button_pressed"] diff --git a/shaders/color-invers.gdshader b/shaders/color-invers.gdshader new file mode 100644 index 0000000..d082f90 --- /dev/null +++ b/shaders/color-invers.gdshader @@ -0,0 +1,6 @@ +shader_type canvas_item; + +void fragment() +{ + COLOR.rgb = vec3(1.0, 1.0, 1.0) - log(COLOR.rgb); +}