Fix Ion Cannon cursor
This commit is contained in:
@@ -21,6 +21,12 @@ namespace OpenRA.Mods.Cnc
|
|||||||
class IonCannonPower : SupportPower
|
class IonCannonPower : SupportPower
|
||||||
{
|
{
|
||||||
public IonCannonPower(Actor self, IonCannonPowerInfo info) : base(self, info) { }
|
public IonCannonPower(Actor self, IonCannonPowerInfo info) : base(self, info) { }
|
||||||
|
public override IOrderGenerator OrderGenerator(string order, SupportPowerManager manager)
|
||||||
|
{
|
||||||
|
Sound.PlayToPlayer(manager.self.Owner, Info.SelectTargetSound);
|
||||||
|
return new SelectGenericPowerTarget(order, manager, "ioncannon", MouseButton.Left);
|
||||||
|
}
|
||||||
|
|
||||||
public override void Activate(Actor self, Order order)
|
public override void Activate(Actor self, Order order)
|
||||||
{
|
{
|
||||||
self.World.AddFrameEndTask(w =>
|
self.World.AddFrameEndTask(w =>
|
||||||
|
|||||||
Reference in New Issue
Block a user