newlon/scripts/gui/menu_buttons.gd
2025-07-28 05:07:37 +05:00

27 lines
696 B
GDScript

extends Node
func _ready() -> void:
$InfoButtons/AboutButton.grab_focus()
func _on_play_button_pressed() -> void:
LevelController.call("StartLevel",preload("uid://dd3yegl1xo44m"),preload("uid://dwd5oqr0tuvhv"))
$ChannelPlayer.call("Play")
func _on_exit_button_pressed() -> void:
get_tree().root.propagate_notification(NOTIFICATION_WM_CLOSE_REQUEST)
get_tree().quit()
$ChannelPlayer.call("Play")
func _on_button_pressed() -> void:
$"../AboutWindow".popup_centered()
$ChannelPlayer.call("Play")
func _on_almanach_button_pressed() -> void:
$"../Almanach".visible = true
$ChannelPlayer.call("Play")
func _on_splash_button_pressed() -> void:
$"../PrototypeWindow".popup_centered()