Доработка. Отображение прибора РТР в режиме Коньроль
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://bk1655p4e8y4u" path="res://scenes/контроль/кассета-у-5.tscn" id="4_gl2bl"]
|
||||
[ext_resource type="PackedScene" uid="uid://cd5sue1e8iyrv" path="res://scenes/pribor-prd-n/kasseta-fs-nd.tscn" id="5_nhd2k"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbxdb7lo7kofv" path="res://scenes/контроль/кассета-п-1.tscn" id="6_d3awr"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkxblfoj7ejv0" path="res://scenes/контроль/ум1535.tscn" id="7_e22c6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkxblfoj7ejv0" path="res://scenes/контроль/блок-а.tscn" id="7_e22c6"]
|
||||
|
||||
[node name="pribor_prd_n" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -82,7 +82,7 @@ layout_mode = 0
|
||||
offset_left = 20.0
|
||||
offset_top = 214.0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 245.0
|
||||
offset_bottom = 240.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Контроль исправности прибора ПРД-В"
|
||||
horizontal_alignment = 1
|
||||
@@ -118,6 +118,16 @@ offset_left = 485.0
|
||||
offset_top = 242.0
|
||||
offset_right = 645.0
|
||||
offset_bottom = 337.0
|
||||
value0 = 91.0
|
||||
value1 = 22.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A7"
|
||||
|
||||
@@ -127,6 +137,16 @@ offset_left = 485.0
|
||||
offset_top = 337.0
|
||||
offset_right = 645.0
|
||||
offset_bottom = 432.0
|
||||
value0 = 91.0
|
||||
value1 = 22.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A8"
|
||||
|
||||
@@ -136,6 +156,16 @@ offset_left = 485.0
|
||||
offset_top = 432.0
|
||||
offset_right = 645.0
|
||||
offset_bottom = 527.0
|
||||
value0 = 91.0
|
||||
value1 = 22.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A9"
|
||||
|
||||
@@ -145,6 +175,16 @@ offset_left = 485.0
|
||||
offset_top = 527.0
|
||||
offset_right = 645.0
|
||||
offset_bottom = 622.0
|
||||
value0 = 91.0
|
||||
value1 = 22.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A10"
|
||||
|
||||
@@ -154,6 +194,16 @@ offset_left = 485.0
|
||||
offset_top = 622.0
|
||||
offset_right = 645.0
|
||||
offset_bottom = 717.0
|
||||
value0 = 91.0
|
||||
value1 = 22.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A11"
|
||||
|
||||
@@ -163,6 +213,16 @@ offset_left = 485.0
|
||||
offset_top = 717.0
|
||||
offset_right = 645.0
|
||||
offset_bottom = 812.0
|
||||
value0 = 91.0
|
||||
value1 = 22.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A11"
|
||||
|
||||
@@ -172,6 +232,16 @@ offset_left = 15.0
|
||||
offset_top = 242.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 337.0
|
||||
value0 = 91.0
|
||||
value1 = 33.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A13"
|
||||
|
||||
@@ -181,6 +251,16 @@ offset_left = 15.0
|
||||
offset_top = 337.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 432.0
|
||||
value0 = 91.0
|
||||
value1 = 33.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A14"
|
||||
|
||||
@@ -190,6 +270,16 @@ offset_left = 15.0
|
||||
offset_top = 432.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 527.0
|
||||
value0 = 91.0
|
||||
value1 = 33.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A15"
|
||||
|
||||
@@ -199,6 +289,16 @@ offset_left = 15.0
|
||||
offset_top = 527.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 622.0
|
||||
value0 = 91.0
|
||||
value1 = 33.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A16"
|
||||
|
||||
@@ -208,6 +308,16 @@ offset_left = 15.0
|
||||
offset_top = 622.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 717.0
|
||||
value0 = 91.0
|
||||
value1 = 33.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A17"
|
||||
|
||||
@@ -217,5 +327,15 @@ offset_left = 15.0
|
||||
offset_top = 717.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 812.0
|
||||
value0 = 91.0
|
||||
value1 = 33.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "°C"
|
||||
value_name1 = "P, %"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
fname = "УМ1535А"
|
||||
rname = "A18"
|
||||
|
||||
@@ -1,95 +1,553 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://5uv1idl3lqet"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://5uv1idl3lqet"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/контроль/прибор.gd" id="1_ab82m"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3iqb5e4g81m5" path="res://scenes/контроль/элемент-г.tscn" id="2_e75yj"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="3_a2683"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="2_02opt"]
|
||||
[ext_resource type="PackedScene" uid="uid://7ps8s0jd2bdr" path="res://scenes/контроль/блок-б.tscn" id="2_v25ql"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkxblfoj7ejv0" path="res://scenes/контроль/блок-а.tscn" id="4_2tw5p"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3iqb5e4g81m5" path="res://scenes/контроль/элемент-г.tscn" id="5_mxmk0"]
|
||||
|
||||
[node name="pribor_rtr" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
script = ExtResource("1_ab82m")
|
||||
|
||||
[node name="ref_A1" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 123.0
|
||||
offset_top = 164.0
|
||||
offset_right = 783.0
|
||||
offset_bottom = 728.0
|
||||
texture = ExtResource("3_a2683")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
|
||||
[node name="ref_A24" parent="ref_A1" instance=ExtResource("2_e75yj")]
|
||||
layout_mode = 0
|
||||
offset_left = 311.0
|
||||
offset_top = 346.0
|
||||
offset_right = 621.0
|
||||
offset_bottom = 504.0
|
||||
fname = "Модуль процессорный O31S.B"
|
||||
rname = "A24"
|
||||
state = 1
|
||||
|
||||
[node name="ref_A25" parent="ref_A1" instance=ExtResource("2_e75yj")]
|
||||
layout_mode = 0
|
||||
offset_left = 47.0
|
||||
offset_top = 387.0
|
||||
offset_right = 252.0
|
||||
offset_bottom = 503.0
|
||||
fname = "Плата"
|
||||
rname = "A25"
|
||||
state = 1
|
||||
|
||||
[node name="ref_A23" parent="ref_A1" instance=ExtResource("2_e75yj")]
|
||||
layout_mode = 0
|
||||
offset_left = 451.0
|
||||
offset_top = 76.0
|
||||
offset_right = 611.0
|
||||
offset_bottom = 231.0
|
||||
fname = "MAA2000"
|
||||
rname = "A23"
|
||||
state = 1
|
||||
|
||||
[node name="ref_A2" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 124.0
|
||||
offset_top = 803.0
|
||||
offset_right = 784.0
|
||||
offset_bottom = 1097.0
|
||||
texture = ExtResource("3_a2683")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
|
||||
[node name="ref_A26" parent="ref_A2" instance=ExtResource("2_e75yj")]
|
||||
layout_mode = 0
|
||||
offset_left = 336.0
|
||||
offset_top = 68.0
|
||||
offset_right = 646.0
|
||||
offset_bottom = 226.0
|
||||
fname = "Модуль процессорный O31S.B"
|
||||
rname = "A27"
|
||||
state = 1
|
||||
|
||||
[node name="ref_A27" parent="ref_A2" instance=ExtResource("2_e75yj")]
|
||||
layout_mode = 0
|
||||
offset_left = 68.0
|
||||
offset_top = 112.0
|
||||
offset_right = 273.0
|
||||
offset_bottom = 228.0
|
||||
fname = "Плата"
|
||||
rname = "A27"
|
||||
state = 1
|
||||
|
||||
[node name="lbl_header" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 129.0
|
||||
offset_top = 131.0
|
||||
offset_right = 776.0
|
||||
offset_bottom = 157.0
|
||||
offset_left = 20.0
|
||||
offset_right = 620.0
|
||||
offset_bottom = 40.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Контроль исправности прибора"
|
||||
horizontal_alignment = 1
|
||||
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
|
||||
texture = ExtResource("2_02opt")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
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
|
||||
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
|
||||
columns = 4
|
||||
|
||||
[node name="kanal1" parent="konverter/grid" instance=ExtResource("2_v25ql")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value0 = 24.0
|
||||
value1 = 27.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
fname = "Канал 1"
|
||||
|
||||
[node name="kanal2" parent="konverter/grid" instance=ExtResource("2_v25ql")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value0 = 24.0
|
||||
value1 = 27.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
fname = "Канал 2"
|
||||
|
||||
[node name="kanal3" parent="konverter/grid" instance=ExtResource("2_v25ql")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value0 = 24.0
|
||||
value1 = 27.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
fname = "Канал 3"
|
||||
|
||||
[node name="kanal4" parent="konverter/grid" instance=ExtResource("2_v25ql")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value0 = 24.0
|
||||
value1 = 27.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
fname = "Канал 4"
|
||||
|
||||
[node name="kanal5" parent="konverter/grid" instance=ExtResource("2_v25ql")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value0 = 24.0
|
||||
value1 = 27.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
fname = "Канал 5"
|
||||
|
||||
[node name="kanal6" parent="konverter/grid" instance=ExtResource("2_v25ql")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value0 = 24.0
|
||||
value1 = 27.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
fname = "Канал 6"
|
||||
|
||||
[node name="kanal7" parent="konverter/grid" instance=ExtResource("2_v25ql")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value0 = 24.0
|
||||
value1 = 27.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
fname = "Канал 7"
|
||||
|
||||
[node name="kanal8" parent="konverter/grid" instance=ExtResource("2_v25ql")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value0 = 24.0
|
||||
value1 = 27.0
|
||||
max_value0 = 100.0
|
||||
max_value1 = 100.0
|
||||
step0 = 1.0
|
||||
step1 = 1.0
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
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
|
||||
texture = ExtResource("2_02opt")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
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
|
||||
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
|
||||
columns = 4
|
||||
|
||||
[node name="yelement1" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 1"
|
||||
|
||||
[node name="yelement2" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 2"
|
||||
|
||||
[node name="yelement3" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 3"
|
||||
|
||||
[node name="yelement4" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 4"
|
||||
|
||||
[node name="yelement5" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 5"
|
||||
|
||||
[node name="yelement6" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 6"
|
||||
|
||||
[node name="yelement7" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 7"
|
||||
|
||||
[node name="yelement8" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 8"
|
||||
|
||||
[node name="yelement9" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 9"
|
||||
|
||||
[node name="yelement10" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 10"
|
||||
|
||||
[node name="yelement11" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 11"
|
||||
|
||||
[node name="yelement12" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 12"
|
||||
|
||||
[node name="yelement13" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 13"
|
||||
|
||||
[node name="yelement14" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 14"
|
||||
|
||||
[node name="yelement15" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 15"
|
||||
|
||||
[node name="yelement16" parent="antenna1/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
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
|
||||
texture = ExtResource("2_02opt")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
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
|
||||
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
|
||||
columns = 4
|
||||
|
||||
[node name="yelement1" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 1"
|
||||
|
||||
[node name="yelement2" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 2"
|
||||
|
||||
[node name="yelement3" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 3"
|
||||
|
||||
[node name="yelement4" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 4"
|
||||
|
||||
[node name="yelement5" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 5"
|
||||
|
||||
[node name="yelement6" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 6"
|
||||
|
||||
[node name="yelement7" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 7"
|
||||
|
||||
[node name="yelement8" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 8"
|
||||
|
||||
[node name="yelement9" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 9"
|
||||
|
||||
[node name="yelement10" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 10"
|
||||
|
||||
[node name="yelement11" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 11"
|
||||
|
||||
[node name="yelement12" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 12"
|
||||
|
||||
[node name="yelement13" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 13"
|
||||
|
||||
[node name="yelement14" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 14"
|
||||
|
||||
[node name="yelement15" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
fname = "Элемент 15"
|
||||
|
||||
[node name="yelement16" parent="antenna2/grid" instance=ExtResource("4_2tw5p")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
value_name0 = "А"
|
||||
value_name1 = "φ"
|
||||
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
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
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
|
||||
value_name0 = "t, °C"
|
||||
value_name1 = "U, В"
|
||||
value_name2 = "CAN"
|
||||
name_min_size0 = Vector2i(35, 20)
|
||||
name_min_size1 = Vector2i(35, 20)
|
||||
name_min_size2 = Vector2i(35, 20)
|
||||
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
|
||||
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
|
||||
fname = "Плата АЦП"
|
||||
|
||||
250
scenes/контроль/блок-а.tscn
Normal file
250
scenes/контроль/блок-а.tscn
Normal file
@@ -0,0 +1,250 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bkxblfoj7ejv0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="1_xcvfs"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="2_ad1dj"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="3_vxg7f"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="4_1bnn6"]
|
||||
[ext_resource type="PackedScene" uid="uid://dyjtmfm4u58mu" path="res://scenes/контроль/уровень.tscn" id="5_3i5am"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3nd2u"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_oj3k3"]
|
||||
script/source = "@tool
|
||||
|
||||
extends PanelContainer
|
||||
|
||||
|
||||
@export var textures: Array
|
||||
|
||||
|
||||
@export var value0: float:
|
||||
set(v):
|
||||
value0 = v
|
||||
$margin/vbox/grid1/indicator0.value = v
|
||||
get:
|
||||
return value0
|
||||
|
||||
|
||||
@export var value1: float:
|
||||
set(v):
|
||||
value1 = v
|
||||
$margin/vbox/grid1/indicator1.value = v
|
||||
get:
|
||||
return value1
|
||||
|
||||
|
||||
@export var min_value0: float:
|
||||
set(v):
|
||||
min_value0 = v
|
||||
$margin/vbox/grid1/indicator0.min_value = v
|
||||
get:
|
||||
return min_value0
|
||||
|
||||
|
||||
@export var min_value1: float:
|
||||
set(v):
|
||||
min_value1 = v
|
||||
$margin/vbox/grid1/indicator1.min_value = v
|
||||
get:
|
||||
return min_value1
|
||||
|
||||
|
||||
@export var max_value0: float:
|
||||
set(v):
|
||||
max_value0 = v
|
||||
$margin/vbox/grid1/indicator0.max_value = v
|
||||
get:
|
||||
return max_value0
|
||||
|
||||
|
||||
@export var max_value1: float:
|
||||
set(v):
|
||||
max_value1 = v
|
||||
$margin/vbox/grid1/indicator1.max_value = v
|
||||
get:
|
||||
return max_value1
|
||||
|
||||
|
||||
@export var step0: float:
|
||||
set(v):
|
||||
step0 = v
|
||||
$margin/vbox/grid1/indicator0.step = v
|
||||
get:
|
||||
return step0
|
||||
|
||||
|
||||
@export var step1: float:
|
||||
set(v):
|
||||
step1 = v
|
||||
$margin/vbox/grid1/indicator1.step = v
|
||||
get:
|
||||
return step1
|
||||
|
||||
|
||||
@export var value_name0: String:
|
||||
set(v):
|
||||
value_name0 = v
|
||||
$margin/vbox/grid1/indicator0.value_name = v
|
||||
get:
|
||||
return value_name0
|
||||
|
||||
|
||||
@export var value_name1: String:
|
||||
set(v):
|
||||
value_name1 = v
|
||||
$margin/vbox/grid1/indicator1.value_name = v
|
||||
get:
|
||||
return value_name1
|
||||
|
||||
|
||||
@export var name_min_size0: Vector2i:
|
||||
set(v):
|
||||
name_min_size0 = v
|
||||
$margin/vbox/grid1/indicator0.name_min_size = v
|
||||
get:
|
||||
return name_min_size0
|
||||
|
||||
|
||||
@export var name_min_size1: Vector2i:
|
||||
set(v):
|
||||
name_min_size1 = v
|
||||
$margin/vbox/grid1/indicator1.name_min_size = v
|
||||
get:
|
||||
return name_min_size1
|
||||
|
||||
|
||||
@export var fname: String:
|
||||
set(v):
|
||||
fname = v
|
||||
$margin/vbox/grid0/fname.text = v
|
||||
get:
|
||||
return fname
|
||||
|
||||
@export var rname: String:
|
||||
set(v):
|
||||
rname = v
|
||||
$margin/vbox/grid0/rname.text = v
|
||||
get:
|
||||
return rname
|
||||
|
||||
|
||||
@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]
|
||||
get:
|
||||
return state
|
||||
|
||||
|
||||
@export var alignment: int:
|
||||
set(v):
|
||||
alignment = v
|
||||
$margin/vbox.alignment = v
|
||||
get:
|
||||
return alignment
|
||||
"
|
||||
|
||||
[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
|
||||
|
||||
|
||||
"
|
||||
|
||||
[node name="blok_a" type="PanelContainer"]
|
||||
editor_description = "Элемент замены из ЗИП"
|
||||
offset_right = 160.0
|
||||
offset_bottom = 88.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_3nd2u")
|
||||
script = SubResource("GDScript_oj3k3")
|
||||
textures = [ExtResource("1_xcvfs"), ExtResource("2_ad1dj"), ExtResource("3_vxg7f")]
|
||||
metadata/ref_des = ""
|
||||
metadata/dec_num = ""
|
||||
|
||||
[node name="rect" type="NinePatchRect" parent="."]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_1bnn6")
|
||||
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 = 2
|
||||
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="grid0" type="GridContainer" parent="margin/vbox"]
|
||||
layout_mode = 2
|
||||
columns = 3
|
||||
|
||||
[node name="state" type="TextureRect" parent="margin/vbox/grid0"]
|
||||
custom_minimum_size = Vector2(24, 24)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 6
|
||||
texture = ExtResource("1_xcvfs")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="fname" type="Label" parent="margin/vbox/grid0"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
custom_minimum_size = Vector2(0, 20)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_font_sizes/font_size = 17
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="rname" type="Label" parent="margin/vbox/grid0"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
theme_override_font_sizes/font_size = 22
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="grid1" type="GridContainer" parent="margin/vbox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 6
|
||||
|
||||
[node name="indicator0" parent="margin/vbox/grid1" instance=ExtResource("5_3i5am")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="indicator1" parent="margin/vbox/grid1" instance=ExtResource("5_3i5am")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
292
scenes/контроль/блок-б.tscn
Normal file
292
scenes/контроль/блок-б.tscn
Normal file
@@ -0,0 +1,292 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://7ps8s0jd2bdr"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="1_8cp2h"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="2_o7rki"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="3_vg8j2"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="4_a8fg2"]
|
||||
[ext_resource type="PackedScene" uid="uid://dyjtmfm4u58mu" path="res://scenes/контроль/уровень.tscn" id="5_526hg"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3nd2u"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_oj3k3"]
|
||||
script/source = "@tool
|
||||
|
||||
extends PanelContainer
|
||||
|
||||
|
||||
@export var textures: Array
|
||||
|
||||
|
||||
@export var value0: float:
|
||||
set(v):
|
||||
value0 = v
|
||||
$margin/vbox/grid1/indicator0.value = v
|
||||
get:
|
||||
return value0
|
||||
|
||||
|
||||
@export var value1: float:
|
||||
set(v):
|
||||
value1 = v
|
||||
$margin/vbox/grid1/indicator1.value = v
|
||||
get:
|
||||
return value1
|
||||
|
||||
|
||||
@export var value2: bool:
|
||||
set(v):
|
||||
value2 = v
|
||||
$margin/vbox/grid2/lbl_value.text = 'подключен' if v else 'нет связи'
|
||||
get:
|
||||
return value2
|
||||
|
||||
|
||||
@export var min_value0: float:
|
||||
set(v):
|
||||
min_value0 = v
|
||||
$margin/vbox/grid1/indicator0.min_value = v
|
||||
get:
|
||||
return min_value0
|
||||
|
||||
|
||||
@export var min_value1: float:
|
||||
set(v):
|
||||
min_value1 = v
|
||||
$margin/vbox/grid1/indicator1.min_value = v
|
||||
get:
|
||||
return min_value1
|
||||
|
||||
|
||||
@export var max_value0: float:
|
||||
set(v):
|
||||
max_value0 = v
|
||||
$margin/vbox/grid1/indicator0.max_value = v
|
||||
get:
|
||||
return max_value0
|
||||
|
||||
|
||||
@export var max_value1: float:
|
||||
set(v):
|
||||
max_value1 = v
|
||||
$margin/vbox/grid1/indicator1.max_value = v
|
||||
get:
|
||||
return max_value1
|
||||
|
||||
|
||||
@export var step0: float:
|
||||
set(v):
|
||||
step0 = v
|
||||
$margin/vbox/grid1/indicator0.step = v
|
||||
get:
|
||||
return step0
|
||||
|
||||
|
||||
@export var step1: float:
|
||||
set(v):
|
||||
step1 = v
|
||||
$margin/vbox/grid1/indicator1.step = v
|
||||
get:
|
||||
return step1
|
||||
|
||||
|
||||
@export var value_name0: String:
|
||||
set(v):
|
||||
value_name0 = v
|
||||
$margin/vbox/grid1/indicator0.value_name = v
|
||||
get:
|
||||
return value_name0
|
||||
|
||||
|
||||
@export var value_name1: String:
|
||||
set(v):
|
||||
value_name1 = v
|
||||
$margin/vbox/grid1/indicator1.value_name = v
|
||||
get:
|
||||
return value_name1
|
||||
|
||||
|
||||
@export var value_name2: String:
|
||||
set(v):
|
||||
value_name2 = v
|
||||
$margin/vbox/grid2/lbl_name.text = v
|
||||
get:
|
||||
return value_name2
|
||||
|
||||
|
||||
@export var name_min_size0: Vector2i:
|
||||
set(v):
|
||||
name_min_size0 = v
|
||||
$margin/vbox/grid1/indicator0.name_min_size = v
|
||||
get:
|
||||
return name_min_size0
|
||||
|
||||
|
||||
@export var name_min_size1: Vector2i:
|
||||
set(v):
|
||||
name_min_size1 = v
|
||||
$margin/vbox/grid1/indicator1.name_min_size = v
|
||||
get:
|
||||
return name_min_size1
|
||||
|
||||
|
||||
@export var name_min_size2: Vector2i:
|
||||
set(v):
|
||||
name_min_size2 = v
|
||||
$margin/vbox/grid2/lbl_name.custom_minimum_size = v
|
||||
get:
|
||||
return name_min_size2
|
||||
|
||||
|
||||
@export var fname: String:
|
||||
set(v):
|
||||
fname = v
|
||||
$margin/vbox/grid0/fname.text = v
|
||||
get:
|
||||
return fname
|
||||
|
||||
@export var rname: String:
|
||||
set(v):
|
||||
rname = v
|
||||
$margin/vbox/grid0/rname.text = v
|
||||
get:
|
||||
return rname
|
||||
|
||||
|
||||
@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]
|
||||
get:
|
||||
return state
|
||||
|
||||
|
||||
@export var alignment: int:
|
||||
set(v):
|
||||
alignment = v
|
||||
$margin/vbox.alignment = v
|
||||
get:
|
||||
return alignment
|
||||
"
|
||||
|
||||
[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
|
||||
|
||||
|
||||
"
|
||||
|
||||
[node name="blok_b" type="PanelContainer"]
|
||||
editor_description = "Элемент замены из ЗИП"
|
||||
offset_right = 160.0
|
||||
offset_bottom = 88.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_3nd2u")
|
||||
script = SubResource("GDScript_oj3k3")
|
||||
textures = [ExtResource("1_8cp2h"), ExtResource("2_o7rki"), ExtResource("3_vg8j2")]
|
||||
metadata/ref_des = ""
|
||||
metadata/dec_num = ""
|
||||
|
||||
[node name="rect" type="NinePatchRect" parent="."]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_a8fg2")
|
||||
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 = 2
|
||||
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="grid0" type="GridContainer" parent="margin/vbox"]
|
||||
layout_mode = 2
|
||||
columns = 3
|
||||
|
||||
[node name="state" type="TextureRect" parent="margin/vbox/grid0"]
|
||||
custom_minimum_size = Vector2(24, 24)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 6
|
||||
texture = ExtResource("1_8cp2h")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="fname" type="Label" parent="margin/vbox/grid0"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
custom_minimum_size = Vector2(0, 20)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_font_sizes/font_size = 17
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="rname" type="Label" parent="margin/vbox/grid0"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
theme_override_font_sizes/font_size = 22
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="grid1" type="GridContainer" parent="margin/vbox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 6
|
||||
|
||||
[node name="indicator0" parent="margin/vbox/grid1" instance=ExtResource("5_526hg")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="indicator1" parent="margin/vbox/grid1" instance=ExtResource("5_526hg")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="grid2" type="GridContainer" parent="margin/vbox"]
|
||||
layout_mode = 2
|
||||
columns = 2
|
||||
|
||||
[node name="lbl_name" type="Label" parent="margin/vbox/grid2"]
|
||||
custom_minimum_size = Vector2(30, 20)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 6
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="lbl_value" type="Label" parent="margin/vbox/grid2"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
theme_override_colors/font_color = Color(0.890196, 0.486275, 0.196078, 1)
|
||||
text = "нет связи"
|
||||
vertical_alignment = 1
|
||||
@@ -9,13 +9,19 @@ extends Control
|
||||
@export var fname: String:
|
||||
set(v):
|
||||
fname = v
|
||||
|
||||
get:
|
||||
return fname
|
||||
|
||||
@export var rname: String:
|
||||
set(v):
|
||||
rname = v
|
||||
get:
|
||||
return rname
|
||||
|
||||
|
||||
func set_header_text(header_text: String):
|
||||
$lbl_header.text = header_text
|
||||
|
||||
|
||||
@export var nodes_mask: String = ''
|
||||
|
||||
|
||||
@@ -1,12 +1,81 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dyjtmfm4u58mu"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dyjtmfm4u58mu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://00871pb6moln" path="res://data/прогресс-фон-1.png" id="1_n4uxh"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1k856fxhrjnh" path="res://data/прогресс-заполнение-1.png" id="2_os1gp"]
|
||||
[ext_resource type="FontFile" uid="uid://befva8r034a4v" path="res://data/DSEG7Classic-Regular.ttf" id="3_px0hn"]
|
||||
|
||||
[node name="indicator_h" type="TextureProgressBar"]
|
||||
offset_right = 100.0
|
||||
offset_bottom = 20.0
|
||||
value = 24.0
|
||||
[sub_resource type="GDScript" id="GDScript_eyk47"]
|
||||
script/source = "@tool
|
||||
|
||||
extends GridContainer
|
||||
|
||||
@export var min_value: float:
|
||||
set(v):
|
||||
min_value = v
|
||||
$indicator_h.min_value = v
|
||||
get:
|
||||
return min_value
|
||||
|
||||
|
||||
@export var max_value: float:
|
||||
set(v):
|
||||
max_value = v
|
||||
$indicator_h.max_value = v
|
||||
get:
|
||||
return max_value
|
||||
|
||||
|
||||
@export var step: float:
|
||||
set(v):
|
||||
step = v
|
||||
$indicator_h.step = v
|
||||
get:
|
||||
return step
|
||||
|
||||
|
||||
@export var value: float:
|
||||
set(v):
|
||||
value = v
|
||||
$indicator_h.value = v
|
||||
$lbl_val.text = '%02d' % int(v)
|
||||
get:
|
||||
return value
|
||||
|
||||
|
||||
@export var value_name: String:
|
||||
set(v):
|
||||
value_name = v
|
||||
$lbl_name.text = v
|
||||
get:
|
||||
return value_name
|
||||
|
||||
|
||||
@export var name_min_size: Vector2i:
|
||||
set(v):
|
||||
name_min_size = v
|
||||
var l = $lbl_name
|
||||
$lbl_name.custom_minimum_size = v
|
||||
get:
|
||||
return name_min_size
|
||||
"
|
||||
|
||||
[node name="grid" type="GridContainer"]
|
||||
offset_right = 95.0
|
||||
offset_bottom = 19.0
|
||||
columns = 3
|
||||
script = SubResource("GDScript_eyk47")
|
||||
|
||||
[node name="lbl_name" type="Label" parent="."]
|
||||
custom_minimum_size = Vector2(30, 20)
|
||||
layout_mode = 2
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="indicator_h" type="TextureProgressBar" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
value = 50.0
|
||||
nine_patch_stretch = true
|
||||
stretch_margin_left = 8
|
||||
stretch_margin_top = 8
|
||||
@@ -14,5 +83,14 @@ stretch_margin_right = 8
|
||||
stretch_margin_bottom = 8
|
||||
texture_under = ExtResource("1_n4uxh")
|
||||
texture_progress = ExtResource("2_os1gp")
|
||||
tint_under = Color(0.65098, 0.65098, 0.65098, 0.862745)
|
||||
tint_progress = Color(0.180392, 0.517647, 0.321569, 0.901961)
|
||||
tint_under = Color(1, 1, 1, 0.419608)
|
||||
tint_progress = Color(0.890196, 0.486275, 0.196078, 1)
|
||||
|
||||
[node name="lbl_val" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/font_color = Color(0.890196, 0.486275, 0.196078, 1)
|
||||
theme_override_fonts/font = ExtResource("3_px0hn")
|
||||
text = "00"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
@@ -67,7 +67,7 @@ func _on_resized() -> void:
|
||||
$txr_state.texture = textures[v]
|
||||
"
|
||||
|
||||
[node name="element_v" type="Control"]
|
||||
[node name="yelement_v" type="Control"]
|
||||
editor_description = "Элемент замены из ЗИП"
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
|
||||
@@ -68,7 +68,7 @@ func _enter_tree() -> void:
|
||||
|
||||
"
|
||||
|
||||
[node name="element_h" type="PanelContainer"]
|
||||
[node name="yelement_g" type="PanelContainer"]
|
||||
editor_description = "Элемент замены из ЗИП"
|
||||
offset_right = 150.0
|
||||
offset_bottom = 50.0
|
||||
|
||||
Reference in New Issue
Block a user