DreamBall/menus/main/initial_menu.tscn

51 lines
1.3 KiB
Text

[gd_scene load_steps=2 format=3 uid="uid://dys7qyy4b3gjt"]
[sub_resource type="GDScript" id="GDScript_vfuxb"]
script/source = "extends Control
signal request_start
signal request_settings
func _on_btn_start_pressed() -> void:
request_start.emit()
func _on_btn_settings_pressed() -> void:
request_settings.emit()
func _on_btn_exit_pressed() -> void:
get_tree().quit()
"
[node name="InitialMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = SubResource("GDScript_vfuxb")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="BtnStart" type="Button" parent="VBoxContainer"]
layout_mode = 2
text = "Start the game!"
[node name="BtnSettings" type="Button" parent="VBoxContainer"]
layout_mode = 2
text = "Check out the settings"
[node name="BtnExit" type="Button" parent="VBoxContainer"]
layout_mode = 2
text = "Exit the game"
[connection signal="pressed" from="VBoxContainer/BtnStart" to="." method="_on_btn_start_pressed"]
[connection signal="pressed" from="VBoxContainer/BtnSettings" to="." method="_on_btn_settings_pressed"]
[connection signal="pressed" from="VBoxContainer/BtnExit" to="." method="_on_btn_exit_pressed"]