fix TS repair indicator palette

This commit is contained in:
Matthias Mailänder
2015-04-16 20:38:24 +02:00
parent e8493ab855
commit a5f60deedd
3 changed files with 21 additions and 10 deletions

View File

@@ -25,6 +25,13 @@ namespace OpenRA.Mods.Common.Traits
public readonly int[] RepairBonuses = { 100, 150, 175, 200, 220, 240, 260, 280, 300 };
public readonly bool CancelWhenDisabled = false;
public readonly string IndicatorImage = "allyrepair";
public readonly string IndicatorSequence = "repair";
[Desc("Overrides the IndicatorPalettePrefix.")]
public readonly string IndicatorPalette = "";
[Desc("Suffixed by the interal repairing player name.")]
public readonly string IndicatorPalettePrefix = "player";
public object Create(ActorInitializer init) { return new RepairableBuilding(init.Self, this); }
@@ -61,7 +68,7 @@ namespace OpenRA.Mods.Common.Traits
self.World.AddFrameEndTask(w =>
{
if (!self.IsDead)
w.Add(new RepairIndicator(self, Info.IndicatorPalettePrefix));
w.Add(new RepairIndicator(self));
});
}
}