Unhardcoded productionbar colors

This commit is contained in:
abcdefg30
2014-09-26 14:55:42 +02:00
parent 8d54efc7af
commit 22dc63620f
2 changed files with 4 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ namespace OpenRA.Mods.RA
[Desc("Production queue type, for actors with multiple queues.")] [Desc("Production queue type, for actors with multiple queues.")]
public readonly string ProductionType = null; public readonly string ProductionType = null;
public readonly Color Color = Color.SkyBlue;
public object Create(ActorInitializer init) { return new ProductionBar(init.self, this); } public object Create(ActorInitializer init) { return new ProductionBar(init.self, this); }
} }
@@ -72,6 +74,6 @@ namespace OpenRA.Mods.RA
return value; return value;
} }
public Color GetColor() { return Color.SkyBlue; } public Color GetColor() { return info.Color; }
} }
} }

View File

@@ -758,6 +758,7 @@ FACT:
ProductionType: Building ProductionType: Building
ProductionBar@Defense: ProductionBar@Defense:
ProductionType: Defense ProductionType: Defense
Color: 138,138,138
DeadBuildingState: DeadBuildingState:
BaseProvider: BaseProvider:
Range: 16 Range: 16