KSPWheel icon indicating copy to clipboard operation
KSPWheel copied to clipboard

Suspension Lock - Action Group issues

Open shadowmage45 opened this issue 6 years ago • 0 comments

From forums: https://forum.kerbalspaceprogram.com/index.php?/topic/155056-17x-kerbal-foundries-continued-tracks-wheels-and-gear/&do=findComment&comment=3709852

I was testing the suspension lock (to use in the default legs to save a lander in the Mun full of Kraken power) and noticed the action group was not working, changed to the code below and seems good now.

from
[KSPAction("Lock Suspension")]
public void suspensionLockAction(KSPActionParam param)
{
    suspensionLockChanged(null, null);
}

to
[KSPAction("Toggle Suspension Lock")]
public void suspensionLockAction(KSPActionParam param)
{
    lockSuspension = !lockSuspension;
    suspensionLockChanged(null, null);
}

shadowmage45 avatar Nov 26 '19 14:11 shadowmage45