move cnc shellmap music toggle into Sound settings group where it belongs
This commit is contained in:
@@ -73,6 +73,7 @@ namespace OpenRA.GameRules
|
||||
public float VideoVolume = 0.5f;
|
||||
public bool Shuffle = false;
|
||||
public bool Repeat = false;
|
||||
public bool ShellmapMusic = true;
|
||||
}
|
||||
|
||||
public class PlayerSettings
|
||||
@@ -87,7 +88,6 @@ namespace OpenRA.GameRules
|
||||
public class GameSettings
|
||||
{
|
||||
public string[] Mods = { "ra" };
|
||||
public bool ShellmapMusic = true;
|
||||
|
||||
public bool TeamChatToggle = false;
|
||||
|
||||
|
||||
@@ -103,8 +103,8 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
|
||||
musicSlider.Value = soundSettings.MusicVolume;
|
||||
|
||||
var shellmapMusicCheckbox = generalPane.GetWidget<CheckboxWidget>("SHELLMAP_MUSIC");
|
||||
shellmapMusicCheckbox.IsChecked = () => gameSettings.ShellmapMusic;
|
||||
shellmapMusicCheckbox.OnClick = () => gameSettings.ShellmapMusic ^= true;
|
||||
shellmapMusicCheckbox.IsChecked = () => soundSettings.ShellmapMusic;
|
||||
shellmapMusicCheckbox.OnClick = () => soundSettings.ShellmapMusic ^= true;
|
||||
|
||||
// Input pane
|
||||
var inputPane = panel.GetWidget("INPUT_CONTROLS");
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
var onComplete = Info.Loop ? (Action)PlayMusic : () => {};
|
||||
|
||||
if (Game.Settings.Game.ShellmapMusic &&
|
||||
if (Game.Settings.Sound.ShellmapMusic &&
|
||||
Rules.Music.ContainsKey(Info.Music))
|
||||
Sound.PlayMusicThen(Rules.Music[Info.Music], onComplete);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user