[gd_scene load_steps=4 format=3 uid="uid://c8od2cc6ck4k5"]

[ext_resource type="Script" uid="uid://cvpje2w2881j7" path="res://ui/src/main_menu.gd" id="1_k6bbd"]
[ext_resource type="Texture2D" uid="uid://br70pis7ogpf5" path="res://ui/Background.jpg" id="1_lntkk"]
[ext_resource type="Script" uid="uid://dq43w4hln4sud" path="res://ui/src/grab_focus_on_enter.gd" id="3_e2uto"]

[node name="MainMenu" type="TextureRect"]
process_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_lntkk")
expand_mode = 5
stretch_mode = 6
script = ExtResource("1_k6bbd")

[node name="MainPanel" type="PanelContainer" parent="."]
auto_translate_mode = 1
layout_mode = 1
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -180.0
offset_right = 180.0
grow_horizontal = 2
grow_vertical = 2

[node name="MarginContainer" type="MarginContainer" parent="MainPanel"]
auto_translate_mode = 1
layout_mode = 2
theme_override_constants/margin_left = 30
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 30
theme_override_constants/margin_bottom = 10

[node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/MarginContainer"]
auto_translate_mode = 1
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
alignment = 1

[node name="Label" type="Label" parent="MainPanel/MarginContainer/VBoxContainer"]
auto_translate_mode = 1
layout_mode = 2
theme_override_font_sizes/font_size = 48
text = "Main menu"
horizontal_alignment = 1
vertical_alignment = 1

[node name="ContinueButton" type="Button" parent="MainPanel/MarginContainer/VBoxContainer"]
auto_translate_mode = 1
layout_mode = 2
focus_mode = 0
disabled = true
text = "Continue"

[node name="NewGameButton" type="Button" parent="MainPanel/MarginContainer/VBoxContainer"]
auto_translate_mode = 1
layout_mode = 2
text = "New Game"
script = ExtResource("3_e2uto")

[node name="LoadButton" type="Button" parent="MainPanel/MarginContainer/VBoxContainer"]
auto_translate_mode = 1
layout_mode = 2
focus_mode = 0
disabled = true
text = "Load"

[node name="SettingsButton" type="Button" parent="MainPanel/MarginContainer/VBoxContainer"]
auto_translate_mode = 1
layout_mode = 2
focus_mode = 0
disabled = true
text = "Settings"

[node name="QuitButton" type="Button" parent="MainPanel/MarginContainer/VBoxContainer"]
auto_translate_mode = 1
layout_mode = 2
text = "Quit"

[connection signal="pressed" from="MainPanel/MarginContainer/VBoxContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]
[connection signal="pressed" from="MainPanel/MarginContainer/VBoxContainer/QuitButton" to="." method="_on_quit_button_pressed"]
