MechJeb2

MechJeb2

4M Downloads

Clicks fall through window when Action Groups are being worked on

linuxgurugamer opened this issue ยท 1 comments

commented

This code:

void LockControl()
{
if (HighLogic.LoadedSceneIsEditor)
{
EditorLogic.fetch.Lock(true, true, true, lockId);
}
else if (HighLogic.LoadedSceneIsFlight || HighLogic.LoadedSceneHasPlanetarium)
{
InputLockManager.SetControlLock(ControlTypes.ALLBUTCAMERAS, lockId);
}
weLockedInputs = true;
}

works in the Editor, EXCEPT when Action Groups are selected. When Action Groups are selected, the mechjeb window doesn't block clicks from falling through to the parts underneath.

commented

Any pointers to code in your library of modules that does this correctly?