meat_madness_redux/godot/tests/test_titlescreen_planet/TitleMenu.gd

24 lines
500 B
GDScript3
Raw Normal View History

2022-12-28 20:24:20 -07:00
extends Control
func _ready():
$ButtonContainer/PlayButton.grab_focus()
func _on_PlayButton_pressed():
$MenuMusic.stop()
$BlackoutSound.play()
$ButtonContainer.visible = false
$BlackoutScreen.visible = true
var dialog = Dialogic.start("intro")
add_child(dialog)
func _on_Credits_pressed():
var dialog = Dialogic.start("credits")
add_child(dialog)
func _on_Controls_pressed():
var dialog = Dialogic.start("controls")
add_child(dialog)
func _on_QuitButton_pressed():
get_tree().quit()