-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.tscn
More file actions
379 lines (320 loc) · 16.2 KB
/
ui.tscn
File metadata and controls
379 lines (320 loc) · 16.2 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
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
[gd_scene load_steps=24 format=3 uid="uid://cagj64jn35d4q"]
[ext_resource type="Script" path="res://UI/Palette/FunctionPalette.cs" id="2_ykdwx"]
[ext_resource type="Script" path="res://UI/Example.cs" id="3_3ndwe"]
[ext_resource type="Texture2D" uid="uid://dyv6hilyp7g3i" path="res://Assets/FOTS UI/icons8-add-50.png" id="3_5lgt0"]
[ext_resource type="Script" path="res://UI/UpperTimeline.cs" id="4_1pkc6"]
[ext_resource type="Texture2D" uid="uid://bt8l2qgkjmhjk" path="res://Assets/FOTS UI/icons8-undo-50.png" id="4_rspl5"]
[ext_resource type="Texture2D" uid="uid://vncf38ysk75v" path="res://Assets/FOTS UI/icons8-redo-50.png" id="5_h8umj"]
[ext_resource type="Script" path="res://UI/Toolbar.cs" id="6_5mm8q"]
[ext_resource type="Texture2D" uid="uid://cediwiynb0sk5" path="res://Assets/FOTS UI/icons8-beginning-50.png" id="6_25iw2"]
[ext_resource type="Script" path="res://Sonifcation/AudioGenerator.cs" id="6_yns4e"]
[ext_resource type="Texture2D" uid="uid://cdigfqvk0p6lr" path="res://Assets/FOTS UI/icons8-save-50.png" id="7_jp73n"]
[ext_resource type="Texture2D" uid="uid://bx6hcw43qh2tc" path="res://Assets/FOTS UI/icons8-download-50.png" id="8_lmbnk"]
[ext_resource type="Script" path="res://UI/Palette/TextUpdate.cs" id="10_dnwop"]
[ext_resource type="Texture2D" uid="uid://bkrp75sdkgcyg" path="res://Assets/FOTS UI/icons8-end-50.png" id="10_sgbw4"]
[ext_resource type="Texture2D" uid="uid://cari8rf7ta5w3" path="res://Assets/FOTS UI/icons8-circled-play-50.png" id="11_o2of6"]
[ext_resource type="PackedScene" uid="uid://cplv0i0ax5sqm" path="res://UI/Palette/FunctionContainer.tscn" id="11_xwf8o"]
[ext_resource type="PackedScene" uid="uid://rjw4sfomfd0q" path="res://Graphing/function_renderer.tscn" id="12_ivlup"]
[ext_resource type="Script" path="res://Sonifcation/LowerTimeline.cs" id="13_lr367"]
[ext_resource type="Texture2D" uid="uid://m48yl5tckgu4" path="res://Assets/FOTS UI/icons8-home-page-50.png" id="13_wjrfo"]
[ext_resource type="Script" path="res://Serialization/IO.cs" id="14_a2p4c"]
[ext_resource type="Script" path="res://Serialization/Serializer.cs" id="14_mqxfw"]
[ext_resource type="PackedScene" uid="uid://c82ewuj4e6ylq" path="res://timeline_function_container.tscn" id="15_x5gp5"]
[ext_resource type="PackedScene" uid="uid://b2bdnigbjemft" path="res://Serialization/SaveSelector.tscn" id="20_ysibf"]
[sub_resource type="GDScript" id="GDScript_jf14m"]
script/source = "# Base line GD UI script
extends Control
func _on_exit_button_pressed():
get_tree().quit()
func _on_save_pressed():
# when pressed saves the current state
pass # Replace with function body.
func _on_load_pressed():
# when pressed, loads a state/file for the session
pass # Replace with function body.
func _on_undo_pressed():
# when pressed undoes the recent changes
pass # Replace with function body.
func _on_redo_pressed():
# when pressed, redoes the recent redo
pass # Replace with function body.
func _on_begin_pressed():
# when pressed, should move the timeline to the first function on the timeline
pass # Replace with function body.
func _on_play_pressed():
# when pressed, the timeline should move, and the audio should play corresponding
pass # Replace with function body.
func _on_end_pressed():
# when pressed, should move the timeline to the last function on the timeline
pass # Replace with function body.
func _on_ready():
#print_tree_pretty()
pass # Replace with function body.
"
[node name="UI" type="VBoxContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
script = SubResource("GDScript_jf14m")
[node name="Toolbar" type="PanelContainer" parent="."]
layout_mode = 2
script = ExtResource("6_5mm8q")
[node name="HBoxContainer" type="HBoxContainer" parent="Toolbar"]
layout_mode = 2
alignment = 1
[node name="Save" type="Button" parent="Toolbar/HBoxContainer"]
layout_mode = 2
tooltip_text = "Save progress"
text = "Save"
icon = ExtResource("7_jp73n")
[node name="Load" type="Button" parent="Toolbar/HBoxContainer"]
layout_mode = 2
tooltip_text = "Load a previous state"
text = "Load"
icon = ExtResource("8_lmbnk")
[node name="Undo" type="Button" parent="Toolbar/HBoxContainer"]
visible = false
layout_mode = 2
tooltip_text = "Undo (CTRL + Z)"
text = "Undo"
icon = ExtResource("4_rspl5")
[node name="Redo" type="Button" parent="Toolbar/HBoxContainer"]
visible = false
layout_mode = 2
tooltip_text = "Redo your most recent \"undo\" (CTRL + Y)"
text = "Redo"
icon = ExtResource("5_h8umj")
[node name="Beginning" type="Button" parent="Toolbar/HBoxContainer"]
layout_mode = 2
tooltip_text = "Rewind to the beginning"
text = "Previous"
icon = ExtResource("6_25iw2")
[node name="Play" type="Button" parent="Toolbar/HBoxContainer"]
layout_mode = 2
tooltip_text = "Play"
text = "Play/Stop"
icon = ExtResource("11_o2of6")
[node name="Ending" type="Button" parent="Toolbar/HBoxContainer"]
layout_mode = 2
tooltip_text = "Fast forward to the end"
text = "Next
"
icon = ExtResource("10_sgbw4")
[node name="AutoSaveNotif" type="RichTextLabel" parent="Toolbar"]
visible = false
layout_mode = 2
text = "Deck Auto saved!!!"
fit_content = true
[node name="Main" type="VSplitContainer" parent="."]
layout_mode = 2
size_flags_vertical = 3
split_offset = -200
[node name="PaletteAndGraph" type="HSplitContainer" parent="Main"]
layout_mode = 2
size_flags_vertical = 3
split_offset = 260
[node name="Function Palette" type="PanelContainer" parent="Main/PaletteAndGraph" node_paths=PackedStringArray("renderer", "_container")]
layout_mode = 2
script = ExtResource("2_ykdwx")
renderer = NodePath("../Graph BG/VBoxContainer/FunctionRenderer")
_container = NodePath("VBoxContainer/MarginContainer/ScrollContainer/FunctionsContainer")
_textUpdateScript = ExtResource("10_dnwop")
_functionContainer = ExtResource("11_xwf8o")
[node name="VBoxContainer" type="VBoxContainer" parent="Main/PaletteAndGraph/Function Palette"]
layout_mode = 2
[node name="FP Text" type="Label" parent="Main/PaletteAndGraph/Function Palette/VBoxContainer"]
layout_mode = 2
text = "Function Palette"
horizontal_alignment = 1
[node name="Add function + button" type="Button" parent="Main/PaletteAndGraph/Function Palette/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
tooltip_text = "Click to add a function"
text = "Add Function"
icon = ExtResource("3_5lgt0")
alignment = 0
[node name="MarginContainer" type="MarginContainer" parent="Main/PaletteAndGraph/Function Palette/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="ScrollContainer" type="ScrollContainer" parent="Main/PaletteAndGraph/Function Palette/VBoxContainer/MarginContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="FunctionsContainer" type="VBoxContainer" parent="Main/PaletteAndGraph/Function Palette/VBoxContainer/MarginContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Selected Function" type="Label" parent="Main/PaletteAndGraph/Function Palette/VBoxContainer" node_paths=PackedStringArray("functionPalette")]
layout_mode = 2
script = ExtResource("3_3ndwe")
functionPalette = NodePath("../..")
[node name="Graph BG" type="PanelContainer" parent="Main/PaletteAndGraph"]
layout_mode = 2
size_flags_stretch_ratio = 5.0
[node name="VBoxContainer" type="VBoxContainer" parent="Main/PaletteAndGraph/Graph BG"]
layout_mode = 2
[node name="Graph Text" type="Label" parent="Main/PaletteAndGraph/Graph BG/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 0
text = "Graph View"
horizontal_alignment = 1
[node name="FunctionRenderer" parent="Main/PaletteAndGraph/Graph BG/VBoxContainer" instance=ExtResource("12_ivlup")]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="MarginContainer" type="MarginContainer" parent="Main/PaletteAndGraph/Graph BG/VBoxContainer/FunctionRenderer"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -58.0
offset_bottom = 58.0
grow_horizontal = 0
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
[node name="Reset" type="Button" parent="Main/PaletteAndGraph/Graph BG/VBoxContainer/FunctionRenderer/MarginContainer"]
layout_mode = 2
icon = ExtResource("13_wjrfo")
flat = true
icon_alignment = 2
[node name="Timeline" type="PanelContainer" parent="Main" node_paths=PackedStringArray("playButton", "timelineContainer", "functionPalette", "audioGenerator", "lowerTimeline")]
layout_mode = 2
script = ExtResource("4_1pkc6")
playButton = NodePath("../../Toolbar/HBoxContainer/Play")
timelineContainer = NodePath("VBoxContainer/ScrollContainer/HBoxContainer/TimelineContainer")
functionPalette = NodePath("../PaletteAndGraph/Function Palette")
audioGenerator = NodePath("../../AudioGenerator")
lowerTimeline = NodePath("LowerTimeline")
[node name="LowerTimeline" type="Node" parent="Main/Timeline" node_paths=PackedStringArray("timelineContainer", "progressBar")]
script = ExtResource("13_lr367")
timelineContainer = NodePath("../VBoxContainer/ScrollContainer/HBoxContainer/TimelineContainer")
timelineFunctionContainer = ExtResource("15_x5gp5")
progressBar = NodePath("../VBoxContainer/ScrollContainer/HBoxContainer/ProgressBar")
[node name="VBoxContainer" type="VBoxContainer" parent="Main/Timeline"]
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="Main/Timeline/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_left = 5
[node name="Timeline Text" type="Label" parent="Main/Timeline/VBoxContainer/MarginContainer"]
layout_mode = 2
size_flags_vertical = 1
text = "Timeline"
[node name="ScrollContainer" type="ScrollContainer" parent="Main/Timeline/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="HBoxContainer" type="VBoxContainer" parent="Main/Timeline/VBoxContainer/ScrollContainer"]
layout_mode = 2
[node name="ProgressBar" type="ProgressBar" parent="Main/Timeline/VBoxContainer/ScrollContainer/HBoxContainer"]
layout_mode = 2
max_value = 0.0
step = 1.0
show_percentage = false
[node name="TimelineContainer" type="HBoxContainer" parent="Main/Timeline/VBoxContainer/ScrollContainer/HBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="AudioGenerator" type="Node" parent="." node_paths=PackedStringArray("timeline")]
script = ExtResource("6_yns4e")
timeline = NodePath("../Main/Timeline/LowerTimeline")
[node name="Storage" type="Node" parent="." node_paths=PackedStringArray("saveSelector", "autoSaveNotif")]
script = ExtResource("14_a2p4c")
saveSelector = NodePath("SaveSelector")
autoSaveNotif = NodePath("../Toolbar/AutoSaveNotif")
[node name="Serializer" type="Node" parent="Storage" node_paths=PackedStringArray("functionPalette", "upperTimeline", "audioGenerator", "lowerTimeline", "upperTimelineContainer", "saveTimer")]
script = ExtResource("14_mqxfw")
functionPalette = NodePath("../../Main/PaletteAndGraph/Function Palette")
upperTimeline = NodePath("../../Main/Timeline")
audioGenerator = NodePath("../../AudioGenerator")
lowerTimeline = NodePath("../../Main/Timeline/LowerTimeline")
upperTimelineContainer = NodePath("../../Main/Timeline/VBoxContainer/ScrollContainer/HBoxContainer/TimelineContainer")
saveTimer = NodePath("../SaveTimer")
[node name="FileExplorer" type="FileDialog" parent="Storage"]
mode = 4
title = "Open a File"
position = Vector2i(200, 36)
size = Vector2i(800, 550)
exclusive = false
ok_button_text = "Open"
file_mode = 0
access = 1
filters = PackedStringArray("*.sfc", "*.sftl", "*.sfp")
[node name="SaveMenu" type="PopupMenu" parent="Storage"]
title = "Save Options"
position = Vector2i(540, 260)
size = Vector2i(215, 100)
unresizable = false
borderless = false
hide_on_checkable_item_selection = false
item_count = 3
item_0/text = "Complete Deck"
item_0/checkable = 2
item_0/id = 0
item_1/text = "Timeline"
item_1/checkable = 2
item_1/id = 1
item_2/text = "Function Palette"
item_2/checkable = 2
item_2/id = 2
[node name="SaveConfirmation" type="ConfirmationDialog" parent="Storage/SaveMenu"]
title = ""
position = Vector2i(540, 260)
size = Vector2i(200, 80)
borderless = true
always_on_top = true
ok_button_text = "Save"
[node name="ErrorPopup" type="AcceptDialog" parent="Storage"]
initial_position = 2
size = Vector2i(498, 100)
always_on_top = true
popup_window = true
[node name="FileNameWindow" type="Window" parent="Storage"]
position = Vector2i(350, 200)
size = Vector2i(525, 75)
visible = false
[node name="FileNameEntry" type="LineEdit" parent="Storage/FileNameWindow"]
custom_minimum_size = Vector2(475, 0)
offset_left = 25.0
offset_top = 25.0
offset_right = 500.0
offset_bottom = 56.0
placeholder_text = "Save as..."
[node name="SaveSelector" parent="Storage" instance=ExtResource("20_ysibf")]
position = Vector2i(0, 36)
visible = false
[node name="SaveTimer" type="Timer" parent="Storage"]
wait_time = 60.0
[connection signal="ready" from="." to="." method="_on_ready"]
[connection signal="LoadButtonPressed" from="Toolbar" to="Storage" method="OnToolBarLoadButtonPressed"]
[connection signal="NextButtonPressed" from="Toolbar" to="Main/Timeline" method="OnToolBarNextButtonPressed"]
[connection signal="PlayButtonPressed" from="Toolbar" to="Main/Timeline" method="OnToolbarPlayButtonPressed"]
[connection signal="PreviousButtonPressed" from="Toolbar" to="Main/Timeline" method="OnToolBarPreviousButtonPressed"]
[connection signal="SaveButtonPressed" from="Toolbar" to="Storage" method="OnToolbarSaveButtonPressed"]
[connection signal="pressed" from="Toolbar/HBoxContainer/Save" to="Toolbar" method="OnSaveButtonPressed"]
[connection signal="pressed" from="Toolbar/HBoxContainer/Load" to="Toolbar" method="OnLoadButtonPressed"]
[connection signal="pressed" from="Toolbar/HBoxContainer/Undo" to="Toolbar" method="OnUndoPressed"]
[connection signal="pressed" from="Toolbar/HBoxContainer/Redo" to="Toolbar" method="OnRedoPressed"]
[connection signal="pressed" from="Toolbar/HBoxContainer/Beginning" to="Toolbar" method="OnPreviousButtonPressed"]
[connection signal="pressed" from="Toolbar/HBoxContainer/Play" to="Toolbar" method="OnPlayButtonPressed"]
[connection signal="pressed" from="Toolbar/HBoxContainer/Ending" to="Toolbar" method="OnNextButtonPressed"]
[connection signal="FunctionDragged" from="Main/PaletteAndGraph/Function Palette" to="Main/PaletteAndGraph/Function Palette/VBoxContainer/Selected Function" method="_OnFunctionDragged"]
[connection signal="FunctionDragging" from="Main/PaletteAndGraph/Function Palette" to="Main/PaletteAndGraph/Function Palette/VBoxContainer/Selected Function" method="_OnFunctionDragging"]
[connection signal="SelectedFunctionChanged" from="Main/PaletteAndGraph/Function Palette" to="Main/PaletteAndGraph/Function Palette/VBoxContainer/Selected Function" method="_OnFunctionChanged"]
[connection signal="pressed" from="Main/PaletteAndGraph/Function Palette/VBoxContainer/Add function + button" to="Main/PaletteAndGraph/Function Palette" method="OnButtonPressed"]
[connection signal="pressed" from="Main/PaletteAndGraph/Graph BG/VBoxContainer/FunctionRenderer/MarginContainer/Reset" to="Main/PaletteAndGraph/Graph BG/VBoxContainer/FunctionRenderer" method="OnResetButton"]
[connection signal="SeekingRequested" from="Main/Timeline" to="Main/Timeline/LowerTimeline" method="OnSeekingRequested"]
[connection signal="AudioPlaybackFinished" from="Main/Timeline/LowerTimeline" to="Main/Timeline" method="OnLowerTimelineAudioPlaybackFinished"]
[connection signal="AudioPlaybackFinished" from="Main/Timeline/LowerTimeline" to="AudioGenerator" method="OnAudioPlaybackFinished"]
[connection signal="child_order_changed" from="Main/Timeline/VBoxContainer/ScrollContainer/HBoxContainer/TimelineContainer" to="Main/Timeline/LowerTimeline" method="ComputeFunctions"]
[connection signal="AutoSaveOccurred" from="Storage/Serializer" to="Storage" method="OnAutoSaveOccurred"]
[connection signal="ComponentDeSerialized" from="Storage/Serializer" to="Storage" method="OnComponentDeSerialized"]
[connection signal="ComponentSerialized" from="Storage/Serializer" to="Storage" method="OnComponentSerialized"]
[connection signal="TimelineLoaded" from="Storage/Serializer" to="AudioGenerator" method="OnTimelineUpdated"]
[connection signal="SelectedSave" from="Storage/SaveSelector" to="Storage" method="OnSaveSelected"]
[connection signal="timeout" from="Storage/SaveTimer" to="Storage/Serializer" method="OnSaveTimerTimeout"]