diff --git a/OpenRA.Mods.RA/Effects/GpsDot.cs b/OpenRA.Mods.RA/Effects/GpsDot.cs index 2b286343d6..55b8d17d97 100644 --- a/OpenRA.Mods.RA/Effects/GpsDot.cs +++ b/OpenRA.Mods.RA/Effects/GpsDot.cs @@ -19,10 +19,16 @@ using OpenRA.Traits; namespace OpenRA.Mods.RA.Effects { + [Desc("Attach this to actors to render pictograms while hidden.")] class GpsDotInfo : ITraitInfo { - public readonly string String = "Infantry"; - public readonly string IndicatorPalettePrefix = "player"; + [Desc("Sprite collection for symbols.")] + public readonly string Image = "gpsdot"; + + [Desc("Sprite used for this actor.")] + [SequenceReference("Image")] public readonly string String = "Infantry"; + + [PaletteReference(true)] public readonly string IndicatorPalettePrefix = "player"; public object Create(ActorInitializer init) { @@ -58,7 +64,7 @@ namespace OpenRA.Mods.RA.Effects { this.self = self; this.info = info; - anim = new Animation(self.World, "gpsdot"); + anim = new Animation(self.World, info.Image); anim.PlayRepeating(info.String); self.World.AddFrameEndTask(w => w.Add(this));