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

20 lines
442 B
GDScript3
Raw Normal View History

2023-10-05 18:02:23 +00:00
extends Control
2023-10-23 15:21:27 +00:00
#const scene_ile1_path : String = "res://scenes/iledetest.tscn"
2023-10-05 18:02:23 +00:00
const scene_return_path : String = "res://scenes/interface/page_server.tscn"
func _ready():
ResourceLoader.load_threaded_request(scene_return_path)
func _on_perso_pressed():
2023-10-23 15:21:27 +00:00
#get_tree().change_scene_to_file(scene_ile1_path)
Global.load_scene(self, "scene_ile1_path")
2023-10-05 18:02:23 +00:00
func _on_return_button_down():
2023-10-23 15:21:27 +00:00
get_tree().change_scene_to_file(scene_return_path)
2023-10-05 18:02:23 +00:00