Make support power icons configurable and testable.

This commit is contained in:
Matthias Mailänder
2020-03-21 11:57:52 +01:00
committed by atlimit8
parent 85096c4ba2
commit d187575a2c
3 changed files with 13 additions and 7 deletions

View File

@@ -17,7 +17,17 @@ namespace OpenRA.Mods.Common.Traits
{
[Desc("Measured in ticks.")]
public readonly int ChargeInterval = 0;
public readonly string IconImage = "icon";
[SequenceReference("IconImage")]
[Desc("Icon sprite displayed in the support power palette.")]
public readonly string Icon = null;
[PaletteReference]
[Desc("Palette used for the icon.")]
public readonly string IconPalette = "chrome";
public readonly string Description = "";
public readonly string LongDesc = "";
public readonly bool AllowMultiple = false;
@@ -64,10 +74,6 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Defines to which players the timer is shown.")]
public readonly Stance DisplayTimerStances = Stance.None;
[PaletteReference]
[Desc("Palette used for the icon.")]
public readonly string IconPalette = "chrome";
[Desc("Beacons are only supported on the Airstrike, Paratroopers, and Nuke powers")]
public readonly bool DisplayBeacon = false;