2024-06-13 13:29:05 +02:00
|
|
|
extends Node
|
|
|
|
|
2024-06-18 18:58:47 +02:00
|
|
|
# Function called when button 1 is pressed
|
2024-06-14 09:42:54 +02:00
|
|
|
func _on_button_pressed():
|
2024-06-18 18:58:47 +02:00
|
|
|
get_tree().change_scene_to_file("res://scenes/map/map.tscn")
|
|
|
|
# Change the scene to the map scene ("map.tscn")
|
2024-06-14 09:42:54 +02:00
|
|
|
|
2024-06-18 18:58:47 +02:00
|
|
|
# Function called when button 2 is pressed
|
2024-06-14 09:42:54 +02:00
|
|
|
func _on_button_2_pressed():
|
2024-06-18 18:58:47 +02:00
|
|
|
get_tree().change_scene_to_file("res://scenes/menu/view.tscn")
|
|
|
|
# Change the scene to the view menu scene ("view.tscn")
|
2024-06-15 20:33:37 +02:00
|
|
|
|
2024-06-18 18:58:47 +02:00
|
|
|
# Function called when button 3 is pressed
|
2024-06-15 20:33:37 +02:00
|
|
|
func _on_button_3_pressed():
|
2024-06-18 18:58:47 +02:00
|
|
|
get_tree().change_scene_to_file("res://scenes/menu/create.tscn")
|
|
|
|
# Change the scene to the create menu scene ("create.tscn")
|