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

@@ -25,7 +25,7 @@ namespace OpenRA.Mods.Cnc.Activities
Actor enterActor;
public Infiltrate(Actor self, Target target, Infiltrates infiltrates)
: base(self, target, Color.Red)
: base(self, target, Color.Crimson)
{
this.infiltrates = infiltrates;
notifiers = self.TraitsImplementing<INotifyInfiltration>().ToArray();

View File

@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Activities
CaptureManager enterCaptureManager;
public CaptureActor(Actor self, Target target)
: base(self, target, Color.Red)
: base(self, target, Color.Crimson)
{
manager = self.Trait<CaptureManager>();
}

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Activities
public Demolish(Actor self, Target target, EnterBehaviour enterBehaviour, int delay,
int flashes, int flashesDelay, int flashInterval)
: base(self, target, Color.Red)
: base(self, target, Color.Crimson)
{
notifiers = self.TraitsImplementing<INotifyDemolition>().ToArray();
this.delay = delay;

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();
}