-
Notifications
You must be signed in to change notification settings - Fork 1
/
SettingsControl.tscn
157 lines (141 loc) · 4.11 KB
/
SettingsControl.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
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Background.tscn" type="PackedScene" id=1]
[ext_resource path="res://fonts/Roboto-Black.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://SettingsControl.gd" type="Script" id=3]
[ext_resource path="res://Settings.gd" type="Script" id=4]
[ext_resource path="res://audio/intro.ogg" type="AudioStream" id=5]
[ext_resource path="res://audio/song.ogg" type="AudioStream" id=6]
[sub_resource type="DynamicFont" id=1]
size = 64
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=2]
size = 32
font_data = ExtResource( 2 )
[node name="SettingsControl" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
Settings = ExtResource( 4 )
[node name="Background" parent="." instance=ExtResource( 1 )]
[node name="Topic" type="RichTextLabel" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -131.0
margin_right = 131.0
margin_bottom = 84.0
custom_fonts/normal_font = SubResource( 1 )
custom_colors/default_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_shadow = Color( 1, 1, 1, 1 )
text = "Settings"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Save" type="Button" parent="."]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -147.774
margin_top = -104.102
margin_right = 148.226
margin_bottom = -36.1025
custom_fonts/font = SubResource( 2 )
text = "Save & Back"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Reset" type="Button" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -275.46
margin_top = -59.4597
margin_right = -15.4597
margin_bottom = -15.4597
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0.419608, 0.419608, 0.419608, 1 )
text = "Reset to Defaults"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Fullscreen" type="CheckBox" parent="."]
margin_left = 520.644
margin_top = 165.145
margin_right = 711.644
margin_bottom = 249.145
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Fullscreen"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BackgroundColor" type="ColorPickerButton" parent="."]
margin_left = 508.0
margin_top = 240.0
margin_right = 781.0
margin_bottom = 284.0
custom_fonts/font = SubResource( 2 )
text = "Background Color"
color = Color( 1, 0.894118, 0.768627, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Width" type="SpinBox" parent="."]
margin_left = 505.383
margin_top = 300.8
margin_right = 613.383
margin_bottom = 324.8
rect_scale = Vector2( 3, 3 )
min_value = 4.0
max_value = 16.0
step = 2.0
value = 4.0
prefix = "Width:"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Height" type="SpinBox" parent="."]
margin_left = 506.643
margin_top = 384.39
margin_right = 614.643
margin_bottom = 408.39
rect_scale = Vector2( 3, 3 )
min_value = 4.0
max_value = 16.0
step = 2.0
value = 4.0
prefix = "Length:"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Cheeses" type="SpinBox" parent="."]
margin_left = 508.383
margin_top = 468.571
margin_right = 615.383
margin_bottom = 492.571
rect_scale = Vector2( 3, 3 )
min_value = 1.0
max_value = 10.0
value = 4.0
prefix = "Cheeses:"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Intro" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
volume_db = -10.0
autoplay = true
[node name="Song" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
[connection signal="pressed" from="Save" to="." method="_on_Save_pressed"]
[connection signal="pressed" from="Reset" to="." method="_on_Reset_pressed"]
[connection signal="pressed" from="Fullscreen" to="." method="_on_Fullscreen_pressed"]
[connection signal="color_changed" from="BackgroundColor" to="." method="_on_BackgroundColor_changed"]
[connection signal="value_changed" from="Width" to="." method="_on_Width_changed"]
[connection signal="value_changed" from="Height" to="." method="_on_Height_changed"]
[connection signal="value_changed" from="Cheeses" to="." method="_on_Cheeses_changed"]
[connection signal="finished" from="Intro" to="." method="_on_Intro_finished"]