added PaletteType enum

This commit is contained in:
Alli
2009-12-23 22:24:20 +13:00
parent 8fa02ea6a3
commit 9e950c84ca
16 changed files with 50 additions and 39 deletions

View File

@@ -14,7 +14,7 @@ namespace OpenRa.Game.Traits
{
var unit = self.traits.Get<Unit>();
var shadowSprites = r.Select(a => a.WithPalette(8));
var shadowSprites = r.Select(a => a.WithPalette(PaletteType.Shadow));
var flyingSprites = (unit.Altitude <= 0) ? r
: r.Select(a => a.WithPos(a.Pos - new float2(0, unit.Altitude)).WithZOffset(3));