Appearance
UIBindings
Inherits: Class
Methods
Add
lua
function UIBindings:Add(bindKey, state, stateKey)Adds a binding.
Parameters:
| Name | Type | Description |
|---|---|---|
bindKey | string | The binding key |
state | ReactiveState | The state to store the value in |
stateKey | string | The state key to store the value at |
Clear
lua
function UIBindings:Clear()Clears all registered bindings.
Process
lua
function UIBindings:Process(bindKey, value)Processes the binds for an action and updates the bound state keys.
Parameters:
| Name | Type | Description |
|---|---|---|
bindKey | string | The binding key to update |
value | any | The value to set |
Functions
Create
lua
function UIBindings.Create()
-> UIBindingsCreates a new UI bindings object.
Returns:
| Type | Description |
|---|---|
UIBindings |