Fix interaction menu

This commit is contained in:
Vaillant Jeremy
2021-05-15 00:35:15 +02:00
parent 74a5c3ac69
commit a2d8cdb3da
7 changed files with 103 additions and 79 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ func goto_scene(path):
set_process(true)
current_scene.queue_free()
wait_frames = 1
Loading.get_node("ColorRect/CenterContainer/VBoxContainer/ProgressBar").set_max(loader.get_stage_count())
Loading.get_node("VBoxContainer/ProgressBar").set_max(loader.get_stage_count())
func gyroscope_enabled():
if _gyroscope_enabled():
@@ -102,7 +102,7 @@ func _gyroscope_enabled():
func _update_progress():
print("[global#update_progress]")
Loading.visible = true
Loading.get_node("ColorRect/CenterContainer/VBoxContainer/ProgressBar").set_value(loader.get_stage())
Loading.get_node("VBoxContainer/ProgressBar").set_value(loader.get_stage())
func _set_new_scene():
print("[global#set_new_scene]")