From ed0f7870a02eade041c6a69c8545fbf0365eaa75 Mon Sep 17 00:00:00 2001 From: techrunner Date: Sun, 7 Apr 2024 14:01:00 -0500 Subject: [PATCH] added settings menu --- Assets/components/main_menu.tscn | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Assets/components/main_menu.tscn diff --git a/Assets/components/main_menu.tscn b/Assets/components/main_menu.tscn new file mode 100644 index 0000000..8909b3e --- /dev/null +++ b/Assets/components/main_menu.tscn @@ -0,0 +1,49 @@ +[gd_scene load_steps=3 format=3 uid="uid://brmo5qqqtj2mk"] + +[ext_resource type="Script" path="res://Assets/scripts/Main Menu.gd" id="1_ju3pm"] +[ext_resource type="Theme" uid="uid://bm7gkjfqwmc3i" path="res://Assets/main_menu_theme.tres" id="1_pjxx2"] + +[node name="Main Menu" 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_pjxx2") +script = ExtResource("1_ju3pm") + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -244.0 +offset_top = -181.0 +offset_right = 244.0 +offset_bottom = 181.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Label" type="Label" parent="VBoxContainer"] +layout_mode = 2 +text = " Un-named + Horror game" + +[node name="Start" type="Button" parent="VBoxContainer"] +layout_mode = 2 +text = "Start" + +[node name="Settings" type="Button" parent="VBoxContainer"] +layout_mode = 2 +text = "Settings" + +[node name="Exit" type="Button" parent="VBoxContainer"] +layout_mode = 2 +text = "Exit" + +[connection signal="pressed" from="VBoxContainer/Start" to="." method="_on_start_pressed"] +[connection signal="pressed" from="VBoxContainer/Settings" to="." method="_on_settings_pressed"] +[connection signal="pressed" from="VBoxContainer/Exit" to="." method="_on_exit_pressed"]