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")
|
2022-12-22 16:37:10 -07:00
|
|
|
add_child(dialog)
|
2022-11-27 19:55:11 -07:00
|
|
|
|
|
|
|
func _on_Credits_pressed():
|
2022-12-20 14:50:01 -07:00
|
|
|
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")
|