DreamBall/menus/main/initial_menu.tscn

73 lines
1.9 KiB
Text
Raw Permalink Normal View History

[gd_scene load_steps=3 format=3 uid="uid://dys7qyy4b3gjt"]
[ext_resource type="Theme" uid="uid://c6ceauyc42c33" path="res://menus/menu.tres" id="1_164bd"]
[sub_resource type="GDScript" id="GDScript_vfuxb"]
script/source = "extends MainMenuComponent
signal request_start
signal request_settings
func _init() -> void:
self.displayed_name = \"Main menu\"
func _on_btn_start_pressed() -> void:
request_start.emit()
func _on_btn_settings_pressed() -> void:
request_settings.emit()
func _on_btn_exit_pressed() -> void:
return_to_previous.emit()
"
[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
theme = ExtResource("1_164bd")
script = SubResource("GDScript_vfuxb")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0.405339, 0.405339, 1)
[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 = -199.0
offset_top = -82.0
offset_right = 199.0
offset_bottom = 82.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"]