From f709ef891a070ced38bd8b3ce99abc051cca1bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 24 Jan 2016 19:21:57 +0100 Subject: [PATCH] document and expose GpsDot strings to lint testing --- OpenRA.Mods.RA/Effects/GpsDot.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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));