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.")]
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