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
|
2023-01-04 19:00:50 -07:00
|
|
|
var dialog = Dialogic.start("chapterselect")
|
2022-12-28 20:24:20 -07:00
|
|
|
add_child(dialog)
|
|
|
|
|
|
|
|
func _on_Credits_pressed():
|
|
|
|
var dialog = Dialogic.start("credits")
|
|
|
|
add_child(dialog)
|
|
|
|
|
|
|
|
func _on_Controls_pressed():
|
2023-01-04 16:52:23 -07:00
|
|
|
var dialog = Dialogic.start("controls")
|
|
|
|
add_child(dialog)
|
2022-12-28 20:24:20 -07:00
|
|
|
|
|
|
|
func _on_QuitButton_pressed():
|
|
|
|
get_tree().quit()
|
2023-01-04 16:52:23 -07:00
|
|
|
|
|
|
|
func _on_heavenButton_pressed():
|
|
|
|
var _err = get_tree().change_scene("res://assets/meat_bore/meat_heaven.tscn")
|