ile-de-test/script/interface/button_login.gd
2023-10-05 20:02:23 +02:00

10 lines
286 B
GDScript

extends Button
const scene_server_path : String = "res://scenes/page_choisir_server.tscn"
func _ready():
ResourceLoader.load_threaded_request(scene_server_path)
self.pressed.connect(_on_button_pressed)
func _on_button_pressed():
get_tree().change_scene_to_file(scene_server_path)