2025-05-07 00:34:45 +02:00
|
|
|
[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"]
|
2025-03-27 16:00:39 +01:00
|
|
|
|
|
|
|
[sub_resource type="GDScript" id="GDScript_vfuxb"]
|
2025-05-07 00:34:45 +02:00
|
|
|
script/source = "extends MainMenuComponent
|
2025-03-27 16:00:39 +01:00
|
|
|
|
|
|
|
signal request_start
|
|
|
|
signal request_settings
|
|
|
|
|
2025-05-07 19:56:24 +02:00
|
|
|
func _init() -> void:
|
|
|
|
self.displayed_name = \"Main menu\"
|
|
|
|
|
2025-03-27 16:00:39 +01:00
|
|
|
func _on_btn_start_pressed() -> void:
|
|
|
|
request_start.emit()
|
|
|
|
|
|
|
|
func _on_btn_settings_pressed() -> void:
|
|
|
|
request_settings.emit()
|
|
|
|
|
|
|
|
func _on_btn_exit_pressed() -> void:
|
2025-05-07 00:34:45 +02:00
|
|
|
return_to_previous.emit()
|
2025-03-27 16:00:39 +01:00
|
|
|
"
|
|
|
|
|
2025-04-24 14:54:54 +02:00
|
|
|
[node name="InitialMenu" type="Control"]
|
2025-03-27 16:00:39 +01:00
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2025-05-07 00:34:45 +02:00
|
|
|
theme = ExtResource("1_164bd")
|
2025-03-27 16:00:39 +01:00
|
|
|
script = SubResource("GDScript_vfuxb")
|
|
|
|
|
2025-05-07 00:34:45 +02:00
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
2025-03-27 16:00:39 +01:00
|
|
|
layout_mode = 1
|
2025-04-16 00:16:39 +02:00
|
|
|
anchors_preset = 15
|
2025-03-27 16:00:39 +01:00
|
|
|
anchor_right = 1.0
|
2025-04-16 00:16:39 +02:00
|
|
|
anchor_bottom = 1.0
|
2025-03-27 16:00:39 +01:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2025-05-10 15:39:20 +02:00
|
|
|
color = Color(0, 0.405339, 0.405339, 1)
|
2025-05-07 00:34:45 +02:00
|
|
|
|
|
|
|
[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
|
2025-03-27 16:00:39 +01:00
|
|
|
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"]
|