Files
modbison/scripts/main_menu.gd
T

20 lines
396 B
GDScript

extends Control
func _ready():
pass
func _on_play_button_pressed():
# Navigate to the world list / browse screen.
get_tree().change_scene_to_file("res://scenes/world_list.tscn")
func _on_browse_button_pressed():
# Same as Play — browse worlds is the primary action.
get_tree().change_scene_to_file("res://scenes/world_list.tscn")
func _on_quit_button_pressed():
get_tree().quit()