aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameStart.gd
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-08-26 01:17:19 +0200
committer GitHub <noreply@github.com>2023-08-26 01:17:19 +0200
commit9385ce7791ab408ad39e7ef2b208b9fab8182361 (patch)
tree8f307fd93d25c52d7aa85e8f962d8775bfc527e8 /game/src/Game/GameStart.gd
parentf59424ee1223bd509efdb2162b16415708a1ff6a (diff)
parent31ea2b89222599b9282804191a673973bdad35b7 (diff)
Merge pull request #150 from Spartan322/music-signals
Diffstat (limited to 'game/src/Game/GameStart.gd')
-rw-r--r--game/src/Game/GameStart.gd8
1 files changed, 8 insertions, 0 deletions
diff --git a/game/src/Game/GameStart.gd b/game/src/Game/GameStart.gd
index bfbbfb1..fa7568b 100644
--- a/game/src/Game/GameStart.gd
+++ b/game/src/Game/GameStart.gd
@@ -1,11 +1,19 @@
extends Control
const LoadingScreen = preload("res://src/Game/LoadingScreen.gd")
+const SoundTabScene = preload("res://src/Game/Menu/OptionMenu/SoundTab.tscn")
@export_subgroup("Nodes")
@export var loading_screen : LoadingScreen
func _ready() -> void:
+ # Hack to ensure Sound Options load
+ var sound_tab := SoundTabScene.instantiate()
+ sound_tab.visible = false
+ add_child(sound_tab)
+ Events.Options.load_settings_from_file()
+ sound_tab.queue_free()
+
loading_screen.start_loading_screen(_initialize_game)
# REQUIREMENTS