Muting lobby music now mutes round-end music (#8418)
Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
@@ -119,7 +119,7 @@ namespace Content.Client.Audio
|
||||
{
|
||||
EndAmbience();
|
||||
|
||||
if (args.NewState is LobbyState && _configManager.GetCVar(CCVars.LobbyMusicEnabled))
|
||||
if (args.NewState is LobbyState)
|
||||
{
|
||||
StartLobbyMusic();
|
||||
return;
|
||||
@@ -137,10 +137,7 @@ namespace Content.Client.Audio
|
||||
if (_stateManager.CurrentState is LobbyState)
|
||||
{
|
||||
EndAmbience();
|
||||
if (_configManager.GetCVar(CCVars.LobbyMusicEnabled))
|
||||
{
|
||||
StartLobbyMusic();
|
||||
}
|
||||
StartLobbyMusic();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -237,7 +234,7 @@ namespace Content.Client.Audio
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (_stateManager.CurrentState is LobbyState && _configManager.GetCVar(CCVars.LobbyMusicEnabled))
|
||||
if (_stateManager.CurrentState is LobbyState)
|
||||
{
|
||||
StartLobbyMusic();
|
||||
}
|
||||
@@ -251,7 +248,7 @@ namespace Content.Client.Audio
|
||||
|
||||
public void StartLobbyMusic()
|
||||
{
|
||||
if (_lobbyStream != null) return;
|
||||
if (_lobbyStream != null || !_configManager.GetCVar(CCVars.LobbyMusicEnabled)) return;
|
||||
|
||||
var file = _gameTicker.LobbySong;
|
||||
if (file == null) // We have not received the lobby song yet.
|
||||
|
||||
@@ -15,7 +15,7 @@ ui-options-master-volume = Master Volume:
|
||||
ui-options-midi-volume = MIDI (Instrument) Volume:
|
||||
ui-options-ambience-volume = Ambience volume:
|
||||
ui-options-ambience-max-sounds = Ambience simultaneous sounds:
|
||||
ui-options-lobby-music = Lobby Music
|
||||
ui-options-lobby-music = Lobby & Round-end Music
|
||||
ui-options-station-ambience = Station Ambience
|
||||
ui-options-space-ambience = Space Ambience
|
||||
ui-options-volume-label = Volume
|
||||
|
||||
Reference in New Issue
Block a user