40 lines
889 B
GDScript
40 lines
889 B
GDScript
extends Panel
|
|
|
|
|
|
func _ready() -> void:
|
|
# gdlint: ignore=max-line-length
|
|
$MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer/StartButton.grab_focus()
|
|
MusicPlayer.play_theme("main")
|
|
|
|
|
|
func _on_StartButton_pressed() -> void:
|
|
get_tree().change_scene("res://menu/start_menu.tscn")
|
|
|
|
|
|
func _on_ExitButton_pressed() -> void:
|
|
get_tree().quit()
|
|
|
|
|
|
func _on_SettingsButton_pressed() -> void:
|
|
get_tree().change_scene("res://menu/settings_menu.tscn")
|
|
|
|
|
|
func _on_AboutButton_pressed() -> void:
|
|
get_tree().change_scene("res://menu/about.tscn")
|
|
|
|
|
|
func _on_GodotButton_pressed() -> void:
|
|
OS.shell_open("https://godotengine.org")
|
|
|
|
|
|
func _on_BlenderButton_pressed() -> void:
|
|
OS.shell_open("https://www.blender.org")
|
|
|
|
|
|
func _on_KritaButton_pressed() -> void:
|
|
OS.shell_open("https://krita.org")
|
|
|
|
|
|
func _on_KenneyButton_pressed() -> void:
|
|
OS.shell_open("https://kenney.nl")
|