23 lines
527 B
GDScript
23 lines
527 B
GDScript
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("chapterselect")
|
|
add_child(dialog)
|
|
|
|
func _on_Credits_pressed():
|
|
var dialog = Dialogic.start("credits")
|
|
add_child(dialog)
|
|
|
|
func _on_QuitButton_pressed():
|
|
get_tree().quit()
|
|
|
|
func _on_MenuButton_pressed():
|
|
var _err = get_tree().change_scene("res://screens/TitleScreen_Planet.tscn")
|