mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
* refactor: Add h1 headers to all pages missing it * refactor: missed example h3 * change hooks example heading to bold text --------- Co-authored-by: Luke <[email protected]>
47 lines
959 B
Plaintext
47 lines
959 B
Plaintext
# Client
|
|
|
|
A centralized way to track and disable controls.
|
|
|
|
## lib.disableControls
|
|
|
|
Call on frame to disable all stored controls.
|
|
|
|
```lua
|
|
lib.disableControls()
|
|
```
|
|
|
|
## lib.disableControls:Add
|
|
|
|
Adds the specified control(s) to the stored list.
|
|
If the control is already being tracked, the stored counter will be incremented.
|
|
|
|
```lua
|
|
lib.disableControls:Add(...)
|
|
```
|
|
|
|
- vararg: `number` or `table`
|
|
- Control(s) to add a stored count of
|
|
|
|
## lib.disableControls:Remove
|
|
|
|
Removes the specified control(s) from the stored list.
|
|
If the stored counter for a given control is greater than one, the stored counter will be decremented.
|
|
|
|
```lua
|
|
lib.disableControls:Remove(...)
|
|
```
|
|
|
|
- vararg: `number` or `table`
|
|
- Control(s) to remove a stored count of
|
|
|
|
## lib.disableControls:Clear
|
|
|
|
Clears the stored counter(s) for the specified control(s).
|
|
|
|
```lua
|
|
lib.disableControls:Clear(...)
|
|
```
|
|
|
|
- vararg: `number` or `table`
|
|
- Control(s) to clear out from being tracked
|