Expose TransformsInto* targetline colors to yaml.

This commit is contained in:
Paul Chote
2020-11-15 11:10:54 +00:00
committed by abcdefg30
parent 05e8026713
commit e9ad38667e
5 changed files with 17 additions and 6 deletions

View File

@@ -27,6 +27,9 @@ namespace OpenRA.Mods.Common.Traits
[VoiceReference]
public readonly string Voice = "Action";
[Desc("Color to use for the target line.")]
public readonly Color TargetLineColor = Color.Green;
[Desc("Require the force-move modifier to display the enter cursor.")]
public readonly bool RequiresForceMove = false;
@@ -132,7 +135,7 @@ namespace OpenRA.Mods.Common.Traits
if (!order.Queued)
activity.NextActivity?.Cancel(self);
activity.Queue(new IssueOrderAfterTransform(order.OrderString, order.Target, Color.Green));
activity.Queue(new IssueOrderAfterTransform(order.OrderString, order.Target, Info.TargetLineColor));
if (currentTransform == null)
self.QueueActivity(order.Queued, activity);