Revise target line colours to distinguish different attack types.

This commit is contained in:
tovl
2019-07-24 21:58:25 +00:00
committed by Paul Chote
parent 3240b1e9eb
commit b7a7b7aa7e
6 changed files with 6 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly string OutsideRangeCursor = null;
[Desc("Color to use for the target line.")]
public readonly Color TargetLineColor = Color.Red;
public readonly Color TargetLineColor = Color.Crimson;
[Desc("Does the attack type require the attacker to enter the target's cell?")]
public readonly bool AttackRequiresEnteringCell = false;

View File

@@ -78,7 +78,7 @@ namespace OpenRA.Mods.Common.Traits
var targetLocation = move.NearestMoveableCell(cell);
var assaultMoving = order.OrderString == "AssaultMove";
self.QueueActivity(new AttackMoveActivity(self, () => move.MoveTo(targetLocation, 1, targetLineColor: Color.Red), assaultMoving));
self.QueueActivity(new AttackMoveActivity(self, () => move.MoveTo(targetLocation, 1, targetLineColor: Color.OrangeRed), assaultMoving));
self.ShowTargetLines();
}
}

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Traits
return;
var range = target.Actor.Info.TraitInfo<GuardableInfo>().Range;
self.QueueActivity(new AttackMoveActivity(self, () => move.MoveFollow(self, target, WDist.Zero, range, targetLineColor: Color.Yellow)));
self.QueueActivity(new AttackMoveActivity(self, () => move.MoveFollow(self, target, WDist.Zero, range, targetLineColor: Color.OrangeRed)));
self.ShowTargetLines();
}