remove some sillyness from LightPaletteRotator
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using OpenRA.FileFormats;
|
using OpenRA.FileFormats;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
@@ -23,12 +24,13 @@ namespace OpenRA.Mods.RA
|
|||||||
t += .5f;
|
t += .5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static readonly string[] ExcludePalettes = { "cursor", "chrome", "colorpicker" };
|
||||||
|
|
||||||
public void AdjustPalette(Dictionary<string,Palette> palettes)
|
public void AdjustPalette(Dictionary<string,Palette> palettes)
|
||||||
{
|
{
|
||||||
var excludePalettes = new List<string>(){"cursor", "chrome", "colorpicker"};
|
|
||||||
foreach (var pal in palettes)
|
foreach (var pal in palettes)
|
||||||
{
|
{
|
||||||
if (excludePalettes.Contains(pal.Key))
|
if (ExcludePalettes.Contains(pal.Key))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var rotate = (int)t % 18;
|
var rotate = (int)t % 18;
|
||||||
|
|||||||
Reference in New Issue
Block a user