UIActionLock
A static class in Root.Township, Alta.Meta.UI.
A simple global lock so only one UI action runs at a time. An object implementing ILockUIAction takes the lock and must release it with Unlock.
- Listed in Menus, UI and platforms
- Nested types
ILockUIAction
Fields
1 private and internal field
| Member | What it is |
|---|---|
private static UIActionLock.ILockUIAction currentLocker | The object holding the lock now, or null. |
Methods
| Member | What it is |
|---|---|
static bool CheckIsLocked(UIActionLock.ILockUIAction locker, bool isLocking = true) | Returns true if something holds the lock. The overload with a locker takes the lock for it when free (unless isLocking is false). |
static bool CheckIsLocked() | Returns true if something holds the lock. The overload with a locker takes the lock for it when free (unless isLocking is false). |
static void Unlock(UIActionLock.ILockUIAction locker) | Releases the lock, but only if the given locker holds it. |