main menu stuff

This commit is contained in:
2024-01-25 15:38:51 +01:00
parent a72973d28a
commit 0d2e01073c
3 changed files with 40 additions and 9 deletions

View File

@@ -12,7 +12,10 @@ func _ready() -> void:
func _notification(what: int) -> void:
if what == NOTIFICATION_WM_CLOSE_REQUEST:
popup_close_dialog()
if get_tree().current_scene is MainMenu :
get_tree().quit()
else:
popup_close_dialog()
if what == NOTIFICATION_APPLICATION_FOCUS_OUT:
show_pause_menu()