Removes the MapMusic checkbox.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[Desc("Play track defined in music.yaml or keep it empty for a random song.")]
|
||||
public void PlayMusic(string track = null, LuaFunction func = null)
|
||||
{
|
||||
if (!Game.Settings.Sound.MapMusic || !playlist.IsMusicAvailable)
|
||||
if (!playlist.IsMusicAvailable)
|
||||
return;
|
||||
|
||||
var musicInfo = !string.IsNullOrEmpty(track) ? world.Map.Rules.Music[track]
|
||||
|
||||
@@ -263,7 +263,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
var ss = Game.Settings.Sound;
|
||||
|
||||
BindCheckboxPref(panel, "SHELLMAP_MUSIC", ss, "MapMusic");
|
||||
BindCheckboxPref(panel, "CASH_TICKS", ss, "CashTicks");
|
||||
|
||||
BindSliderPref(panel, "SOUND_VOLUME", ss, "SoundVolume");
|
||||
@@ -295,7 +294,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
var dss = new SoundSettings();
|
||||
return () =>
|
||||
{
|
||||
ss.MapMusic = dss.MapMusic;
|
||||
ss.SoundVolume = dss.SoundVolume;
|
||||
ss.MusicVolume = dss.MusicVolume;
|
||||
ss.VideoVolume = dss.VideoVolume;
|
||||
|
||||
Reference in New Issue
Block a user