Move a bunch of buttons into an Extras submenu and the server browser. Move CncMenuPaletteEffect to ra so it can be used elsewhere and rename it to MenuPaletteEffect.
24 lines
689 B
C#
24 lines
689 B
C#
#region Copyright & License Information
|
|
/*
|
|
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
|
|
* This file is part of OpenRA, which is free software. It is made
|
|
* available to you under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation. For more information,
|
|
* see COPYING.
|
|
*/
|
|
#endregion
|
|
|
|
namespace OpenRA.Mods.RA.Widgets.Logic
|
|
{
|
|
public class ShellmapDesaturationLogic
|
|
{
|
|
[ObjectCreator.UseCtor]
|
|
public ShellmapDesaturationLogic(World world)
|
|
{
|
|
var paletteEffect = world.WorldActor.TraitOrDefault<MenuPaletteEffect>();
|
|
if (paletteEffect != null)
|
|
paletteEffect.Fade(MenuPaletteEffect.EffectType.Desaturated);
|
|
}
|
|
}
|
|
}
|