Expose targetline colors to yaml.
All targetlines can now be set to a custom color in yaml or set to be invisible. All automated behaviours including scripted activities now have no visible target lines.
This commit is contained in:
@@ -30,9 +30,9 @@ namespace OpenRA.Mods.Common.Activities
|
||||
Actor enterActor;
|
||||
IDemolishable[] enterDemolishables;
|
||||
|
||||
public Demolish(Actor self, in Target target, EnterBehaviour enterBehaviour, int delay,
|
||||
int flashes, int flashesDelay, int flashInterval, BitSet<DamageType> damageTypes)
|
||||
: base(self, target, Color.Crimson)
|
||||
public Demolish(Actor self, in Target target, EnterBehaviour enterBehaviour, int delay, int flashes,
|
||||
int flashesDelay, int flashInterval, BitSet<DamageType> damageTypes, Color? targetLineColor)
|
||||
: base(self, target, targetLineColor)
|
||||
{
|
||||
notifiers = self.TraitsImplementing<INotifyDemolition>().ToArray();
|
||||
this.delay = delay;
|
||||
|
||||
Reference in New Issue
Block a user