We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1b7de commit 712fcdeCopy full SHA for 712fcde
1 file changed
LuaMenu/widgets/snd_music_lite.lua
@@ -143,6 +143,10 @@ function widget:ActivateMenu()
143
previousTrack = newTrack
144
end
145
146
+function DelayedInitialize()
147
+ SetTrackVolume((WG.Chobby and WG.Chobby.Configuration and WG.Chobby.Configuration.menuMusicVolume) or 0)
148
+end
149
+
150
function widget:Initialize()
151
152
-- load custom game dependent music
@@ -178,6 +182,9 @@ function widget:Initialize()
178
182
WG.LibLobby.lobby:AddListener("OnBattleAboutToStart", OnBattleAboutToStart)
179
183
180
184
WG.MusicHandler = MusicHandler
185
186
+ WG.Delay(DelayedInitialize, 0.1)
187
+ WG.Delay(DelayedInitialize, 1)
181
188
189
190
--------------------------------------------------------------------------------
0 commit comments