added settings menu
This commit is contained in:
49
Assets/components/main_menu.tscn
Normal file
49
Assets/components/main_menu.tscn
Normal file
@ -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"]
|
||||
Reference in New Issue
Block a user