Доработка. В процессе. Разделить прибор РТР на два АФСП. Поправлено расположение и масштаб

This commit is contained in:
sasha80
2025-05-06 11:45:28 +03:00
parent caa79a6a9e
commit 8a90afea96
6 changed files with 14 additions and 189 deletions

View File

@@ -13,16 +13,13 @@ func _ready(): wait_time = ProjectSettings.get_setting('application/config/unit_
[node name="pribor_afsp" type="Control"]
layout_mode = 3
anchors_preset = 0
offset_top = 40.0
offset_bottom = 40.0
scale = Vector2(0.9, 0.9)
script = ExtResource("1_151rh")
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
offset_top = -44.0
offset_right = 578.0
offset_bottom = -17.0
offset_bottom = 28.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора"
horizontal_alignment = 1
@@ -37,6 +34,9 @@ autostart = true
script = SubResource("GDScript_yhnwg")
[node name="bort" parent="." instance=ExtResource("3_d7iti")]
layout_mode = 0
offset_top = 27.7778
offset_bottom = 1216.78
metadata/DeviceName = &"Устройство РР левого борта"
[connection signal="child_entered_tree" from="request_rtr" to="request_rtr" method="_on_child_entered_tree"]

View File

@@ -21,7 +21,7 @@ scale = Vector2(0.9, 0.9)
script = ExtResource("1_tfses")
[node name="lbl_header" type="Label" parent="."]
layout_mode = 0
layout_mode = 1
offset_left = -11.0
offset_top = -87.0
offset_right = 567.0
@@ -40,10 +40,11 @@ autostart = true
script = SubResource("GDScript_yhnwg")
[node name="bort" parent="." instance=ExtResource("3_xpxb5")]
offset_left = -11.1111
offset_top = -39.4444
offset_right = 568.889
offset_bottom = 1190.56
layout_mode = 0
offset_left = -11.0
offset_top = -59.0
offset_right = 569.0
offset_bottom = 1130.0
metadata/DeviceName = &"Устройство РР правого борта"
[connection signal="child_entered_tree" from="request" to="request" method="_on_child_entered_tree"]

View File

@@ -34,7 +34,7 @@ func map_solid_to_array(solid: String, paths: Array, tokens: Array = ['[', ']',
func _on_request_rtr_request_completed(result, _response_code, headers, body: PackedByteArray):
if result != 0:
var rs = $request_rtr.get_result_string(result)
var rs = $request.get_result_string(result)
log.error('\"%s\"' % rs)
return