Apply desat effect on ingame menu too

This commit is contained in:
Paul Chote
2011-05-08 21:27:44 +12:00
parent d95138b600
commit 2e1e8fd7e8
5 changed files with 16 additions and 4 deletions

View File

@@ -19,9 +19,12 @@ namespace OpenRA.Mods.RA
public class DesaturatedPaletteEffect : IPaletteModifier
{
// Doing this every frame is stupid
public bool Active;
// TODO: Doing this every frame is stupid
public void AdjustPalette(Dictionary<string,Palette> palettes)
{
if (!Active) return;
var excludePalettes = new List<string>(){"cursor", "chrome", "colorpicker", "shroud", "fog"};
foreach (var pal in palettes)
{