|
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) |
|
◆ GetBindValue()
StrRef? Anvil.API.NuiBindStrRef.GetBindValue |
( |
NwPlayer |
player, |
|
|
int |
uiToken |
|
) |
| |
|
inline |
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()
List<StrRef?>? Anvil.API.NuiBindStrRef.GetBindValues |
( |
NwPlayer |
player, |
|
|
int |
uiToken |
|
) |
| |
|
inline |
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()
void Anvil.API.NuiBindStrRef.SetBindValue |
( |
NwPlayer |
player, |
|
|
int |
uiToken, |
|
|
StrRef? |
value |
|
) |
| |
|
inline |
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()
void Anvil.API.NuiBindStrRef.SetBindValues |
( |
NwPlayer |
player, |
|
|
int |
uiToken, |
|
|
IEnumerable< StrRef?> |
values |
|
) |
| |
|
inline |
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()
void Anvil.API.NuiBindStrRef.SetBindWatch |
( |
NwPlayer |
player, |
|
|
int |
uiToken, |
|
|
bool |
watch |
|
) |
| |
|
inline |
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/NuiBindStrRef.cs