small racing game im working on
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
[gd_scene load_steps=9 format=3 uid="uid://co11ood2nmady"]

[ext_resource type="Theme" uid="uid://d3ywcokn5ddy8" path="res://ui/theme.tres" id="1_gm0ws"]
[ext_resource type="Script" path="res://ui/tracks.gd" id="2_po2ce"]
[ext_resource type="Theme" uid="uid://bds815vxta4ma" path="res://ui/editor/bar_button.tres" id="6_e1quy"]
[ext_resource type="Script" path="res://ui/multi_button.gd" id="7_rhu6g"]
[ext_resource type="Script" path="res://ui/editor/import.gd" id="8_1f3ce"]
[ext_resource type="Script" path="res://ui/editor/track_select.gd" id="8_v6p1s"]
[ext_resource type="AudioStream" uid="uid://bwiyphl31lwu6" path="res://assets/sounds/music.ogg" id="9_ma7kx"]

[sub_resource type="LabelSettings" id="LabelSettings_8ohli"]
font_size = 24
outline_size = 12
outline_color = Color(0, 0.168627, 0.211765, 1)

[node name="start" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_gm0ws")

[node name="margin" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 50
theme_override_constants/margin_top = 50
theme_override_constants/margin_right = 50
theme_override_constants/margin_bottom = 50

[node name="tabs" type="TabContainer" parent="margin"]
layout_mode = 2
tab_alignment = 1

[node name="play" type="VBoxContainer" parent="margin/tabs"]
layout_mode = 2

[node name="tracks" type="GridContainer" parent="margin/tabs/play"]
layout_mode = 2
theme_override_constants/h_separation = 15
theme_override_constants/v_separation = 15
columns = 5
script = ExtResource("2_po2ce")
editable = false
metadata/_edit_pinned_properties_ = [&"editable"]

[node name="create" type="VBoxContainer" parent="margin/tabs"]
visible = false
layout_mode = 2

[node name="buttons" type="HFlowContainer" parent="margin/tabs/create"]
layout_mode = 2
theme = ExtResource("6_e1quy")

[node name="new" type="Button" parent="margin/tabs/create/buttons" node_paths=PackedStringArray("secondary")]
custom_minimum_size = Vector2(50, 0)
layout_mode = 2
theme_override_font_sizes/font_size = 52
action_mode = 0
text = "󰈔"
script = ExtResource("7_rhu6g")
secondary = NodePath("plus")

[node name="plus" type="Label" parent="margin/tabs/create/buttons/new"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -9.0
offset_top = -24.0
offset_right = 4.0
offset_bottom = 4.0
grow_horizontal = 0
grow_vertical = 0
text = ""
label_settings = SubResource("LabelSettings_8ohli")

[node name="import" type="Button" parent="margin/tabs/create/buttons"]
custom_minimum_size = Vector2(50, 0)
layout_mode = 2
theme_override_font_sizes/font_size = 52
disabled = true
action_mode = 0
text = "󰳸"
script = ExtResource("8_1f3ce")

[node name="tracks_owned" type="GridContainer" parent="margin/tabs/create" node_paths=PackedStringArray("other")]
layout_mode = 2
script = ExtResource("8_v6p1s")
other = NodePath("../../play/tracks")
editable = true
metadata/_edit_pinned_properties_ = [&"editable"]

[node name="music" type="AudioStreamPlayer" parent="."]
stream = ExtResource("9_ma7kx")
volume_db = -25.0
autoplay = true
bus = &"music"

[connection signal="pressed" from="margin/tabs/create/buttons/new" to="margin/tabs/create/tracks_owned" method="_on_new_pressed"]
[connection signal="import" from="margin/tabs/create/buttons/import" to="margin/tabs/create/tracks_owned" method="_on_import_import"]