diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-08-24 09:20:38 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-08-24 09:30:19 +0200 |
commit | 31ea2b89222599b9282804191a673973bdad35b7 (patch) | |
tree | 8f307fd93d25c52d7aa85e8f962d8775bfc527e8 /game/src/Game/GameStart.gd | |
parent | f59424ee1223bd509efdb2162b16415708a1ff6a (diff) |
Add signals to MusicConductor
Used for streamlining MusicPlayer
Enable music on startup
Add sound option loading on startup
Fix MusicPlayer play button starting with incorrect text
Diffstat (limited to 'game/src/Game/GameStart.gd')
-rw-r--r-- | game/src/Game/GameStart.gd | 8 |
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 |