-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main Menu.tscn
328 lines (289 loc) · 12.7 KB
/
Main Menu.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
[gd_scene load_steps=17 format=2]
[ext_resource path="res://Assets/Oswald/static/Oswald-Bold.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://HTTPRequest.gd" type="Script" id=2]
[ext_resource path="res://VolumeSlider.gd" type="Script" id=3]
[ext_resource path="res://Assets/button_normal.png" type="Texture" id=4]
[ext_resource path="res://Assets/button_pressed.png" type="Texture" id=5]
[ext_resource path="res://Button.gd" type="Script" id=6]
[ext_resource path="res://input_menu/InputMenu.tscn" type="PackedScene" id=7]
[ext_resource path="res://Volume Sliders.gd" type="Script" id=8]
[ext_resource path="res://Main Menu.gd" type="Script" id=9]
[ext_resource path="res://Assets/button_hover.png" type="Texture" id=10]
[ext_resource path="res://Assets/Lato/Lato-Light.ttf" type="DynamicFontData" id=11]
[sub_resource type="DynamicFont" id=1]
size = 120
outline_size = 2
outline_color = Color( 0.980392, 0.380392, 0.286275, 1 )
font_data = ExtResource( 1 )
[sub_resource type="Theme" id=2]
default_font = SubResource( 1 )
[sub_resource type="DynamicFont" id=5]
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 1 )
[sub_resource type="Theme" id=4]
default_font = SubResource( 5 )
[sub_resource type="DynamicFont" id=6]
size = 25
font_data = ExtResource( 11 )
[node name="Main Menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 9 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0.0196078, 0, 0.258824, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="ColorRect"]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="ColorRect/CenterContainer"]
margin_left = 161.0
margin_top = 110.0
margin_right = 1118.0
margin_bottom = 610.0
rect_min_size = Vector2( 0, 500 )
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/CenterContainer/MarginContainer"]
margin_right = 957.0
margin_bottom = 500.0
size_flags_vertical = 3
[node name="Game Title" type="Label" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer"]
margin_right = 957.0
margin_bottom = 179.0
theme = SubResource( 2 )
custom_colors/font_color = Color( 0.941176, 0.729412, 0, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
custom_constants/shadow_offset_x = 3
custom_constants/shadow_offset_y = 3
text = "The sun snatcher"
align = 1
valign = 1
uppercase = true
[node name="CenterContainer" type="CenterContainer" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer"]
margin_top = 183.0
margin_right = 957.0
margin_bottom = 311.0
[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer"]
margin_left = 378.0
margin_right = 578.0
margin_bottom = 128.0
rect_min_size = Vector2( 200, 0 )
size_flags_horizontal = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" type="TextureButton" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer"]
margin_right = 200.0
margin_bottom = 40.0
rect_min_size = Vector2( 0, 40 )
theme = SubResource( 4 )
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 5 )
texture_hover = ExtResource( 10 )
expand = true
script = ExtResource( 6 )
[node name="Label" type="Label" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Button"]
margin_top = 7.0
margin_right = 200.0
margin_bottom = 32.0
custom_colors/font_color = Color( 0.890196, 0.670588, 0.00392157, 1 )
text = "New Game"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button2" type="TextureButton" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer"]
margin_top = 44.0
margin_right = 200.0
margin_bottom = 84.0
rect_min_size = Vector2( 0, 40 )
theme = SubResource( 4 )
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 5 )
texture_hover = ExtResource( 10 )
expand = true
[node name="Label" type="Label" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Button2"]
margin_top = 7.0
margin_right = 200.0
margin_bottom = 32.0
custom_colors/font_color = Color( 0.890196, 0.670588, 0.00392157, 1 )
text = "Remap Keys"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Volume Settings" type="VBoxContainer" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer"]
margin_top = 88.0
margin_right = 200.0
margin_bottom = 128.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="TextureButton" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings"]
margin_right = 200.0
margin_bottom = 40.0
rect_min_size = Vector2( 0, 40 )
theme = SubResource( 4 )
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 5 )
texture_hover = ExtResource( 10 )
expand = true
[node name="Label" type="Label" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Label"]
margin_top = 7.0
margin_right = 200.0
margin_bottom = 32.0
custom_colors/font_color = Color( 0.890196, 0.670588, 0.00392157, 1 )
text = "Volume Settings"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label2" type="Button" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings"]
visible = false
margin_top = 44.0
margin_right = 200.0
margin_bottom = 75.0
theme = SubResource( 4 )
text = "Volume Settings"
[node name="Volume Sliders" type="VBoxContainer" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings"]
visible = false
margin_top = 35.0
margin_right = 200.0
margin_bottom = 145.0
script = ExtResource( 8 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label2" type="Label" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders"]
margin_right = 200.0
margin_bottom = 14.0
text = "Master Volume"
align = 1
[node name="MasterVolumeSlider" type="HSlider" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders"]
margin_top = 18.0
margin_right = 200.0
margin_bottom = 34.0
rect_min_size = Vector2( 200, 0 )
max_value = 1.0
step = 0.01
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label3" type="Label" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders"]
margin_top = 38.0
margin_right = 200.0
margin_bottom = 52.0
text = "Music Volume"
align = 1
[node name="MusicVolumeSlider" type="HSlider" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders"]
margin_top = 56.0
margin_right = 200.0
margin_bottom = 72.0
rect_min_size = Vector2( 200, 0 )
max_value = 1.0
step = 0.01
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
audio_bus_name = "Music"
[node name="Label4" type="Label" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders"]
margin_top = 76.0
margin_right = 200.0
margin_bottom = 90.0
text = "Sounds Effects Volume"
align = 1
[node name="OtherVolumeSlider" type="HSlider" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders"]
margin_top = 94.0
margin_right = 200.0
margin_bottom = 110.0
rect_min_size = Vector2( 200, 0 )
max_value = 1.0
step = 0.01
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
audio_bus_name = "Other"
[node name="VBoxContainer2" type="VBoxContainer" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer"]
margin_top = 315.0
margin_right = 957.0
margin_bottom = 500.0
size_flags_vertical = 3
alignment = 2
[node name="Feedback" type="HBoxContainer" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2"]
margin_top = 135.0
margin_right = 957.0
margin_bottom = 185.0
theme = SubResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextEdit" type="TextEdit" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback"]
margin_right = 803.0
margin_bottom = 50.0
rect_min_size = Vector2( 0, 50 )
size_flags_horizontal = 3
[node name="Send feedback" type="TextureButton" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback"]
margin_left = 807.0
margin_right = 957.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 40 )
theme = SubResource( 4 )
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 5 )
texture_hover = ExtResource( 10 )
expand = true
[node name="Label" type="Label" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback/Send feedback"]
margin_top = 10.0
margin_right = 150.0
margin_bottom = 35.0
custom_colors/font_color = Color( 0.890196, 0.670588, 0.00392157, 1 )
text = "Send Comment"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HTTPRequest" type="HTTPRequest" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback/Send feedback"]
script = ExtResource( 2 )
[node name="Send feedback2" type="Button" parent="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback"]
visible = false
margin_left = 848.0
margin_right = 957.0
margin_bottom = 50.0
text = "Send feedback"
[node name="Credit" type="Label" parent="ColorRect"]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -79.0
custom_fonts/font = SubResource( 6 )
text = "Authors: Cris (Godot Scripting, UI, art edition), JT Contreras (music, sound design), MREloda (artstyle, visual assets)
Special thanks: Buch (https://opengameart.org/users/buch), GDQuest (https://youtu.be/PKV_i4kaC0M)"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="InputMenu" parent="." instance=ExtResource( 7 )]
visible = false
[connection signal="pressed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Button" to="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Button" method="_on_Button_pressed"]
[connection signal="pressed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Button2" to="InputMenu" method="_on_Button2_pressed"]
[connection signal="pressed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Label" to="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders" method="_on_Label_pressed"]
[connection signal="pressed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Label2" to="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders" method="_on_Label_pressed"]
[connection signal="value_changed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders/MasterVolumeSlider" to="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders/MasterVolumeSlider" method="_on_VolumeSlider_value_changed"]
[connection signal="value_changed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders/MusicVolumeSlider" to="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders/MusicVolumeSlider" method="_on_VolumeSlider_value_changed"]
[connection signal="value_changed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders/OtherVolumeSlider" to="ColorRect/CenterContainer/MarginContainer/VBoxContainer/CenterContainer/VBoxContainer/Volume Settings/Volume Sliders/OtherVolumeSlider" method="_on_VolumeSlider_value_changed"]
[connection signal="pressed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback/Send feedback" to="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback/Send feedback/HTTPRequest" method="_on_Send_feedback_pressed"]
[connection signal="pressed" from="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback/Send feedback2" to="ColorRect/CenterContainer/MarginContainer/VBoxContainer/VBoxContainer2/Feedback/Send feedback/HTTPRequest" method="_on_Send_feedback_pressed"]