victory_menu.gd 369 B

12345678910111213141516171819
  1. extends VSplitContainer
  2. func _input(event: InputEvent) -> void:
  3. if event.is_action_released("ui_pause"):
  4. # Prevent title screen to be paused
  5. get_viewport().set_input_as_handled()
  6. func _on_title_button_pressed():
  7. get_tree().reload_current_scene()
  8. func _on_quit_button_pressed():
  9. get_tree().quit()
  10. func _on_visibility_changed():
  11. %TitleButton.grab_focus()