-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUI.tscn
253 lines (224 loc) · 6.42 KB
/
UI.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
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
[gd_scene load_steps=11 format=2]
[ext_resource path="res://Textures/Play_Button.png" type="Texture" id=1]
[ext_resource path="res://Textures/Stop-Button.png" type="Texture" id=2]
[ext_resource path="res://Scripts/StateController.gd" type="Script" id=3]
[ext_resource path="res://Textures/Pause_Button.png" type="Texture" id=4]
[ext_resource path="res://Scripts/StopButton.gd" type="Script" id=5]
[ext_resource path="res://Scripts/ExportStats.gd" type="Script" id=6]
[ext_resource path="res://Textures/Healthy_Individual.png" type="Texture" id=7]
[ext_resource path="res://Textures/Deceased_Individual.png" type="Texture" id=8]
[ext_resource path="res://Textures/Infected_Individual.png" type="Texture" id=9]
[ext_resource path="res://Textures/Immune_Individual.png" type="Texture" id=10]
[node name="Config" type="Control"]
anchor_right = 0.216
anchor_bottom = 1.0
margin_right = -0.184006
margin_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Chance_Label" type="RichTextLabel" parent="."]
margin_left = 7.0
margin_top = 78.0
margin_right = 138.0
margin_bottom = 118.0
rect_pivot_offset = Vector2( 77, -17 )
text = "% Infection Chance"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Distancing_Label" type="RichTextLabel" parent="."]
margin_left = 8.0
margin_top = 118.0
margin_right = 132.0
margin_bottom = 158.0
rect_pivot_offset = Vector2( 77, -17 )
text = "% Social Distancing"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Infection_Label" type="RichTextLabel" parent="."]
margin_left = 9.80499
margin_top = 158.525
margin_right = 133.805
margin_bottom = 198.525
rect_pivot_offset = Vector2( 77, -17 )
text = "Infection Duration"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Immunity_Label" type="RichTextLabel" parent="."]
margin_left = 9.80501
margin_top = 194.713
margin_right = 133.805
margin_bottom = 234.713
rect_pivot_offset = Vector2( 77, -17 )
text = "Immunity Duration"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Immunity_Label2" type="RichTextLabel" parent="."]
margin_left = 7.0
margin_top = 394.0
margin_right = 131.0
margin_bottom = 586.0
rect_pivot_offset = Vector2( 77, -17 )
text = "Negative (Susceptible)
Positive (Infective)
Immune
Deceased"
scroll_active = false
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Mortality_Label" type="RichTextLabel" parent="."]
margin_left = 8.9025
margin_top = 231.715
margin_right = 132.902
margin_bottom = 271.715
rect_pivot_offset = Vector2( 77, -17 )
text = "% Mortality Rate"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Settings_Label" type="RichTextLabel" parent="."]
margin_left = 43.0
margin_top = 8.0
margin_right = 169.0
margin_bottom = 31.0
text = "Simulation Settings"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Population_Label" type="RichTextLabel" parent="."]
anchor_left = 0.024
anchor_right = 0.024
margin_left = 6.984
margin_top = 43.0
margin_right = 87.984
margin_bottom = 67.0
rect_pivot_offset = Vector2( 118, 51 )
text = "Population"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Population_Input" type="LineEdit" parent="."]
margin_left = 141.0
margin_top = 38.0
margin_right = 199.0
margin_bottom = 62.0
max_length = 4
placeholder_text = "5-1000"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Infect_Chance_Input" type="LineEdit" parent="."]
margin_left = 142.0
margin_top = 75.0
margin_right = 200.0
margin_bottom = 99.0
text = "50"
max_length = 3
placeholder_text = "1-100"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Distancing_Pop_Input" type="LineEdit" parent="."]
margin_left = 142.0
margin_top = 112.0
margin_right = 200.0
margin_bottom = 136.0
text = "50"
max_length = 3
placeholder_text = "1-100"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Infection_Dur_Input" type="LineEdit" parent="."]
margin_left = 141.097
margin_top = 154.418
margin_right = 199.097
margin_bottom = 178.418
hint_tooltip = "The amount of time (s) that an infected individual is contageous, before gaining immunity to the disease."
text = "14"
max_length = 4
placeholder_text = "1-9999"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Immunity_Dur_Input" type="LineEdit" parent="."]
margin_left = 141.098
margin_top = 191.42
margin_right = 199.098
margin_bottom = 215.42
hint_tooltip = "The amount of time (s) that an infected individual is contageous, before gaining immunity to the disease."
text = "9999"
max_length = 4
placeholder_text = "1-9999"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Mortality_Input" type="LineEdit" parent="."]
margin_left = 140.195
margin_top = 228.423
margin_right = 198.195
margin_bottom = 252.423
hint_tooltip = "The amount of time (s) that an infected individual is contageous, before gaining immunity to the disease."
text = "2"
max_length = 3
placeholder_text = "1-100"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayPause_Button" type="TextureButton" parent="."]
margin_left = 74.2311
margin_top = 284.994
margin_right = 113.231
margin_bottom = 323.994
rect_pivot_offset = Vector2( 57.7689, 84.426 )
toggle_mode = true
keep_pressed_outside = true
texture_normal = ExtResource( 1 )
texture_pressed = ExtResource( 4 )
expand = true
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Stop_Button" type="TextureButton" parent="."]
margin_left = 113.752
margin_top = 285.432
margin_right = 152.752
margin_bottom = 324.432
keep_pressed_outside = true
texture_normal = ExtResource( 2 )
expand = true
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Export_Stats_Button" type="Button" parent="."]
margin_left = 52.0
margin_top = 350.0
margin_right = 172.0
margin_bottom = 380.0
hint_tooltip = "Export Statistics from the Current Simulation to a CSV file."
shortcut_in_tooltip = false
text = "Export Statistics"
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Healthy_Individual" type="Sprite" parent="."]
position = Vector2( 171.502, 414.378 )
scale = Vector2( 0.179683, 0.179683 )
texture = ExtResource( 7 )
[node name="Infected_Individual" type="Sprite" parent="Healthy_Individual"]
position = Vector2( 2.78259, 253.226 )
texture = ExtResource( 9 )
[node name="Immune_Individual" type="Sprite" parent="Healthy_Individual/Infected_Individual"]
position = Vector2( -11.1306, 267.139 )
texture = ExtResource( 10 )
[node name="Deceased_Individual" type="Sprite" parent="Healthy_Individual/Infected_Individual/Immune_Individual"]
position = Vector2( -13.5869, 207.884 )
texture = ExtResource( 8 )