Introduce IRenderable.IsDecoration and AsDecoration.
These are used to filter *Renderables that shouldn't be copied for things like highlight or shadow.
This commit is contained in:
@@ -118,8 +118,8 @@ namespace OpenRA.Mods.RA
|
||||
yield break;
|
||||
|
||||
var bounds = self.Bounds.Value;
|
||||
var pos = new float2(bounds.Right, bounds.Bottom - 2);
|
||||
yield return new SpriteRenderable(RankAnim.Image, pos, wr.Palette("effect"), self.CenterLocation.Y);
|
||||
var pos = new PPos(bounds.Right, bounds.Bottom - 2).ToWPos(0);
|
||||
yield return new SpriteRenderable(RankAnim.Image, pos, WVec.Zero, 0, wr.Palette("effect"), 1f, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user