freettrpg/scripts/menu.gd
Patrick_Pluto 6b2159b840 Code Refactoring: Part 2
Hopefully final refactoring, offloaded ui scripts to its own global .gd to prevent repetition.
2024-06-19 18:27:40 +02:00

13 lines
418 B
GDScript

extends Node
# Function called when "Play" is pressed
func _on_button_pressed():
get_tree().change_scene_to_file("res://scenes/map/map.tscn")
# Function called when "View" is pressed
func _on_button_2_pressed():
get_tree().change_scene_to_file("res://scenes/menu/view.tscn")
# Function called when "Create" is pressed
func _on_button_3_pressed():
get_tree().change_scene_to_file("res://scenes/menu/create.tscn")