Доработка. Показать функциональную схему
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=25 format=3 uid="uid://lwmw4egynmd1"]
|
[gd_scene load_steps=27 format=3 uid="uid://lwmw4egynmd1"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bar8k5qef7kch" path="res://data/УФ.png" id="2_0nvm1"]
|
[ext_resource type="Texture2D" uid="uid://bar8k5qef7kch" path="res://data/УФ.png" id="2_0nvm1"]
|
||||||
[ext_resource type="Script" uid="uid://q3gmpsqspjfp" path="res://scenes/контроль/внешний.gd" id="2_8r80x"]
|
[ext_resource type="Script" uid="uid://q3gmpsqspjfp" path="res://scenes/контроль/внешний.gd" id="2_8r80x"]
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="7_6j01w"]
|
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="7_6j01w"]
|
||||||
[ext_resource type="Texture2D" uid="uid://u3tnejvpm8it" path="res://data/disconnect-a.png" id="8_gs2be"]
|
[ext_resource type="Texture2D" uid="uid://u3tnejvpm8it" path="res://data/disconnect-a.png" id="8_gs2be"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="8_isjua"]
|
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="8_isjua"]
|
||||||
|
[ext_resource type="Shader" uid="uid://83fx15q1xlid" path="res://shaders/two-color.gdshader" id="9_71ec4"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b4isaggma6q3" path="res://data/Грани22.png" id="9_iqgf5"]
|
[ext_resource type="Texture2D" uid="uid://b4isaggma6q3" path="res://data/Грани22.png" id="9_iqgf5"]
|
||||||
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="9_ll0vs"]
|
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="9_ll0vs"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bktiige0i2lhl" path="res://data/У-РЭП-РПД-Н.png" id="9_qe1go"]
|
[ext_resource type="Texture2D" uid="uid://bktiige0i2lhl" path="res://data/У-РЭП-РПД-Н.png" id="9_qe1go"]
|
||||||
@@ -180,6 +181,12 @@ animations = [{
|
|||||||
"speed": 5.0
|
"speed": 5.0
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_71ec4"]
|
||||||
|
shader = ExtResource("9_71ec4")
|
||||||
|
shader_parameter/grey = Vector3(0.14, 0.13, 0.13)
|
||||||
|
shader_parameter/orange = Vector3(0.95, 0.55, 0.05)
|
||||||
|
shader_parameter/gamma = 2.0
|
||||||
|
|
||||||
[node name="Контроль" type="Panel"]
|
[node name="Контроль" type="Panel"]
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
@@ -410,6 +417,7 @@ patch_margin_right = 16
|
|||||||
patch_margin_bottom = 16
|
patch_margin_bottom = 16
|
||||||
|
|
||||||
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_1"]
|
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_1"]
|
||||||
|
visible = false
|
||||||
light_mask = 3
|
light_mask = 3
|
||||||
position = Vector2(35, -10)
|
position = Vector2(35, -10)
|
||||||
scale = Vector2(0.625, 0.625)
|
scale = Vector2(0.625, 0.625)
|
||||||
@@ -420,6 +428,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_1"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_1"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1029.0
|
offset_left = -1029.0
|
||||||
offset_top = 9.0
|
offset_top = 9.0
|
||||||
@@ -484,6 +493,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_uf"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_uf"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1155.0
|
offset_left = -1155.0
|
||||||
offset_top = -362.0
|
offset_top = -362.0
|
||||||
@@ -557,6 +567,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_rtr"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_rtr"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1036.0
|
offset_left = -1036.0
|
||||||
offset_top = -394.0
|
offset_top = -394.0
|
||||||
@@ -634,6 +645,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_afsp_1"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_afsp_1"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -5120.0
|
offset_left = -5120.0
|
||||||
offset_top = -895.0
|
offset_top = -895.0
|
||||||
@@ -712,6 +724,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_afsp_2"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_afsp_2"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -6070.0
|
offset_left = -6070.0
|
||||||
offset_top = -900.0
|
offset_top = -900.0
|
||||||
@@ -774,6 +787,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_uyep"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_uyep"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1292.0
|
offset_left = -1292.0
|
||||||
offset_top = -365.0
|
offset_top = -365.0
|
||||||
@@ -837,6 +851,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_2"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_2"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1419.0
|
offset_left = -1419.0
|
||||||
offset_top = -480.0
|
offset_top = -480.0
|
||||||
@@ -892,6 +907,7 @@ patch_margin_right = 16
|
|||||||
patch_margin_bottom = 16
|
patch_margin_bottom = 16
|
||||||
|
|
||||||
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_2"]
|
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_2"]
|
||||||
|
visible = false
|
||||||
light_mask = 3
|
light_mask = 3
|
||||||
position = Vector2(40, -10)
|
position = Vector2(40, -10)
|
||||||
scale = Vector2(0.625, 0.625)
|
scale = Vector2(0.625, 0.625)
|
||||||
@@ -902,6 +918,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_2"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_2"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1419.0
|
offset_left = -1419.0
|
||||||
offset_top = -145.0
|
offset_top = -145.0
|
||||||
@@ -965,6 +982,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_2"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_2"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1418.0
|
offset_left = -1418.0
|
||||||
offset_top = -314.0
|
offset_top = -314.0
|
||||||
@@ -1028,6 +1046,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_3"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_3"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1026.0
|
offset_left = -1026.0
|
||||||
offset_top = -601.0
|
offset_top = -601.0
|
||||||
@@ -1091,6 +1110,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_3"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_3"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1302.0
|
offset_left = -1302.0
|
||||||
offset_top = -602.0
|
offset_top = -602.0
|
||||||
@@ -1154,6 +1174,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_3"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_3"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1167.0
|
offset_left = -1167.0
|
||||||
offset_top = -602.0
|
offset_top = -602.0
|
||||||
@@ -1217,6 +1238,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_1"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_1"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1304.0
|
offset_left = -1304.0
|
||||||
offset_top = 2.0
|
offset_top = 2.0
|
||||||
@@ -1280,6 +1302,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_1"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_1"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -1163.0
|
offset_left = -1163.0
|
||||||
offset_top = 10.0
|
offset_top = 10.0
|
||||||
@@ -1342,6 +1365,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_4"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_4"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -923.0
|
offset_left = -923.0
|
||||||
offset_top = -144.0
|
offset_top = -144.0
|
||||||
@@ -1404,6 +1428,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_4"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_4"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -919.0
|
offset_left = -919.0
|
||||||
offset_top = -485.0
|
offset_top = -485.0
|
||||||
@@ -1466,6 +1491,7 @@ script = ExtResource("11_u7tym")
|
|||||||
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_4"]
|
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_4"]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
material = SubResource("ShaderMaterial_71ec4")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -924.0
|
offset_left = -924.0
|
||||||
offset_top = -315.0
|
offset_top = -315.0
|
||||||
@@ -1615,6 +1641,7 @@ offset_bottom = 746.0
|
|||||||
scale = Vector2(5, 5)
|
scale = Vector2(5, 5)
|
||||||
texture = ExtResource("22_1s34a")
|
texture = ExtResource("22_1s34a")
|
||||||
|
|
||||||
|
[connection signal="gui_input" from="." to="." method="_on_gui_input"]
|
||||||
[connection signal="toggled" from="pribor_prd_n_1" to="pribor_prd_n_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_uf" to="pribor_uf" method="_on_toggled"]
|
[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_rtr" to="pribor_rtr" method="_on_toggled"]
|
||||||
|
|||||||
17
shaders/two-color.gdshader
Normal file
17
shaders/two-color.gdshader
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
shader_type canvas_item;
|
||||||
|
|
||||||
|
uniform vec3 grey = vec3(0.14, 0.13, 0.13);
|
||||||
|
uniform vec3 orange = vec3(0.95, 0.55, 0.05);
|
||||||
|
uniform float gamma = 2.0;
|
||||||
|
|
||||||
|
vec3 bw_to_2color(vec3 c, vec3 dark, vec3 light)
|
||||||
|
{
|
||||||
|
float l = pow(c.r * 0.2126 + c.g * 0.7152 + c.b * 0.0722, gamma);
|
||||||
|
return mix(light, dark, l);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void fragment()
|
||||||
|
{
|
||||||
|
COLOR.rgb = bw_to_2color(texture(TEXTURE, UV).rgb, grey, orange);
|
||||||
|
}
|
||||||
1
shaders/two-color.gdshader.uid
Normal file
1
shaders/two-color.gdshader.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://83fx15q1xlid
|
||||||
Reference in New Issue
Block a user