bugged-racing/menu/main_menu.gd

20 lines
574 B
GDScript
Raw Normal View History

2021-11-12 23:03:35 +00:00
extends Panel
2021-11-14 21:54:55 +00:00
func _ready() -> void:
2021-11-17 21:26:46 +00:00
$MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer/StartButton.grab_focus()
2021-11-14 21:54:55 +00:00
2021-11-12 23:03:35 +00:00
func _on_StartButton_pressed() -> void:
2021-11-18 19:48:47 +00:00
get_tree().change_scene("res://menu/start_menu.tscn")
2021-11-12 23:03:35 +00:00
func _on_ExitButton_pressed() -> void:
get_tree().quit()
func _on_SettingsButton_pressed() -> void:
2021-11-18 19:48:47 +00:00
get_tree().change_scene("res://menu/settings_menu.tscn")
2021-11-17 21:26:46 +00:00
func _on_AboutButton_pressed() -> void:
2021-11-18 19:48:47 +00:00
get_tree().change_scene("res://menu/about.tscn")
2021-11-17 21:26:46 +00:00
func _on_GodotButton_pressed() -> void:
OS.shell_open("https://godotengine.org")