2021-11-12 23:03:35 +00:00
|
|
|
extends Panel
|
|
|
|
|
2021-11-18 23:36:05 +00:00
|
|
|
|
2021-11-14 21:54:55 +00:00
|
|
|
func _ready() -> void:
|
2021-11-18 23:36:05 +00:00
|
|
|
# gdlint: ignore=max-line-length
|
2022-01-20 15:50:44 +00:00
|
|
|
$MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer/SingleplayerButton.grab_focus()
|
2022-01-21 13:18:13 +00:00
|
|
|
$MarginContainer/VSplitContainer/VBoxContainer/VersionLabel.text = (
|
|
|
|
"Version: %s"
|
|
|
|
% GlobalSettings.get_version_string()
|
|
|
|
)
|
2021-11-14 21:54:55 +00:00
|
|
|
|
2021-11-18 23:36:05 +00:00
|
|
|
|
2022-01-20 15:50:44 +00:00
|
|
|
func _on_SingleplayerButton_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
|
|
|
|
2021-11-18 23:36:05 +00:00
|
|
|
|
2022-01-20 15:50:44 +00:00
|
|
|
func _on_MultiplayerButton_pressed() -> void:
|
|
|
|
get_tree().change_scene("res://menu/multiplayer_menu.tscn")
|
|
|
|
|
|
|
|
|
2021-11-12 23:03:35 +00:00
|
|
|
func _on_ExitButton_pressed() -> void:
|
2022-01-24 16:54:37 +00:00
|
|
|
get_tree().notification(MainLoop.NOTIFICATION_WM_QUIT_REQUEST)
|
2021-11-12 23:03:35 +00:00
|
|
|
|
2021-11-18 23:36:05 +00:00
|
|
|
|
2021-11-12 23:03:35 +00:00
|
|
|
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
|
|
|
|
2021-11-18 23:36:05 +00:00
|
|
|
|
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
|
|
|
|
2021-11-18 23:36:05 +00:00
|
|
|
|
2021-11-17 21:26:46 +00:00
|
|
|
func _on_GodotButton_pressed() -> void:
|
|
|
|
OS.shell_open("https://godotengine.org")
|
2021-11-19 17:05:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
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")
|