diff --git a/Assets/components/main_menu.tscn b/Assets/components/main_menu.tscn index 8909b3e..657435d 100644 --- a/Assets/components/main_menu.tscn +++ b/Assets/components/main_menu.tscn @@ -14,6 +14,7 @@ theme = ExtResource("1_pjxx2") script = ExtResource("1_ju3pm") [node name="VBoxContainer" type="VBoxContainer" parent="."] +visible = false layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 @@ -36,6 +37,9 @@ text = " Un-named layout_mode = 2 text = "Start" +[node name="Load Level" type="Button" parent="VBoxContainer"] +layout_mode = 2 + [node name="Settings" type="Button" parent="VBoxContainer"] layout_mode = 2 text = "Settings" @@ -45,5 +49,6 @@ layout_mode = 2 text = "Exit" [connection signal="pressed" from="VBoxContainer/Start" to="." method="_on_start_pressed"] +[connection signal="pressed" from="VBoxContainer/Load Level" to="." method="_on_load_level_pressed"] [connection signal="pressed" from="VBoxContainer/Settings" to="." method="_on_settings_pressed"] [connection signal="pressed" from="VBoxContainer/Exit" to="." method="_on_exit_pressed"] diff --git a/Assets/scripts/Main Menu.gd b/Assets/scripts/Main Menu.gd index 87574cd..fc0ff46 100644 --- a/Assets/scripts/Main Menu.gd +++ b/Assets/scripts/Main Menu.gd @@ -16,3 +16,7 @@ func _on_start_pressed(): func _on_settings_pressed(): pass # Replace with function body. + + +func _on_load_level_pressed(): + pass # Replace with function body.