16 lines
402 B
GDScript3
16 lines
402 B
GDScript3
|
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)
|