Доработка. Один Label для отображения заголовка всех приборов

This commit is contained in:
sasha80
2025-05-06 14:32:38 +03:00
parent 564d1f0006
commit 2b0ec63d7f
11 changed files with 11 additions and 90 deletions

View File

@@ -20,15 +20,6 @@ offset_bottom = 30.0
scale = Vector2(1, 0.9)
script = ExtResource("1_151rh")
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
offset_right = 578.0
offset_bottom = 28.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора"
horizontal_alignment = 1
vertical_alignment = 1
[node name="request" type="HTTPRequest" parent="."]
script = ExtResource("2_4vyhj")

View File

@@ -20,17 +20,6 @@ offset_bottom = 108.0
scale = Vector2(1, 0.9)
script = ExtResource("1_tfses")
[node name="lbl_header" type="Label" parent="."]
layout_mode = 1
offset_left = -11.0
offset_top = -87.0
offset_right = 567.0
offset_bottom = -59.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора"
horizontal_alignment = 1
vertical_alignment = 1
[node name="request" type="HTTPRequest" parent="."]
script = ExtResource("2_miwrd")

View File

@@ -29,17 +29,6 @@ offset_bottom = 432.0
script = ExtResource("3_wip3a")
fname = "Кассета У5"
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
offset_left = 20.0
offset_top = 214.0
offset_right = 640.0
offset_bottom = 240.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора ПРД-К"
horizontal_alignment = 1
vertical_alignment = 1
[node name="maa2000_A22" parent="." instance=ExtResource("1_8dmgr")]
layout_mode = 0
offset_left = 485.0

View File

@@ -78,17 +78,6 @@ text = "Панель
horizontal_alignment = 1
vertical_alignment = 1
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
offset_left = 20.0
offset_top = 214.0
offset_right = 640.0
offset_bottom = 240.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора ПРД-Н"
horizontal_alignment = 1
vertical_alignment = 1
[node name="kasseta_U5" parent="." instance=ExtResource("5_ej152")]
layout_mode = 0
offset_left = 175.0

View File

@@ -79,17 +79,6 @@ text = "Панель
horizontal_alignment = 1
vertical_alignment = 1
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
offset_left = 20.0
offset_top = 214.0
offset_right = 640.0
offset_bottom = 240.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора ПРД-В"
horizontal_alignment = 1
vertical_alignment = 1
[node name="kasseta_U5" parent="." instance=ExtResource("4_gl2bl")]
layout_mode = 0
offset_left = 175.0

View File

@@ -13,15 +13,6 @@ offset_right = 115.0
offset_bottom = 150.0
script = ExtResource("1_sqyma")
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
offset_right = 301.0
offset_bottom = 26.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора"
horizontal_alignment = 1
vertical_alignment = 1
[node name="blok_bpo_a1" parent="." instance=ExtResource("3_xqaxm")]
layout_mode = 0
offset_left = 40.0

View File

@@ -141,18 +141,6 @@ offset_right = 337.0
offset_bottom = 35.0
text = "Кассета В-13"
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
offset_left = 199.0
offset_top = 225.0
offset_right = 704.0
offset_bottom = 251.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора УФ
"
horizontal_alignment = 1
vertical_alignment = 1
[node name="lbl_header2" type="Label" parent="."]
visible = false
layout_mode = 0

View File

@@ -27,17 +27,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
offset_left = 75.0
offset_top = 275.0
offset_right = 655.0
offset_bottom = 301.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности устройства У-ЭП"
horizontal_alignment = 1
vertical_alignment = 1
[node name="spt25_A1" parent="." instance=ExtResource("6_60xs3")]
layout_mode = 0
offset_left = 88.0

View File

@@ -73,7 +73,7 @@ func on_pribor_press(pribor_path, header_text, pribor_node):
if not pribor:
push_error('экземпляр не создан: \"%s\" (%s)' % [pribor_path, header_text])
return
pribor.set_header_text(header_text)
$lbl_header.text = header_text
var meta_list = pribor_node.get_meta_list()
if meta_list.find('unit_name') > -1:
var unit_name = pribor_node.get_meta('unit_name')

View File

@@ -991,6 +991,16 @@ offset_bottom = 981.0
theme_override_font_sizes/font_size = 17
text = "Сбой"
[node name="lbl_header" type="Label" parent="."]
offset_left = 75.0
offset_top = 15.0
offset_right = 653.0
offset_bottom = 43.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора"
horizontal_alignment = 1
vertical_alignment = 1
[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_afsp_1" to="pribor_afsp_1" method="_on_toggled"]

View File

@@ -14,7 +14,3 @@ extends Control
@export var rname: String:
set(v):
rname = v
func set_header_text(header_text: String):
$lbl_header.text = header_text