Revise target line colours to distinguish different attack types.
This commit is contained in:
@@ -25,7 +25,7 @@ namespace OpenRA.Mods.Cnc.Activities
|
|||||||
Actor enterActor;
|
Actor enterActor;
|
||||||
|
|
||||||
public Infiltrate(Actor self, Target target, Infiltrates infiltrates)
|
public Infiltrate(Actor self, Target target, Infiltrates infiltrates)
|
||||||
: base(self, target, Color.Red)
|
: base(self, target, Color.Crimson)
|
||||||
{
|
{
|
||||||
this.infiltrates = infiltrates;
|
this.infiltrates = infiltrates;
|
||||||
notifiers = self.TraitsImplementing<INotifyInfiltration>().ToArray();
|
notifiers = self.TraitsImplementing<INotifyInfiltration>().ToArray();
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
CaptureManager enterCaptureManager;
|
CaptureManager enterCaptureManager;
|
||||||
|
|
||||||
public CaptureActor(Actor self, Target target)
|
public CaptureActor(Actor self, Target target)
|
||||||
: base(self, target, Color.Red)
|
: base(self, target, Color.Crimson)
|
||||||
{
|
{
|
||||||
manager = self.Trait<CaptureManager>();
|
manager = self.Trait<CaptureManager>();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
|
|
||||||
public Demolish(Actor self, Target target, EnterBehaviour enterBehaviour, int delay,
|
public Demolish(Actor self, Target target, EnterBehaviour enterBehaviour, int delay,
|
||||||
int flashes, int flashesDelay, int flashInterval)
|
int flashes, int flashesDelay, int flashInterval)
|
||||||
: base(self, target, Color.Red)
|
: base(self, target, Color.Crimson)
|
||||||
{
|
{
|
||||||
notifiers = self.TraitsImplementing<INotifyDemolition>().ToArray();
|
notifiers = self.TraitsImplementing<INotifyDemolition>().ToArray();
|
||||||
this.delay = delay;
|
this.delay = delay;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public readonly string OutsideRangeCursor = null;
|
public readonly string OutsideRangeCursor = null;
|
||||||
|
|
||||||
[Desc("Color to use for the target line.")]
|
[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?")]
|
[Desc("Does the attack type require the attacker to enter the target's cell?")]
|
||||||
public readonly bool AttackRequiresEnteringCell = false;
|
public readonly bool AttackRequiresEnteringCell = false;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
var targetLocation = move.NearestMoveableCell(cell);
|
var targetLocation = move.NearestMoveableCell(cell);
|
||||||
var assaultMoving = order.OrderString == "AssaultMove";
|
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();
|
self.ShowTargetLines();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var range = target.Actor.Info.TraitInfo<GuardableInfo>().Range;
|
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();
|
self.ShowTargetLines();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user