Snake/Scene/Main Menu.tscn

171 lines
7 KiB
Text
Raw Permalink Normal View History

2023-04-04 17:50:55 +00:00
[gd_scene load_steps=6 format=3 uid="uid://c7ok1re4seqsh"]
2023-03-27 16:05:03 +00:00
[ext_resource type="Script" path="res://Scripts/Main Menu Buttons.gd" id="1_abac4"]
2023-03-27 16:05:03 +00:00
[ext_resource type="Theme" uid="uid://clkt54a4wy6tn" path="res://Assets/Base.tres" id="1_b1d2h"]
2023-04-04 17:50:55 +00:00
[ext_resource type="AudioStream" uid="uid://b0wk8jyi64qbd" path="res://Assets/sounds/start.wav" id="3_bxs37"]
[ext_resource type="AudioStream" uid="uid://d4bi0dxjmvfyx" path="res://Assets/sounds/change.wav" id="4_gb8rx"]
[ext_resource type="AudioStream" uid="uid://d0o66pmjueo1x" path="res://Assets/sounds/menu_change.wav" id="5_xb4d6"]
2023-03-27 16:05:03 +00:00
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_abac4")
2023-03-27 16:05:03 +00:00
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_b1d2h")
2023-04-02 20:24:12 +00:00
color = Color(0.145098, 0.145098, 0.145098, 1)
2023-03-27 16:05:03 +00:00
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 144.0
offset_top = 48.0
offset_right = -144.0
offset_bottom = -165.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 2
theme = ExtResource("1_b1d2h")
2023-04-02 20:24:12 +00:00
theme_override_colors/font_color = Color(0.603922, 0.647059, 0.486275, 1)
2023-03-27 16:05:03 +00:00
theme_override_font_sizes/font_size = 128
text = "Snake"
horizontal_alignment = 1
vertical_alignment = 1
2023-04-04 00:38:17 +00:00
[node name="Tab Group" type="TabContainer" parent="MarginContainer/VBoxContainer"]
2023-03-27 16:05:03 +00:00
layout_mode = 2
2023-04-04 00:38:17 +00:00
tabs_visible = false
2023-03-27 16:05:03 +00:00
2023-04-04 00:38:17 +00:00
[node name="Menu Butons" type="VBoxContainer" parent="MarginContainer/VBoxContainer/Tab Group"]
layout_mode = 2
[node name="Start Button" type="Button" parent="MarginContainer/VBoxContainer/Tab Group/Menu Butons"]
2023-03-27 16:05:03 +00:00
layout_mode = 2
focus_neighbor_top = NodePath("../Quit Button")
2023-03-27 16:05:03 +00:00
theme = ExtResource("1_b1d2h")
theme_override_font_sizes/font_size = 96
text = "Start"
2023-04-04 00:38:17 +00:00
[node name="Settings Button" type="Button" parent="MarginContainer/VBoxContainer/Tab Group/Menu Butons"]
layout_mode = 2
theme = ExtResource("1_b1d2h")
theme_override_font_sizes/font_size = 96
text = "Settings"
2023-04-04 00:38:17 +00:00
[node name="About Button" type="Button" parent="MarginContainer/VBoxContainer/Tab Group/Menu Butons"]
2023-03-27 16:05:03 +00:00
layout_mode = 2
theme = ExtResource("1_b1d2h")
theme_override_font_sizes/font_size = 96
text = "About
"
2023-04-04 00:38:17 +00:00
[node name="Quit Button" type="Button" parent="MarginContainer/VBoxContainer/Tab Group/Menu Butons"]
2023-03-27 16:05:03 +00:00
layout_mode = 2
focus_neighbor_bottom = NodePath("../Start Button")
2023-03-27 16:05:03 +00:00
theme = ExtResource("1_b1d2h")
theme_override_font_sizes/font_size = 96
text = "Quit"
2023-04-04 00:38:17 +00:00
[node name="Settings" type="VBoxContainer" parent="MarginContainer/VBoxContainer/Tab Group"]
2023-04-04 18:24:07 +00:00
visible = false
2023-04-04 00:38:17 +00:00
layout_mode = 2
2023-04-04 17:12:24 +00:00
[node name="GridSize" type="HBoxContainer" parent="MarginContainer/VBoxContainer/Tab Group/Settings"]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/Tab Group/Settings/GridSize"]
layout_mode = 2
theme = ExtResource("1_b1d2h")
theme_override_font_sizes/font_size = 64
text = "Grid Size "
[node name="GridSize_Slider" type="HSlider" parent="MarginContainer/VBoxContainer/Tab Group/Settings/GridSize"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
theme = ExtResource("1_b1d2h")
min_value = 6.0
max_value = 32.0
value = 10.0
rounded = true
[node name="Value" type="Label" parent="MarginContainer/VBoxContainer/Tab Group/Settings/GridSize"]
layout_mode = 2
theme = ExtResource("1_b1d2h")
theme_override_font_sizes/font_size = 64
text = "00"
[node name="Speed" type="HBoxContainer" parent="MarginContainer/VBoxContainer/Tab Group/Settings"]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/Tab Group/Settings/Speed"]
layout_mode = 2
theme = ExtResource("1_b1d2h")
theme_override_font_sizes/font_size = 64
text = "Speed "
[node name="Speed_Slider" type="HSlider" parent="MarginContainer/VBoxContainer/Tab Group/Settings/Speed"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
theme = ExtResource("1_b1d2h")
min_value = 0.25
max_value = 5.0
step = 0.25
value = 1.0
[node name="Value" type="Label" parent="MarginContainer/VBoxContainer/Tab Group/Settings/Speed"]
2023-04-04 00:53:35 +00:00
layout_mode = 2
theme = ExtResource("1_b1d2h")
2023-04-04 17:12:24 +00:00
theme_override_font_sizes/font_size = 64
text = "00"
2023-04-04 00:53:35 +00:00
2023-04-04 00:38:17 +00:00
[node name="Back Button" type="Button" parent="MarginContainer/VBoxContainer/Tab Group/Settings"]
layout_mode = 2
theme = ExtResource("1_b1d2h")
theme_override_font_sizes/font_size = 96
text = "Back"
2023-04-04 17:50:55 +00:00
[node name="AudioStreamPlayer Start" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_bxs37")
[node name="AudioStreamPlayer Change UI" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_gb8rx")
[node name="AudioStreamPlayer Change Value" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_xb4d6")
[connection signal="focus_entered" from="." to="." method="_on_focus_entered"]
[connection signal="focus_entered" from="MarginContainer/VBoxContainer/Tab Group/Menu Butons/Start Button" to="." method="_on_focus_entered"]
2023-04-04 00:38:17 +00:00
[connection signal="pressed" from="MarginContainer/VBoxContainer/Tab Group/Menu Butons/Start Button" to="." method="_on_start_button_pressed"]
2023-04-04 17:50:55 +00:00
[connection signal="focus_entered" from="MarginContainer/VBoxContainer/Tab Group/Menu Butons/Settings Button" to="." method="_on_focus_entered"]
2023-04-04 00:38:17 +00:00
[connection signal="pressed" from="MarginContainer/VBoxContainer/Tab Group/Menu Butons/Settings Button" to="." method="_on_settings_button_pressed"]
2023-04-04 17:50:55 +00:00
[connection signal="focus_entered" from="MarginContainer/VBoxContainer/Tab Group/Menu Butons/About Button" to="." method="_on_focus_entered"]
2023-04-04 00:38:17 +00:00
[connection signal="pressed" from="MarginContainer/VBoxContainer/Tab Group/Menu Butons/About Button" to="." method="_on_about_button_pressed"]
2023-04-04 17:50:55 +00:00
[connection signal="focus_entered" from="MarginContainer/VBoxContainer/Tab Group/Menu Butons/Quit Button" to="." method="_on_focus_entered"]
2023-04-04 00:38:17 +00:00
[connection signal="pressed" from="MarginContainer/VBoxContainer/Tab Group/Menu Butons/Quit Button" to="." method="_on_quit_button_pressed"]
2023-04-04 17:50:55 +00:00
[connection signal="focus_entered" from="MarginContainer/VBoxContainer/Tab Group/Settings/GridSize/GridSize_Slider" to="." method="_on_focus_entered"]
2023-04-04 17:12:24 +00:00
[connection signal="value_changed" from="MarginContainer/VBoxContainer/Tab Group/Settings/GridSize/GridSize_Slider" to="." method="_on_grid_size_slider_value_changed"]
2023-04-04 17:50:55 +00:00
[connection signal="focus_entered" from="MarginContainer/VBoxContainer/Tab Group/Settings/Speed/Speed_Slider" to="." method="_on_focus_entered"]
2023-04-04 17:12:24 +00:00
[connection signal="value_changed" from="MarginContainer/VBoxContainer/Tab Group/Settings/Speed/Speed_Slider" to="." method="_on_speed_slider_value_changed"]
2023-04-04 17:50:55 +00:00
[connection signal="focus_entered" from="MarginContainer/VBoxContainer/Tab Group/Settings/Back Button" to="." method="_on_focus_entered"]
2023-04-04 00:38:17 +00:00
[connection signal="pressed" from="MarginContainer/VBoxContainer/Tab Group/Settings/Back Button" to="." method="_on_back_button_pressed"]