Split highlight and player palettes. Fixes #3799.

This commit is contained in:
Paul Chote
2013-09-07 20:58:17 +12:00
parent 75ae34b9fe
commit dca59f12f7
7 changed files with 48 additions and 3 deletions

View File

@@ -46,9 +46,6 @@ namespace OpenRA.Traits
{
var remap = new PlayerColorRemap(info.RemapIndex, owner.Color, info.Ramp);
wr.AddPalette(info.BaseName + owner.InternalName, new Palette(wr.Palette(info.BasePalette).Palette, remap), info.AllowModifiers);
var argb = (uint)Color.FromArgb(128, owner.Color.RGB).ToArgb();
wr.AddPalette("highlight" + owner.InternalName, new Palette(Exts.MakeArray(256, i => i == 0 ? 0 : argb)), false);
}
}
}