Snake/Scene/Main Menu.tscn

75 lines
2.4 KiB
Text
Raw Normal View History

[gd_scene load_steps=3 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"]
[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
[node name="Menu Butons" type="VBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="Start Button" type="Button" parent="MarginContainer/VBoxContainer/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 = "Start"
[node name="About Button" type="Button" parent="MarginContainer/VBoxContainer/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
"
[node name="Quit Button" type="Button" parent="MarginContainer/VBoxContainer/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 = "Quit"
[connection signal="pressed" from="MarginContainer/VBoxContainer/Menu Butons/Start Button" to="." method="_on_start_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/Menu Butons/About Button" to="." method="_on_about_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/Menu Butons/Quit Button" to="." method="_on_quit_button_pressed"]