ile-de-test/script/interface/button_login.gd

11 lines
286 B
GDScript3
Raw Normal View History

2023-10-05 18:02:23 +00:00
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)