Added UI blur

This commit is contained in:
2024-02-23 22:29:20 +01:00
parent 19c1d3e74c
commit 3ba39992bc
6 changed files with 51 additions and 5 deletions

View File

@ -11,13 +11,20 @@ var progress: Array
func _ready():
ResourceLoader.load_threaded_request(scene_path, "", use_sub_threads)
if OS.has_feature("editor"):
fade_duration /= 2
func _process(_delta):
var status := ResourceLoader.load_threaded_get_status(scene_path, progress)
progress_bar.value = progress[0] * 100
if status == ResourceLoader.THREAD_LOAD_LOADED:
add_scene()
fade_out()
on_loaded()
set_process(false)
func on_loaded():
add_scene()
fade_out()
func add_scene():
var scene := ResourceLoader.load_threaded_get(scene_path)