67 lines
2.1 KiB
Plaintext
67 lines
2.1 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://5uv1idl3lqea"]
|
|
|
|
[ext_resource type="Script" uid="uid://d0jwv5opi3mrk" path="res://scenes/pribor-rtr/pribor-rtr.gd" id="1_sqyma"]
|
|
[ext_resource type="Script" uid="uid://bux47vkw71w1t" path="res://scenes/pribor-afsp/request.gd" id="6_iwtoo"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_yhnwg"]
|
|
script/source = "extends Timer
|
|
|
|
func _ready(): wait_time = ProjectSettings.get_setting('application/config/unit_rr_request_period')
|
|
"
|
|
|
|
[node name="pribor_rtr" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_left = 10.0
|
|
offset_top = 78.0
|
|
offset_right = 10.0
|
|
offset_bottom = 78.0
|
|
scale = Vector2(0.9, 0.9)
|
|
script = ExtResource("1_sqyma")
|
|
|
|
[node name="lbl_header" type="Label" parent="."]
|
|
layout_mode = 0
|
|
offset_top = -44.8889
|
|
offset_right = 1044.0
|
|
offset_bottom = -15.8889
|
|
theme_override_font_sizes/font_size = 22
|
|
text = "Контроль исправности прибора"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="request_rtr" type="HTTPRequest" parent="."]
|
|
script = ExtResource("6_iwtoo")
|
|
|
|
[node name="timer" type="Timer" parent="request_rtr"]
|
|
wait_time = 4.168
|
|
autostart = true
|
|
script = SubResource("GDScript_yhnwg")
|
|
|
|
[node name="lbl_left" type="Label" parent="."]
|
|
self_modulate = Color(1, 1, 1, 0.627451)
|
|
layout_mode = 0
|
|
offset_left = 217.0
|
|
offset_top = -18.6666
|
|
offset_right = 306.0
|
|
offset_bottom = 3.33341
|
|
theme_override_font_sizes/font_size = 17
|
|
text = "левый борт"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="lbl_right" type="Label" parent="."]
|
|
self_modulate = Color(1, 1, 1, 0.627451)
|
|
layout_mode = 0
|
|
offset_left = 739.0
|
|
offset_top = -18.6666
|
|
offset_right = 833.0
|
|
offset_bottom = 3.33341
|
|
theme_override_font_sizes/font_size = 17
|
|
text = "правый борт"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[connection signal="child_entered_tree" from="request_rtr" to="request_rtr" method="_on_child_entered_tree"]
|
|
[connection signal="request_completed" from="request_rtr" to="." method="_on_request_rtr_request_completed"]
|
|
[connection signal="timeout" from="request_rtr/timer" to="request_rtr" method="_on_request_timer"]
|