-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAutoUpdater.tscn
124 lines (109 loc) · 3.25 KB
/
AutoUpdater.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[gd_scene load_steps=2 format=3 uid="uid://c6if1x3aa3dcl"]
[ext_resource type="Script" path="res://AutoUpdater.gd" id="1_0okfk"]
[node name="AutoUpdater" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_0okfk")
[node name="Pigeon" type="HTTPRequest" parent="."]
[node name="VersionText" type="Label" parent="."]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -59.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
text = "v1.0.0.0"
[node name="Panel" type="PanelContainer" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
custom_minimum_size = Vector2(400, 300)
layout_mode = 2
theme_override_constants/separation = 35
alignment = 1
[node name="Label" type="Label" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Check for Update?"
horizontal_alignment = 1
[node name="Found" type="Label" parent="Panel/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
horizontal_alignment = 1
[node name="Control" type="Control" parent="Panel/VBoxContainer"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
[node name="CheckButton" type="Button" parent="Panel/VBoxContainer/Control"]
custom_minimum_size = Vector2(200, 0)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = -15.5
offset_right = 100.0
offset_bottom = 15.5
grow_horizontal = 2
grow_vertical = 2
text = "Check for Update"
[node name="Control2" type="Control" parent="Panel/VBoxContainer"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
[node name="DownloadButton" type="Button" parent="Panel/VBoxContainer/Control2"]
custom_minimum_size = Vector2(200, 0)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = -15.5
offset_right = 100.0
offset_bottom = 15.5
grow_horizontal = 2
grow_vertical = 2
text = "Download Update"
[node name="Control3" type="Control" parent="Panel/VBoxContainer"]
visible = false
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
[node name="RestartButton" type="Button" parent="Panel/VBoxContainer/Control3"]
custom_minimum_size = Vector2(200, 0)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = -15.5
offset_right = 100.0
offset_bottom = 15.5
grow_horizontal = 2
grow_vertical = 2
text = "Restart Game"
[connection signal="request_completed" from="Pigeon" to="." method="_on_pigeon_request_completed"]
[connection signal="pressed" from="Panel/VBoxContainer/Control/CheckButton" to="." method="_on_check_button_pressed"]
[connection signal="pressed" from="Panel/VBoxContainer/Control2/DownloadButton" to="." method="_on_download_button_pressed"]
[connection signal="pressed" from="Panel/VBoxContainer/Control3/RestartButton" to="." method="_on_restart_button_pressed"]