Remove "Show Shellmap" setting.

This commit is contained in:
Paul Chote
2016-12-10 18:02:00 +00:00
parent 55f76c02d6
commit a16344d347
9 changed files with 28 additions and 61 deletions

View File

@@ -22,11 +22,8 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
: base(widget, world, modData)
{
var shellmapDecorations = widget.Get("SHELLMAP_DECORATIONS");
shellmapDecorations.IsVisible = () => menuType != MenuType.None && Game.Settings.Game.ShowShellmap;
shellmapDecorations.IsVisible = () => menuType != MenuType.None;
shellmapDecorations.Get<ImageWidget>("RECBLOCK").IsVisible = () => world.WorldTick / 25 % 2 == 0;
var shellmapDisabledDecorations = widget.Get("SHELLMAP_DISABLED_DECORATIONS");
shellmapDisabledDecorations.IsVisible = () => !Game.Settings.Game.ShowShellmap;
}
}
}