Merge pull request #6557 from abcdefg30/progbarcolors

Unhardcoded productionbar colors
This commit is contained in:
Matthias Mailänder
2014-09-27 10:09:10 +02:00
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.")]
public readonly string ProductionType = null;
public readonly Color Color = Color.SkyBlue;
public object Create(ActorInitializer init) { return new ProductionBar(init.self, this); }
}
@@ -72,6 +74,6 @@ namespace OpenRA.Mods.RA
return value;
}
public Color GetColor() { return Color.SkyBlue; }
public Color GetColor() { return info.Color; }
}
}

View File

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