A NUI property binding that can be updated after being sent to the client.
More...
|
| NuiBind (string key) |
|
T? | GetBindValue (NwPlayer player, int uiToken) |
| Queries the specified player for the value of this binding. More...
|
|
List< T >? | GetBindValues (NwPlayer player, int uiToken) |
| Queries the specified player for the array of values assigned to this binding. More...
|
|
void | SetBindValue (NwPlayer player, int uiToken, T value) |
| Assigns a value to the binding for the specified player. More...
|
|
void | SetBindValues (NwPlayer player, int uiToken, IEnumerable< T > values) |
| Assigns an array of values to the binding for the specified player. More...
|
|
void | SetBindWatch (NwPlayer player, int uiToken, bool watch) |
| Marks this property as watched/un-watched.
A watched bind will invoke the NUI script event every time its value changes. More...
|
|
|
static NuiBind< T > | CreateBind (string key) |
| Creates a Nui variable binding that can be changed at runtime. More...
|
|
static NuiValue< T > | CreateValue (T value) |
| Creates a readonly Nui variable that cannot be changed at runtime. More...
|
|
static implicit | operator NuiProperty< T > (T value) |
|
A NUI property binding that can be updated after being sent to the client.
- Template Parameters
-
T | The type of value being bound. |
◆ GetBindValue()
Queries the specified player for the value of this binding.
- Parameters
-
player | The player to query. |
uiToken | The associated UI token. |
- Returns
- The current value of the binding.
◆ GetBindValues()
Queries the specified player for the array of values assigned to this binding.
- Parameters
-
player | The player to query. |
uiToken | The associated UI token. |
- Returns
- The current values of the binding.
◆ SetBindValue()
Assigns a value to the binding for the specified player.
- Parameters
-
player | The player whose binding will be updated. |
uiToken | The unique UI token to be updated. |
value | The new value to assign. |
◆ SetBindValues()
Assigns an array of values to the binding for the specified player.
- Parameters
-
player | The player whose binding will be updated. |
uiToken | The unique UI token to be updated. |
values | The new value to assign. |
◆ SetBindWatch()
Marks this property as watched/un-watched.
A watched bind will invoke the NUI script event every time its value changes.
- Parameters
-
player | The player whose binding will be updated. |
uiToken | The unique UI token to be updated. |
watch | True if the value should be watched, false if it should not be watched. |
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/Nui/Bindings/NuiBind.cs