meat_madness_redux/godot/screens/EndMenu.gd

23 lines
527 B
GDScript3
Raw Normal View History

2022-11-27 19:55:11 -07:00
extends Control
func _ready():
$ButtonContainer/PlayButton.grab_focus()
func _on_PlayButton_pressed():
$MenuMusic.stop()
$BlackoutSound.play()
$ButtonContainer.visible = false
$BlackoutScreen.visible = true
2023-01-02 22:13:52 -07:00
var dialog = Dialogic.start("chapterselect")
add_child(dialog)
2022-11-27 19:55:11 -07:00
func _on_Credits_pressed():
var dialog = Dialogic.start("credits")
add_child(dialog)
2022-11-27 19:55:11 -07:00
func _on_QuitButton_pressed():
2023-01-03 17:08:43 -07:00
get_tree().quit()
2023-01-02 21:23:51 -07:00
2023-01-03 17:08:43 -07:00
func _on_MenuButton_pressed():
2023-01-04 02:31:56 -07:00
var _err = get_tree().change_scene("res://screens/TitleScreen_Planet.tscn")