45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
|
[gd_scene load_steps=2 format=3 uid="uid://de7bjfpfgrnuv"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://scripts/main_menu.gd" id="1_2lfxk"]
|
||
|
|
||
|
[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_2lfxk")
|
||
|
|
||
|
[node name="MenuButtons" 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 = -68.5
|
||
|
offset_top = -50.5
|
||
|
offset_right = 68.5
|
||
|
offset_bottom = 50.5
|
||
|
grow_horizontal = 2
|
||
|
grow_vertical = 2
|
||
|
|
||
|
[node name="PlayButton" type="Button" parent="MenuButtons"]
|
||
|
layout_mode = 2
|
||
|
text = "Play
|
||
|
"
|
||
|
|
||
|
[node name="TestButton" type="Button" parent="MenuButtons"]
|
||
|
layout_mode = 2
|
||
|
text = "Test
|
||
|
"
|
||
|
|
||
|
[node name="ExitButton" type="Button" parent="MenuButtons"]
|
||
|
layout_mode = 2
|
||
|
text = "Exit"
|
||
|
|
||
|
[connection signal="pressed" from="MenuButtons/PlayButton" to="." method="_on_play_button_pressed"]
|
||
|
[connection signal="pressed" from="MenuButtons/TestButton" to="." method="_on_test_button_pressed"]
|
||
|
[connection signal="pressed" from="MenuButtons/ExitButton" to="." method="_on_exit_button_pressed"]
|