[gd_scene load_steps=2 format=3 uid="uid://dti7d1rslmhgp"]

[sub_resource type="GDScript" id="GDScript_kvqlu"]
script/source = "extends Control

@onready var next_scene := preload(\"res://maps/testmap.tscn\")

func _on_start_button_pressed() -> void:
	get_tree().change_scene_to_packed.call_deferred(next_scene)
"

[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 = SubResource("GDScript_kvqlu")

[node name="CenterContainer" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
layout_mode = 2

[node name="StartButton" type="Button" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
text = "Start"

[connection signal="pressed" from="CenterContainer/VBoxContainer/StartButton" to="." method="_on_start_button_pressed"]
