Add remappable support to production icons.

This commit is contained in:
Matthias Mailänder
2020-01-26 17:40:43 +01:00
committed by abcdefg30
parent df4c363e9c
commit 9050a2447b
5 changed files with 13 additions and 4 deletions

View File

@@ -38,10 +38,13 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Sequence of the actor that contains the icon.")]
public readonly string Icon = "icon";
[PaletteReference]
[PaletteReference("IconPaletteIsPlayerPalette")]
[Desc("Palette used for the production icon.")]
public readonly string IconPalette = "chrome";
[Desc("Custom palette is a player palette BaseName")]
public readonly bool IconPaletteIsPlayerPalette = false;
[Desc("Base build time in frames (-1 indicates to use the unit's Value).")]
public readonly int BuildDuration = -1;