54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://m8lf3eh3al5j"]
|
|
|
|
[ext_resource type="Script" uid="uid://ctu58xq7btp1n" path="res://scripts/MainMenu.gd" id="1_b00nv"]
|
|
[ext_resource type="Texture2D" uid="uid://c8y6tlvcgh2gn" path="res://resources/textures/beanstalk-dark.webp" id="2_rn8js"]
|
|
|
|
[node name="MainMenu" 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_b00nv")
|
|
|
|
[node name="Background" type="TextureRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("2_rn8js")
|
|
stretch_mode = 1
|
|
|
|
[node name="MenuContainer" 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 = -20.0
|
|
offset_top = -20.0
|
|
offset_right = 20.0
|
|
offset_bottom = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="NewGameButton" type="Button" parent="MenuContainer"]
|
|
layout_mode = 2
|
|
text = "New Game"
|
|
|
|
[node name="SettingsButton" type="Button" parent="MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Settings"
|
|
|
|
[node name="ExitButton" type="Button" parent="MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Exit"
|
|
|
|
[connection signal="pressed" from="MenuContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]
|
|
[connection signal="pressed" from="MenuContainer/SettingsButton" to="." method="_on_settings_button_pressed"]
|
|
[connection signal="pressed" from="MenuContainer/ExitButton" to="." method="_on_exit_button_pressed"]
|