Merge remote-tracking branch 'sasha/master'
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 330 KiB |
BIN
data/прд-н-1.png
BIN
data/прд-н-1.png
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 MiB |
BIN
data/прогресс-заполнение-1.png
Normal file
BIN
data/прогресс-заполнение-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 197 B |
@@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b374sx8vongp8"
|
||||
path="res://.godot/imported/прд-н-1.png-de5109feb392b36ebc078a61c3b36e94.ctex"
|
||||
uid="uid://c1k856fxhrjnh"
|
||||
path="res://.godot/imported/прогресс-заполнение-1.png-8f8393b6735f8a6bd330fcb64a737cde.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/прд-н-1.png"
|
||||
dest_files=["res://.godot/imported/прд-н-1.png-de5109feb392b36ebc078a61c3b36e94.ctex"]
|
||||
source_file="res://data/прогресс-заполнение-1.png"
|
||||
dest_files=["res://.godot/imported/прогресс-заполнение-1.png-8f8393b6735f8a6bd330fcb64a737cde.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
BIN
data/прогресс-фон-1.png
Normal file
BIN
data/прогресс-фон-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 195 B |
@@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b1brrobrh4abl"
|
||||
path="res://.godot/imported/прд-н-1-мнемо.png-b182e3c955273e94b2b553f63ee3d54b.ctex"
|
||||
uid="uid://00871pb6moln"
|
||||
path="res://.godot/imported/прогресс-фон-1.png-64e1c4edb6f9c678c20df2bdb91e5b2b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/прд-н-1-мнемо.png"
|
||||
dest_files=["res://.godot/imported/прд-н-1-мнемо.png-b182e3c955273e94b2b553f63ee3d54b.ctex"]
|
||||
source_file="res://data/прогресс-фон-1.png"
|
||||
dest_files=["res://.godot/imported/прогресс-фон-1.png-64e1c4edb6f9c678c20df2bdb91e5b2b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dnuexoef2nnv5"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dnuexoef2nnv5"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b1brrobrh4abl" path="res://data/прд-н-1-мнемо.png" id="1_jlonr"]
|
||||
[ext_resource type="PackedScene" uid="uid://ckrunkgwb5cuo" path="res://scenes/контроль/element_v.tscn" id="2_lpj3d"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3iqb5e4g81m5" path="res://scenes/контроль/element_h.tscn" id="2_lpj3d"]
|
||||
[ext_resource type="PackedScene" uid="uid://p2suppildvq0" path="res://scenes/контроль/element_v.tscn" id="3_2shxq"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="4_i1no5"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="5_n0aaa"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="6_sj3be"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="7_rhdhp"]
|
||||
[ext_resource type="PackedScene" uid="uid://dyjtmfm4u58mu" path="res://scenes/контроль/indicator_h.tscn" id="8_q1orh"]
|
||||
|
||||
[node name="pribor_prd_n_1" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -11,141 +16,877 @@ offset_top = 30.0
|
||||
offset_right = 15.0
|
||||
offset_bottom = 30.0
|
||||
|
||||
[node name="подкладка" type="Sprite2D" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.345098)
|
||||
position = Vector2(436, 589)
|
||||
scale = Vector2(0.13, 0.13)
|
||||
texture = ExtResource("1_jlonr")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="test_label" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
text = "Схема контроля прибора ПРД-Н1"
|
||||
metadata/_edit_use_anchors_ = true
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A13L" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 20.0
|
||||
offset_left = 10.0
|
||||
offset_top = 235.0
|
||||
offset_right = 173.0
|
||||
offset_bottom = 277.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 285.0
|
||||
fname = "Ячейка"
|
||||
rname = "A13"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A13R" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 460.0
|
||||
offset_left = 480.0
|
||||
offset_top = 235.0
|
||||
offset_right = 613.0
|
||||
offset_bottom = 277.0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 285.0
|
||||
fname = "Ячейка"
|
||||
rname = "A13"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A14L" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 20.0
|
||||
offset_top = 320.0
|
||||
offset_right = 173.0
|
||||
offset_bottom = 362.0
|
||||
offset_left = 10.0
|
||||
offset_top = 305.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 355.0
|
||||
fname = "Ячейка"
|
||||
rname = "A14"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A14R" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 460.0
|
||||
offset_top = 320.0
|
||||
offset_right = 613.0
|
||||
offset_bottom = 362.0
|
||||
offset_left = 480.0
|
||||
offset_top = 305.0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 355.0
|
||||
fname = "Ячейка"
|
||||
rname = "A14"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A15L" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 20.0
|
||||
offset_top = 400.0
|
||||
offset_right = 173.0
|
||||
offset_bottom = 442.0
|
||||
offset_left = 10.0
|
||||
offset_top = 405.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 455.0
|
||||
fname = "Ячейка"
|
||||
rname = "A15"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A15R" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 460.0
|
||||
offset_top = 400.0
|
||||
offset_right = 613.0
|
||||
offset_bottom = 442.0
|
||||
offset_left = 480.0
|
||||
offset_top = 405.0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 455.0
|
||||
fname = "Ячейка"
|
||||
rname = "A15"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A16L" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 20.0
|
||||
offset_top = 490.0
|
||||
offset_right = 173.0
|
||||
offset_bottom = 532.0
|
||||
offset_left = 10.0
|
||||
offset_top = 480.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 530.0
|
||||
fname = "Ячейка"
|
||||
rname = "A16"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A16R" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 460.0
|
||||
offset_top = 490.0
|
||||
offset_right = 613.0
|
||||
offset_bottom = 532.0
|
||||
offset_left = 480.0
|
||||
offset_top = 480.0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 530.0
|
||||
fname = "Ячейка"
|
||||
rname = "A16"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A17L" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 20.0
|
||||
offset_left = 10.0
|
||||
offset_top = 580.0
|
||||
offset_right = 173.0
|
||||
offset_bottom = 622.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 630.0
|
||||
fname = "Ячейка"
|
||||
rname = "A17"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A17R" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 460.0
|
||||
offset_left = 480.0
|
||||
offset_top = 580.0
|
||||
offset_right = 613.0
|
||||
offset_bottom = 622.0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 630.0
|
||||
fname = "Ячейка"
|
||||
rname = "A17"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A18L" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 20.0
|
||||
offset_top = 665.0
|
||||
offset_right = 173.0
|
||||
offset_bottom = 707.0
|
||||
offset_left = 10.0
|
||||
offset_top = 655.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 705.0
|
||||
fname = "Ячейка"
|
||||
rname = "A18"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A18R" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 460.0
|
||||
offset_top = 665.0
|
||||
offset_right = 613.0
|
||||
offset_bottom = 707.0
|
||||
offset_left = 480.0
|
||||
offset_top = 655.0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 705.0
|
||||
fname = "Ячейка"
|
||||
rname = "A18"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A23L" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 15.0
|
||||
offset_top = 740.0
|
||||
offset_right = 169.0
|
||||
offset_bottom = 890.0
|
||||
offset_left = 10.0
|
||||
offset_top = 750.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 905.0
|
||||
fname = "MAA2000"
|
||||
rname = "A23"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A23R" parent="." instance=ExtResource("2_lpj3d")]
|
||||
layout_mode = 2
|
||||
offset_left = 460.0
|
||||
offset_top = 740.0
|
||||
offset_right = 614.0
|
||||
offset_bottom = 890.0
|
||||
offset_left = 480.0
|
||||
offset_top = 750.0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 905.0
|
||||
fname = "MAA2000"
|
||||
rname = "A23"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_ZZ0" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 178.0
|
||||
offset_top = 229.0
|
||||
offset_right = 473.0
|
||||
offset_bottom = 389.0
|
||||
texture = ExtResource("4_i1no5")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
|
||||
[node name="ref_A1" parent="ref_ZZ0" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 7.0
|
||||
offset_top = 5.0
|
||||
offset_right = 57.0
|
||||
offset_bottom = 155.0
|
||||
fname = "ИП5-25"
|
||||
rname = "A1"
|
||||
|
||||
[node name="ref_A2" parent="ref_ZZ0" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 56.0
|
||||
offset_top = 5.0
|
||||
offset_right = 106.0
|
||||
offset_bottom = 155.0
|
||||
fname = "ЯУ-07Б"
|
||||
rname = "A2"
|
||||
|
||||
[node name="ref_A3" parent="ref_ZZ0" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 102.0
|
||||
offset_top = 5.0
|
||||
offset_right = 152.0
|
||||
offset_bottom = 155.0
|
||||
fname = "ЭМС-Г"
|
||||
rname = "A3"
|
||||
|
||||
[node name="ref_A4" parent="ref_ZZ0" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 147.0
|
||||
offset_top = 5.0
|
||||
offset_right = 197.0
|
||||
offset_bottom = 155.0
|
||||
fname = "УГ"
|
||||
rname = "A4"
|
||||
|
||||
[node name="ref_A5" parent="ref_ZZ0" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 192.0
|
||||
offset_top = 5.0
|
||||
offset_right = 242.0
|
||||
offset_bottom = 155.0
|
||||
fname = "УКП"
|
||||
rname = "A5"
|
||||
|
||||
[node name="ref_A6" parent="ref_ZZ0" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 237.0
|
||||
offset_top = 4.0
|
||||
offset_right = 287.0
|
||||
offset_bottom = 154.0
|
||||
fname = "УКП"
|
||||
rname = "A6"
|
||||
|
||||
[node name="ref_ZZ1" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 178.0
|
||||
offset_top = 399.0
|
||||
offset_right = 473.0
|
||||
offset_bottom = 559.0
|
||||
texture = ExtResource("4_i1no5")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A1" parent="ref_ZZ1" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 56.0
|
||||
offset_top = 5.0
|
||||
offset_right = 106.0
|
||||
offset_bottom = 155.0
|
||||
rname = "A1"
|
||||
|
||||
[node name="ref_A2" parent="ref_ZZ1" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 102.0
|
||||
offset_top = 5.0
|
||||
offset_right = 152.0
|
||||
offset_bottom = 155.0
|
||||
rname = "A2"
|
||||
|
||||
[node name="ref_A3" parent="ref_ZZ1" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 147.0
|
||||
offset_top = 5.0
|
||||
offset_right = 197.0
|
||||
offset_bottom = 155.0
|
||||
rname = "A3"
|
||||
|
||||
[node name="ref_A4" parent="ref_ZZ1" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 192.0
|
||||
offset_top = 5.0
|
||||
offset_right = 242.0
|
||||
offset_bottom = 155.0
|
||||
rname = "A4"
|
||||
|
||||
[node name="ref_ZZ2" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 178.0
|
||||
offset_top = 574.0
|
||||
offset_right = 473.0
|
||||
offset_bottom = 734.0
|
||||
texture = ExtResource("4_i1no5")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ref_A21" parent="ref_ZZ2" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 101.0
|
||||
offset_top = 5.0
|
||||
offset_right = 151.0
|
||||
offset_bottom = 155.0
|
||||
fname = "ИП12-50"
|
||||
rname = "A1"
|
||||
|
||||
[node name="ref_A20" parent="ref_ZZ2" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 147.0
|
||||
offset_top = 5.0
|
||||
offset_right = 197.0
|
||||
offset_bottom = 155.0
|
||||
fname = "ИП9-50"
|
||||
rname = "A2"
|
||||
|
||||
[node name="ref_A19" parent="ref_ZZ2" instance=ExtResource("3_2shxq")]
|
||||
offset_left = 192.0
|
||||
offset_top = 5.0
|
||||
offset_right = 242.0
|
||||
offset_bottom = 155.0
|
||||
fname = "ИП9-50"
|
||||
rname = "A3"
|
||||
|
||||
[node name="ref_ZZ3" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 178.0
|
||||
offset_top = 750.0
|
||||
offset_right = 473.0
|
||||
offset_bottom = 905.0
|
||||
texture = ExtResource("4_i1no5")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="ref_ZZ3"]
|
||||
self_modulate = Color(0.996078, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 10.0
|
||||
offset_right = 282.0
|
||||
offset_bottom = 140.0
|
||||
text = "Панель
|
||||
предохранителей"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="ref_ZZ4" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 650.0
|
||||
offset_top = 235.0
|
||||
offset_right = 870.0
|
||||
offset_bottom = 560.0
|
||||
texture = ExtResource("4_i1no5")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="indicator_h1" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 55.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 75.0
|
||||
|
||||
[node name="indicator_h2" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 75.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 95.0
|
||||
|
||||
[node name="indicator_h3" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 95.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 115.0
|
||||
|
||||
[node name="indicator_h4" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 115.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 135.0
|
||||
|
||||
[node name="indicator_h5" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 135.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 155.0
|
||||
|
||||
[node name="indicator_h6" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 155.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 175.0
|
||||
|
||||
[node name="indicator_h7" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 175.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 195.0
|
||||
|
||||
[node name="indicator_h8" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 195.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 215.0
|
||||
|
||||
[node name="indicator_h9" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 215.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 235.0
|
||||
|
||||
[node name="indicator_h10" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 235.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 255.0
|
||||
|
||||
[node name="indicator_h11" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 255.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 275.0
|
||||
|
||||
[node name="indicator_h12" parent="ref_ZZ4" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 275.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 295.0
|
||||
|
||||
[node name="lbl_A1" type="Label" parent="ref_ZZ4"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 63.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 89.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A2" type="Label" parent="ref_ZZ4"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 102.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 128.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A2"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A3" type="Label" parent="ref_ZZ4"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 142.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 168.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A3"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A4" type="Label" parent="ref_ZZ4"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 182.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 208.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A4"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A5" type="Label" parent="ref_ZZ4"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 222.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 248.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A5"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A6" type="Label" parent="ref_ZZ4"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 262.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 288.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A6"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_rname" type="Label" parent="ref_ZZ4"]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 6.0
|
||||
offset_right = 215.0
|
||||
offset_bottom = 32.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A5"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_fname" type="Label" parent="ref_ZZ4"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 85.0
|
||||
offset_top = 6.0
|
||||
offset_right = 129.0
|
||||
offset_bottom = 32.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "ДОУ-2"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_tmin" type="Label" parent="ref_ZZ4"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 10.0
|
||||
offset_top = 292.0
|
||||
offset_right = 45.0
|
||||
offset_bottom = 312.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "-40"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_tmax" type="Label" parent="ref_ZZ4"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 147.0
|
||||
offset_top = 292.0
|
||||
offset_right = 196.0
|
||||
offset_bottom = 312.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "-60° C"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_pmin" type="Label" parent="ref_ZZ4"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 7.0
|
||||
offset_top = 33.0
|
||||
offset_right = 27.0
|
||||
offset_bottom = 53.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "0"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_pmax" type="Label" parent="ref_ZZ4"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 137.0
|
||||
offset_top = 33.0
|
||||
offset_right = 186.0
|
||||
offset_bottom = 53.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "100%"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="txr_state" type="TextureRect" parent="ref_ZZ4"]
|
||||
layout_mode = 0
|
||||
offset_left = -610.0
|
||||
offset_top = 701.0
|
||||
offset_right = -386.0
|
||||
offset_bottom = 925.0
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("5_n0aaa")
|
||||
|
||||
[node name="ref_ZZ5" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 650.0
|
||||
offset_top = 580.0
|
||||
offset_right = 870.0
|
||||
offset_bottom = 905.0
|
||||
texture = ExtResource("4_i1no5")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="indicator_h1" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 55.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 75.0
|
||||
|
||||
[node name="indicator_h2" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 75.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 95.0
|
||||
|
||||
[node name="indicator_h3" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 95.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 115.0
|
||||
|
||||
[node name="indicator_h4" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 115.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 135.0
|
||||
|
||||
[node name="indicator_h5" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 135.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 155.0
|
||||
|
||||
[node name="indicator_h6" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 155.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 175.0
|
||||
|
||||
[node name="indicator_h7" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 175.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 195.0
|
||||
|
||||
[node name="indicator_h8" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 195.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 215.0
|
||||
|
||||
[node name="indicator_h9" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 215.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 235.0
|
||||
|
||||
[node name="indicator_h10" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 235.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 255.0
|
||||
|
||||
[node name="indicator_h11" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 255.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 275.0
|
||||
|
||||
[node name="indicator_h12" parent="ref_ZZ5" instance=ExtResource("8_q1orh")]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 275.0
|
||||
offset_right = 162.0
|
||||
offset_bottom = 295.0
|
||||
|
||||
[node name="lbl_A1" type="Label" parent="ref_ZZ5"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 63.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 89.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A2" type="Label" parent="ref_ZZ5"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 102.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 128.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A2"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A3" type="Label" parent="ref_ZZ5"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 142.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 168.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A3"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A4" type="Label" parent="ref_ZZ5"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 182.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 208.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A4"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A5" type="Label" parent="ref_ZZ5"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 222.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 248.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A5"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_A6" type="Label" parent="ref_ZZ5"]
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 262.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 288.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A6"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_rname" type="Label" parent="ref_ZZ5"]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 6.0
|
||||
offset_right = 215.0
|
||||
offset_bottom = 32.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A6"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_fname" type="Label" parent="ref_ZZ5"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 85.0
|
||||
offset_top = 6.0
|
||||
offset_right = 129.0
|
||||
offset_bottom = 32.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "ДОУ-3"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_tmin" type="Label" parent="ref_ZZ5"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 10.0
|
||||
offset_top = 292.0
|
||||
offset_right = 45.0
|
||||
offset_bottom = 312.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "-40"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_tmax" type="Label" parent="ref_ZZ5"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 147.0
|
||||
offset_top = 292.0
|
||||
offset_right = 196.0
|
||||
offset_bottom = 312.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "-60° C"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_pmin" type="Label" parent="ref_ZZ5"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 7.0
|
||||
offset_top = 33.0
|
||||
offset_right = 27.0
|
||||
offset_bottom = 53.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "0"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_pmax" type="Label" parent="ref_ZZ5"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 137.0
|
||||
offset_top = 33.0
|
||||
offset_right = 186.0
|
||||
offset_bottom = 53.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "100%"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="txr_state" type="TextureRect" parent="ref_ZZ5"]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 9.0
|
||||
offset_right = 236.0
|
||||
offset_bottom = 233.0
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("5_n0aaa")
|
||||
|
||||
[node name="txr_legend3" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 658.0
|
||||
offset_top = 246.0
|
||||
offset_right = 882.0
|
||||
offset_bottom = 470.0
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("5_n0aaa")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="lbl_legend1" type="Label" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 51.0
|
||||
offset_top = 930.0
|
||||
offset_right = 124.0
|
||||
offset_bottom = 950.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "Исправно"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="txr_legend0" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 223.0
|
||||
offset_top = 930.0
|
||||
offset_right = 447.0
|
||||
offset_bottom = 1154.0
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("6_sj3be")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="lbl_legend0" type="Label" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 251.0
|
||||
offset_top = 930.0
|
||||
offset_right = 324.0
|
||||
offset_bottom = 950.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "Ожидание результата"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="txr_legend2" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 480.0
|
||||
offset_top = 930.0
|
||||
offset_right = 704.0
|
||||
offset_bottom = 1154.0
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("7_rhdhp")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="lbl_legend2" type="Label" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 508.0
|
||||
offset_top = 930.0
|
||||
offset_right = 664.0
|
||||
offset_bottom = 950.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "Сбой"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="lbl_header" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 10.0
|
||||
offset_top = 195.0
|
||||
offset_right = 865.0
|
||||
offset_bottom = 221.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Схема контроля прибора ПРД-Н1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
self_modulate = Color(0.835294, 0.141176, 0.286275, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 165.0
|
||||
offset_top = 905.0
|
||||
offset_right = 540.0
|
||||
offset_bottom = 924.0
|
||||
text = "** Позиционные обозначения требуют уточнения **"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
@@ -63,12 +63,15 @@ func _enter_tree() -> void:
|
||||
|
||||
"
|
||||
|
||||
[node name="element_v" type="PanelContainer"]
|
||||
offset_right = 153.0
|
||||
offset_bottom = 42.0
|
||||
[node name="element_h" type="PanelContainer"]
|
||||
editor_description = "Элемент замены из ЗИП"
|
||||
offset_right = 150.0
|
||||
offset_bottom = 50.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_3nd2u")
|
||||
script = SubResource("GDScript_oj3k3")
|
||||
textures = [ExtResource("1_vtino"), ExtResource("2_jqsb6"), ExtResource("3_cw6yg")]
|
||||
metadata/ref_des = ""
|
||||
metadata/dec_num = ""
|
||||
|
||||
[node name="rect" type="NinePatchRect" parent="."]
|
||||
layout_mode = 2
|
||||
@@ -101,14 +104,15 @@ custom_minimum_size = Vector2(24, 24)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 6
|
||||
texture = ExtResource("2_jqsb6")
|
||||
texture = ExtResource("1_vtino")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="fname" type="Label" parent="margin/vbox/grid"]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.588235)
|
||||
theme_override_font_sizes/font_size = 17
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
|
||||
@@ -1,31 +1,52 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://ckrunkgwb5cuo"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://p2suppildvq0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="1_1rpfy"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="1_60d60"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="2_4s76c"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="3_bfvei"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="1_01aoa"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="2_4b43i"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="2_q7pyf"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="3_u8ivy"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3nd2u"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_oj3k3"]
|
||||
[sub_resource type="GDScript" id="GDScript_fbktk"]
|
||||
script/source = "@tool
|
||||
|
||||
extends PanelContainer
|
||||
extends Control
|
||||
|
||||
|
||||
@export var textures: Array
|
||||
@export var margins: Array[int] = [8, 8, 8, 8] # top, left, bottom, right
|
||||
|
||||
|
||||
@export var textures: Array[Texture]
|
||||
|
||||
|
||||
@export var fname: String:
|
||||
set(v):
|
||||
fname = v
|
||||
$margin/vbox/grid/fname.text = v
|
||||
$lbl_fname.text = v
|
||||
|
||||
|
||||
@export var rname: String:
|
||||
set(v):
|
||||
rname = v
|
||||
$margin/vbox/grid/rname.text = v
|
||||
$lbl_rname.text = v
|
||||
|
||||
|
||||
func _resize_children() -> void:
|
||||
$lbl_rname.size.x = size.x
|
||||
$lbl_rname.position.y = margins[0]
|
||||
$lbl_fname.size.y = size.x
|
||||
$lbl_fname.position.y = size.y / 2 + $lbl_fname.size.x / 2
|
||||
$txr_state.position.x = size.x / 2 - ($txr_state.size.x * $txr_state.scale.x) / 2
|
||||
$txr_state.position.y = size.y - $txr_state.size.y * $txr_state.scale.x - margins[2]
|
||||
|
||||
|
||||
func _on_nine_patch_rect_resized() -> void:
|
||||
size = $np_rect.size
|
||||
_resize_children()
|
||||
|
||||
|
||||
|
||||
func _on_resized() -> void:
|
||||
$np_rect.size = size
|
||||
_resize_children()
|
||||
|
||||
|
||||
@export var state: int:
|
||||
@@ -33,89 +54,61 @@ extends PanelContainer
|
||||
v = 0 if v < 0 else v
|
||||
v %= textures.size()
|
||||
state = v
|
||||
$margin/vbox/grid/state.texture = textures[v]
|
||||
$txr_state.texture = textures[v]
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_45hqb"]
|
||||
script/source = "@tool
|
||||
[node name="element_v" type="Control"]
|
||||
editor_description = "Элемент замены из ЗИП"
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 50.0
|
||||
offset_bottom = 150.0
|
||||
script = SubResource("GDScript_fbktk")
|
||||
textures = Array[Texture]([ExtResource("1_01aoa"), ExtResource("2_q7pyf"), ExtResource("3_u8ivy")])
|
||||
metadata/ref_des = ""
|
||||
metadata/dec_num = ""
|
||||
|
||||
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="element_h" type="PanelContainer"]
|
||||
offset_right = 153.0
|
||||
offset_bottom = 42.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_3nd2u")
|
||||
script = SubResource("GDScript_oj3k3")
|
||||
textures = [ExtResource("1_1rpfy"), ExtResource("2_4s76c"), ExtResource("3_bfvei")]
|
||||
|
||||
[node name="rect" type="NinePatchRect" parent="."]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("1_60d60")
|
||||
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="grid" type="GridContainer" parent="margin/vbox"]
|
||||
layout_mode = 2
|
||||
columns = 3
|
||||
|
||||
[node name="state" type="TextureRect" parent="margin/vbox/grid"]
|
||||
custom_minimum_size = Vector2(24, 24)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 6
|
||||
texture = ExtResource("2_4s76c")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="fname" type="Label" parent="margin/vbox/grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.588235)
|
||||
[node name="lbl_rname" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_top = 8.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = 34.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="rname" type="Label" parent="margin/vbox/grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
theme_override_font_sizes/font_size = 22
|
||||
horizontal_alignment = 2
|
||||
[node name="lbl_fname" type="Label" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_top = 102.0
|
||||
offset_right = 54.0
|
||||
offset_bottom = 152.0
|
||||
rotation = -1.5708
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "Ячейка"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="txr_state" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 13.8
|
||||
offset_top = 119.6
|
||||
offset_right = 237.8
|
||||
offset_bottom = 343.6
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("1_01aoa")
|
||||
|
||||
[node name="np_rect" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 50.0
|
||||
offset_bottom = 150.0
|
||||
texture = ExtResource("2_4b43i")
|
||||
region_rect = Rect2(0, 0, 63, 63)
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
patch_margin_right = 16
|
||||
patch_margin_bottom = 16
|
||||
|
||||
[connection signal="resized" from="." to="." method="_on_resized"]
|
||||
[connection signal="resized" from="np_rect" to="." method="_on_nine_patch_rect_resized"]
|
||||
|
||||
18
scenes/контроль/indicator_h.tscn
Normal file
18
scenes/контроль/indicator_h.tscn
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=3 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"]
|
||||
|
||||
[node name="indicator_h" type="TextureProgressBar"]
|
||||
offset_right = 100.0
|
||||
offset_bottom = 20.0
|
||||
value = 24.0
|
||||
nine_patch_stretch = true
|
||||
stretch_margin_left = 8
|
||||
stretch_margin_top = 8
|
||||
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)
|
||||
Reference in New Issue
Block a user