-
Notifications
You must be signed in to change notification settings - Fork 8
/
UI.tscn
417 lines (343 loc) · 12.9 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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
[gd_scene load_steps=2 format=3 uid="uid://dxas8w6rr810e"]
[ext_resource type="Script" path="res://UI.gd" id="1"]
[node name="UI" type="Panel"]
self_modulate = Color(1, 1, 1, 0.784314)
anchors_preset = 9
anchor_bottom = 1.0
offset_right = 320.0
grow_vertical = 2
script = ExtResource("1")
[node name="Menu" type="VBoxContainer" parent="."]
layout_mode = 0
offset_left = 10.0
offset_right = 310.0
offset_bottom = 811.0
[node name="HSeparator4" type="HSeparator" parent="Menu"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="QuitButton" type="Button" parent="Menu/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "Quit"
[node name="HideButton" type="Button" parent="Menu/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "Hide"
[node name="FPS Block" type="HBoxContainer" parent="Menu"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
[node name="FPSLabel" type="Label" parent="Menu/FPS Block"]
layout_mode = 2
size_flags_horizontal = 3
text = "FPS:"
[node name="FPS" type="Label" parent="Menu/FPS Block"]
layout_mode = 2
size_flags_horizontal = 3
text = "0"
horizontal_alignment = 2
[node name="FullScreenBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="Full screen label" type="Label" parent="Menu/FullScreenBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "(F)ull Screen: "
[node name="FullScreen" type="CheckButton" parent="Menu/FullScreenBlock"]
layout_mode = 2
size_flags_horizontal = 3
button_pressed = true
[node name="ColorBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="ColorLabel" type="Label" parent="Menu/ColorBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "Simple Color: "
[node name="ColorMethod" type="CheckButton" parent="Menu/ColorBlock"]
custom_minimum_size = Vector2(10, 0)
layout_mode = 2
[node name="RedBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="RedLabel" type="Label" parent="Menu/RedBlock"]
custom_minimum_size = Vector2(148, 0)
layout_mode = 2
size_flags_horizontal = 3
text = "Red Frequency/Phase:"
[node name="RedFrequency" type="HSlider" parent="Menu/RedBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
min_value = 0.1
max_value = 6.0
step = 0.1
value = 1.0
ticks_on_borders = true
[node name="RedPhase" type="HSlider" parent="Menu/RedBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
min_value = 4.7
max_value = 11.0
step = 0.1
value = 4.7
ticks_on_borders = true
[node name="GreenBlock" type="HBoxContainer" parent="Menu"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
[node name="GreenLabel" type="Label" parent="Menu/GreenBlock"]
custom_minimum_size = Vector2(148, 0)
layout_mode = 2
size_flags_horizontal = 3
text = "Green Freq/Phase:"
[node name="GreenFrequency" type="HSlider" parent="Menu/GreenBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
min_value = 0.1
max_value = 6.0
step = 0.1
value = 1.0
ticks_on_borders = true
[node name="GreenPhase" type="HSlider" parent="Menu/GreenBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
min_value = 4.7
max_value = 11.0
step = 0.1
value = 4.7
ticks_on_borders = true
[node name="BlueBlock" type="HBoxContainer" parent="Menu"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
[node name="BlueLabel" type="Label" parent="Menu/BlueBlock"]
custom_minimum_size = Vector2(148, 0)
layout_mode = 2
size_flags_horizontal = 3
text = "Blue Frequency/Phase:"
[node name="BlueFrequency" type="HSlider" parent="Menu/BlueBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
min_value = 0.1
max_value = 6.0
step = 0.1
value = 1.0
ticks_on_borders = true
[node name="BluePhase" type="HSlider" parent="Menu/BlueBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
min_value = 4.7
max_value = 11.0
step = 0.1
value = 4.7
ticks_on_borders = true
[node name="GradientBlock" type="HBoxContainer" parent="Menu"]
visible = false
layout_mode = 2
[node name="GStart" type="ColorRect" parent="Menu/GradientBlock"]
layout_mode = 2
size_flags_horizontal = 3
[node name="GEnd" type="ColorRect" parent="Menu/GradientBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
color = Color(0, 0, 0, 1)
[node name="GAccent" type="ColorRect" parent="Menu/GradientBlock"]
layout_mode = 2
size_flags_horizontal = 3
[node name="AccentPosBlock" type="HBoxContainer" parent="Menu"]
visible = false
layout_mode = 2
[node name="PositionLabel" type="Label" parent="Menu/AccentPosBlock"]
custom_minimum_size = Vector2(148, 0)
layout_mode = 2
size_flags_horizontal = 3
text = "Accent Position:"
[node name="AccentPosition" type="HSlider" parent="Menu/AccentPosBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
max_value = 1.0
step = 0.05
ticks_on_borders = true
[node name="WidthBlock" type="HBoxContainer" parent="Menu"]
visible = false
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
[node name="WidthLabel" type="Label" parent="Menu/WidthBlock"]
custom_minimum_size = Vector2(148, 0)
layout_mode = 2
size_flags_horizontal = 3
text = "Accent Width:"
[node name="AccentWidth" type="HSlider" parent="Menu/WidthBlock"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
max_value = 0.6
step = 0.01
value = 0.05
ticks_on_borders = true
[node name="SmoothingBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="SmoothingLabel" type="Label" parent="Menu/SmoothingBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "Smooth (G)radient: "
[node name="Smoothing" type="CheckButton" parent="Menu/SmoothingBlock"]
layout_mode = 2
size_flags_horizontal = 3
[node name="HSeparator" type="HSeparator" parent="Menu"]
layout_mode = 2
[node name="FractalBlock" type="HBoxContainer" parent="Menu"]
custom_minimum_size = Vector2(0, 30)
layout_mode = 2
[node name="Label" type="Label" parent="Menu/FractalBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "Select Fractal: "
[node name="Mandelbrot Button" type="Button" parent="Menu/FractalBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "Mandelbrot"
[node name="Julia Button" type="Button" parent="Menu/FractalBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "Julia"
[node name="ScaleBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="ScaleLabel" type="Label" parent="Menu/ScaleBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "Scale: "
[node name="Scale" type="LineEdit" parent="Menu/ScaleBlock"]
layout_mode = 2
size_flags_horizontal = 3
caret_blink = true
[node name="PositionBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="PositionLabel" type="Label" parent="Menu/PositionBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "Position: "
[node name="HBoxContainer" type="HBoxContainer" parent="Menu/PositionBlock"]
layout_mode = 2
size_flags_horizontal = 3
[node name="PositionX" type="LineEdit" parent="Menu/PositionBlock/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
caret_blink = true
[node name="PositionY" type="LineEdit" parent="Menu/PositionBlock/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
caret_blink = true
[node name="HSeparator2" type="HSeparator" parent="Menu"]
layout_mode = 2
[node name="SeedBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="SeedLabel" type="Label" parent="Menu/SeedBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "(S)eed: "
[node name="HBoxContainer" type="HBoxContainer" parent="Menu/SeedBlock"]
layout_mode = 2
size_flags_horizontal = 3
[node name="SeedX" type="LineEdit" parent="Menu/SeedBlock/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
caret_blink = true
[node name="SeedY" type="LineEdit" parent="Menu/SeedBlock/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
caret_blink = true
[node name="PowerBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
theme_override_constants/separation = 5
[node name="PowerLabel" type="Label" parent="Menu/PowerBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "(P)ower: "
[node name="Power" type="LineEdit" parent="Menu/PowerBlock"]
layout_mode = 2
size_flags_horizontal = 3
[node name="IterationsBlock" type="HBoxContainer" parent="Menu"]
layout_mode = 2
[node name="IterationsLabel" type="Label" parent="Menu/IterationsBlock"]
layout_mode = 2
size_flags_horizontal = 3
text = "(I)terations:"
[node name="Iterations" type="LineEdit" parent="Menu/IterationsBlock"]
layout_mode = 2
size_flags_horizontal = 3
[node name="HSeparator3" type="HSeparator" parent="Menu"]
layout_mode = 2
[node name="Instructions" type="RichTextLabel" parent="Menu"]
custom_minimum_size = Vector2(300, 100)
layout_mode = 2
size_flags_vertical = 3
theme_override_font_sizes/normal_font_size = 15
text = "Esc/RMB Show/Hide this menu
CTRL+q Exit Program
f Full screen on/off
g Smoothing on/off
LMB+Drag Pan screen
Wheel Zoom
p/P +/- Power
i/I +/- Iterations
--- Julia Only ---
s Mouse adjusts seed on/off
SHIFT Slow seed adjustment to 1/3rd
CTRL Slow seed adjustment to 1/10th"
[node name="PickPanel" type="Panel" parent="."]
visible = false
self_modulate = Color(1, 1, 1, 0.784314)
custom_minimum_size = Vector2(200, 200)
layout_mode = 0
offset_left = 321.0
offset_right = 631.0
offset_bottom = 513.0
[node name="VBoxContainer" type="VBoxContainer" parent="PickPanel"]
layout_mode = 0
offset_left = 10.0
offset_top = 10.0
offset_right = 290.0
offset_bottom = 462.0
[node name="ClosePicker" type="Button" parent="PickPanel/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "Close Panel"
[node name="HSeparator3" type="HSeparator" parent="PickPanel/VBoxContainer"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
[node name="ColorPicker" type="ColorPicker" parent="PickPanel/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
edit_alpha = false
[connection signal="pressed" from="Menu/HBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"]
[connection signal="pressed" from="Menu/HBoxContainer/HideButton" to="." method="_on_HideButton_pressed"]
[connection signal="toggled" from="Menu/FullScreenBlock/FullScreen" to="." method="_on_FullScreen_toggled"]
[connection signal="toggled" from="Menu/ColorBlock/ColorMethod" to="." method="_on_ColorMethod_toggled"]
[connection signal="value_changed" from="Menu/RedBlock/RedFrequency" to="." method="_on_RedFrequency_value_changed"]
[connection signal="value_changed" from="Menu/RedBlock/RedPhase" to="." method="_on_RedPhase_value_changed"]
[connection signal="value_changed" from="Menu/GreenBlock/GreenFrequency" to="." method="_on_GreenFrequency_value_changed"]
[connection signal="value_changed" from="Menu/GreenBlock/GreenPhase" to="." method="_on_GreenPhase_value_changed"]
[connection signal="value_changed" from="Menu/BlueBlock/BlueFrequency" to="." method="_on_BlueFrequency_value_changed"]
[connection signal="value_changed" from="Menu/BlueBlock/BluePhase" to="." method="_on_BluePhase_value_changed"]
[connection signal="gui_input" from="Menu/GradientBlock/GStart" to="." method="_on_GStart_gui_input"]
[connection signal="gui_input" from="Menu/GradientBlock/GEnd" to="." method="_on_GEnd_gui_input"]
[connection signal="gui_input" from="Menu/GradientBlock/GAccent" to="." method="_on_GAccent_gui_input"]
[connection signal="value_changed" from="Menu/AccentPosBlock/AccentPosition" to="." method="_on_AccentPosition_value_changed"]
[connection signal="value_changed" from="Menu/WidthBlock/AccentWidth" to="." method="_on_AccentWidth_value_changed"]
[connection signal="toggled" from="Menu/SmoothingBlock/Smoothing" to="." method="_on_Smoothing_toggled"]
[connection signal="pressed" from="Menu/FractalBlock/Mandelbrot Button" to="." method="_on_Mandelbrot_Button_pressed"]
[connection signal="pressed" from="Menu/FractalBlock/Julia Button" to="." method="_on_Julia_Button_pressed"]
[connection signal="text_changed" from="Menu/ScaleBlock/Scale" to="." method="_on_Scale_text_changed"]
[connection signal="text_changed" from="Menu/PositionBlock/HBoxContainer/PositionX" to="." method="_on_PositionX_text_changed"]
[connection signal="text_changed" from="Menu/PositionBlock/HBoxContainer/PositionY" to="." method="_on_PositionY_text_changed"]
[connection signal="text_changed" from="Menu/SeedBlock/HBoxContainer/SeedX" to="." method="_on_SeedX_text_changed"]
[connection signal="text_changed" from="Menu/SeedBlock/HBoxContainer/SeedY" to="." method="_on_SeedY_text_changed"]
[connection signal="text_changed" from="Menu/PowerBlock/Power" to="." method="_on_Power_text_changed"]
[connection signal="text_changed" from="Menu/IterationsBlock/Iterations" to="." method="_on_Iterations_text_changed"]
[connection signal="pressed" from="PickPanel/VBoxContainer/ClosePicker" to="." method="_on_ClosePicker_pressed"]
[connection signal="color_changed" from="PickPanel/VBoxContainer/ColorPicker" to="." method="_on_ColorPicker_color_changed"]