diff options
author | Hop311 <Hop3114@gmail.com> | 2023-08-17 20:25:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 20:25:25 +0200 |
commit | aa9961b27a4859f088b037dd8037accb4e3119be (patch) | |
tree | e93af9cabfbefc6ea089a153399e04d74e4b605a /game/src/Game/LoadingScreen.gd | |
parent | ff0d38b5d53fa95609f2587a2be5205f0c0d3118 (diff) | |
parent | 9a086523513994b0183d5f7d479b2f82412177f6 (diff) |
Merge pull request #146 from Nemrav/piechart2
Add Piecharts (gd 4.1)
Diffstat (limited to 'game/src/Game/LoadingScreen.gd')
-rw-r--r-- | game/src/Game/LoadingScreen.gd | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/game/src/Game/LoadingScreen.gd b/game/src/Game/LoadingScreen.gd index 3cbf199..d953d20 100644 --- a/game/src/Game/LoadingScreen.gd +++ b/game/src/Game/LoadingScreen.gd @@ -1,9 +1,5 @@ extends Control -signal load_started() -signal load_changed(percentage : float) -signal load_ended() - @export var quote_file_path : String = "res://common/quotes.txt" @export_subgroup("Nodes") @@ -24,7 +20,7 @@ func start_loading_screen(thread_safe_function : Callable) -> void: thread.wait_to_finish() thread.start(thread_safe_function) - load_started.emit() + Events.Loader.startup_load_begun.emit() func try_update_loading_screen(percent_complete: float, quote_should_change = false): # forces the function to behave as if deferred @@ -34,9 +30,9 @@ func try_update_loading_screen(percent_complete: float, quote_should_change = fa quote_label.text = quotes[randi() % quotes.size()] if is_equal_approx(percent_complete, 100): thread.wait_to_finish() - load_ended.emit() + Events.Loader.startup_load_ended.emit() else: - load_changed.emit(percent_complete) + Events.Loader.startup_load_changed.emit(percent_complete) func _ready(): if Engine.is_editor_hint(): return |