extends Control

func _ready() -> void:
	$CenterContainer/VBoxContainer/PlayButton.pressed.connect(_on_play)
	$CenterContainer/VBoxContainer/AboutButton.pressed.connect(_on_about)
	$CenterContainer/VBoxContainer/QuitButton.pressed.connect(_on_quit)

	# Анимация появления заголовка
	var title := $CenterContainer/VBoxContainer/TitleLabel
	title.modulate.a = 0.0
	var tween := create_tween()
	tween.tween_property(title, "modulate:a", 1.0, 0.8)


func _on_play() -> void:
	GameManager.go_to_level_select()


func _on_about() -> void:
	pass


func _on_quit() -> void:
	get_tree().quit()
