-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonitor.tscn
More file actions
193 lines (171 loc) · 5.06 KB
/
Monitor.tscn
File metadata and controls
193 lines (171 loc) · 5.06 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[gd_scene load_steps=11 format=2]
[ext_resource path="res://fonts/poppins/poppins24.tres" type="DynamicFont" id=1]
[ext_resource path="res://fonts/poppins/poppins180.tres" type="DynamicFont" id=2]
[ext_resource path="res://widgets/button/button.tscn" type="PackedScene" id=3]
[ext_resource path="res://imgs/triangle.svg" type="Texture" id=4]
[ext_resource path="res://widgets/settings/settings.tscn" type="PackedScene" id=5]
[ext_resource path="res://widgets/errordialog/error.tscn" type="PackedScene" id=6]
[ext_resource path="res://widgets/dropdown/dropdown.tscn" type="PackedScene" id=7]
[ext_resource path="res://plane-spinner.ogv" type="VideoStream" id=8]
[ext_resource path="res://imgs/cog.svg" type="Texture" id=9]
[ext_resource path="res://Monitor.gd" type="Script" id=10]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 10 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0.4, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HTTPRequest" type="HTTPRequest" parent="."]
timeout = 30
[node name="ReloadDataTimer" type="Timer" parent="."]
wait_time = 600.0
autostart = true
[node name="hide_dropdown" type="Button" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="scroll" type="ScrollContainer" parent="hide_dropdown"]
margin_left = 103.0
margin_top = 344.0
margin_right = 1864.0
margin_bottom = 892.0
mouse_filter = 1
scroll_horizontal_enabled = false
__meta__ = {
"_edit_use_anchors_": false
}
[node name="grid" type="GridContainer" parent="hide_dropdown/scroll"]
columns = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ShowRawButton" parent="." instance=ExtResource( 3 )]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 105.0
margin_top = -162.0
margin_right = 410.0
margin_bottom = -88.0
[node name="Unparsed" type="Label" parent="."]
visible = false
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 103.387
margin_top = -84.6528
margin_right = 284.387
margin_bottom = -32.6528
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 0.811765, 0.792157, 0.792157, 1 )
text = "Loading..."
__meta__ = {
"_edit_use_anchors_": false
}
[node name="spinner" type="VideoPlayer" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -183.5
margin_top = -101.5
margin_right = 183.5
margin_bottom = 101.5
stream = ExtResource( 8 )
autoplay = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect" type="ColorRect" parent="spinner"]
anchor_bottom = 1.0
margin_right = 84.0
color = Color( 0, 0, 0.4, 1 )
[node name="ColorRect2" type="ColorRect" parent="spinner"]
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -83.819
margin_right = 0.181
margin_bottom = 1.52588e-05
color = Color( 0, 0, 0.4, 1 )
[node name="dropdown-button" type="Control" parent="."]
margin_left = 79.0
margin_top = 83.0
margin_right = 911.0
margin_bottom = 279.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" type="Label" parent="dropdown-button"]
margin_left = 14.0402
margin_top = -17.43
margin_right = 515.041
margin_bottom = 234.57
custom_fonts/font = ExtResource( 2 )
text = "ESCM"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureRect" type="TextureRect" parent="dropdown-button"]
anchor_left = -0.095
anchor_top = -0.322
anchor_right = -0.095
anchor_bottom = -0.322
margin_left = 629.417
margin_top = 162.84
margin_right = 677.417
margin_bottom = 210.84
texture = ExtResource( 4 )
[node name="Button" type="Button" parent="dropdown-button"]
anchor_top = 0.076
anchor_right = 0.748
anchor_bottom = 1.0
margin_top = -0.0360012
margin_right = -0.33606
mouse_default_cursor_shape = 2
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Dropdown" parent="dropdown-button" instance=ExtResource( 7 )]
margin_left = 538.328
margin_top = 61.1535
margin_right = 1038.33
margin_bottom = 711.154
[node name="SettingsCog" type="TextureRect" parent="."]
anchor_left = 1.00049
anchor_right = 1.00049
margin_left = -220.944
margin_top = 145.0
margin_right = -120.944
margin_bottom = 245.0
rect_scale = Vector2( 0.8, 0.8 )
rect_pivot_offset = Vector2( 19.7244, 18.811 )
texture = ExtResource( 9 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" type="Button" parent="SettingsCog"]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_default_cursor_shape = 2
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Settings" parent="." instance=ExtResource( 5 )]
[node name="Errorpanel" parent="." instance=ExtResource( 6 )]
[connection signal="timeout" from="ReloadDataTimer" to="." method="fetch_data"]
[connection signal="pressed" from="hide_dropdown" to="dropdown-button/Dropdown" method="hide"]
[connection signal="finished" from="spinner" to="." method="_on_spinner_finished"]
[connection signal="pressed" from="dropdown-button/Button" to="dropdown-button/Dropdown" method="toggle_visibility"]
[connection signal="pressed" from="SettingsCog/Button" to="Settings" method="display"]