Branch master was renamed to main.

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

15 lines
402 B
GDScript

extends Control
const scene_perso_path : String = "res://scenes/interface/page_perso.tscn"
const scene_return_path : String = "res://scenes/interface/page_login.tscn"
func _ready():
ResourceLoader.load_threaded_request(scene_perso_path)
func _on_button_pressed():
get_tree().change_scene_to_file(scene_perso_path)
func _on_return_pressed():
get_tree().change_scene_to_file(scene_return_path)