![]() |
Kerbal Space Program
1.12.4
|
Static Public Member Functions | |
| static void | ClearControlLocks () |
| Removes all control locks More... | |
| static ulong | ControlLocks (int lower, int upper) |
| static void | DebugLockStack () |
| static ControlTypes | GetControlLock (string lockID) |
| Get a control lock by it's ID string More... | |
| static bool | IsAllLocked (ControlTypes mask) |
| Check whether all controls in a mask are locked More... | |
| static bool | IsAnyUnlocked (ControlTypes mask) |
| Check whether any controls in a mask are unlocked More... | |
| static bool | IsLocked (ControlTypes controlType) |
| Check whether a given control type is locked or not, based on the current lock state. More... | |
| static bool | IsLocked (ControlTypes controlType, ControlTypes refMask) |
| Check whether a given control type is locked or not, based on the current lock state compared to a reference lock mask. More... | |
| static bool | IsLocking (ControlTypes controlType, GameEvents.FromToAction< ControlTypes, ControlTypes > refMasks) |
| Check whether a given control type is being locked on a locks modified event. Will only return true if the control wasn't previously locked already. More... | |
| static bool | IsUnlocked (ControlTypes controlType) |
| Check whether a given control type is unlocked or not, based on the current lock state. More... | |
| static bool | IsUnlocked (ControlTypes controlType, ControlTypes refMask) |
| Check whether a given control type is unlocked or not, based on the current lock state compared to a reference lock mask. More... | |
| static bool | IsUnlocking (ControlTypes controlType, GameEvents.FromToAction< ControlTypes, ControlTypes > refMasks) |
| Check whether a given control type is being unlocked on a locks modified event. Will only return true if the control wasn't previously unlocked already. More... | |
| static string | PrintLockStack () |
| static void | RemoveControlLock (string lockID) |
| Remove a control lock added earlier. More... | |
| static ControlTypes | SetControlLock (ControlTypes locks, string lockID) |
| Set a lock on flight controls. The lock will be added if this is the first call by this caller, or edited if there was a previous lock More... | |
| static ControlTypes | SetControlLock (string lockID) |
| Set a lock on all controls. More... | |
Static Public Attributes | |
| static ulong | lockMask = 0 |
| static Dictionary< string, ulong > | lockStack = new Dictionary<string, ulong>() |
Properties | |
| static ulong | LockMask [get] |
| Get the state of the input lock mask (read-only). More... | |
|
inlinestatic |
Removes all control locks
|
inlinestatic |
< 7 - 3 + 1 = 5
< #00100000 - 1 = #000011111
< #00011111 << 3 = #011111000
|
inlinestatic |
|
inlinestatic |
Get a control lock by it's ID string
| lockID | The lock to find |
|
inlinestatic |
Check whether all controls in a mask are locked
|
inlinestatic |
Check whether any controls in a mask are unlocked
|
inlinestatic |
Check whether a given control type is locked or not, based on the current lock state.
|
inlinestatic |
Check whether a given control type is locked or not, based on the current lock state compared to a reference lock mask.
|
inlinestatic |
Check whether a given control type is being locked on a locks modified event. Will only return true if the control wasn't previously locked already.
| controlType | |
| refMasks |
|
inlinestatic |
Check whether a given control type is unlocked or not, based on the current lock state.
|
inlinestatic |
Check whether a given control type is unlocked or not, based on the current lock state compared to a reference lock mask.
|
inlinestatic |
Check whether a given control type is being unlocked on a locks modified event. Will only return true if the control wasn't previously unlocked already.
| controlType | |
| refMasks |
|
inlinestatic |
|
inlinestatic |
Remove a control lock added earlier.
| lockID | A reference to the script that added the lock (again, 'this') |
|
inlinestatic |
Set a lock on flight controls. The lock will be added if this is the first call by this caller, or edited if there was a previous lock
| locks | The locks to apply |
| lockID | A reference to the caller script (just pass 'this') |
|
inlinestatic |
Set a lock on all controls.
| lockID |
|
static |
|
static |
|
staticget |
Get the state of the input lock mask (read-only).
1.8.7