Represents a NUI window instance for a certain player.
More...
Represents a NUI window instance for a certain player.
◆ Close()
void Anvil.API.NuiWindowToken.Close |
( |
| ) |
|
|
inline |
Close this window instance.
◆ GetBindValue< T >()
T? Anvil.API.NuiWindowToken.GetBindValue< T > |
( |
NuiBind< T > |
bind | ) |
|
|
inline |
Gets the current value of the specified bind for this window instance.
- Parameters
-
bind | The bind value to query. |
- Template Parameters
-
T | The value type of the bind. |
- Returns
- The current assigned value of the bind, otherwise the default value of T.
◆ GetBindValues< T >()
List<T>? Anvil.API.NuiWindowToken.GetBindValues< T > |
( |
NuiBind< T > |
bind | ) |
|
|
inline |
Gets the current values of the specified bind for this window instance.
- Parameters
-
bind | The bind value to query. |
- Template Parameters
-
T | The value type of the bind. |
- Returns
- The current assigned value of the bind, otherwise the default value of T.
◆ GetUserData< T >()
T? Anvil.API.NuiWindowToken.GetUserData< T > |
( |
| ) |
|
|
inline |
Get the userdata of this token.
- Template Parameters
-
T | A serializable class structure matching the data to fetch. |
- Returns
- The fetched data, or null if the window does not exist on the given player, or has no userdata set.
◆ SetBindValue< T >()
void Anvil.API.NuiWindowToken.SetBindValue< T > |
( |
NuiBind< T > |
bind, |
|
|
T |
value |
|
) |
| |
|
inline |
Sets the current value of the specified bind for this window instance.
- Parameters
-
bind | The bind value to assign. |
value | The new value. |
- Template Parameters
-
T | The value type of the bind. |
◆ SetBindValues< T >()
void Anvil.API.NuiWindowToken.SetBindValues< T > |
( |
NuiBind< T > |
bind, |
|
|
IEnumerable< T > |
values |
|
) |
| |
|
inline |
Sets the current values of the specified bind for this window instance.
- Parameters
-
bind | The bind value to assign. |
values | The new values. |
- Template Parameters
-
T | The value type of the bind. |
◆ SetBindWatch< T >()
void Anvil.API.NuiWindowToken.SetBindWatch< T > |
( |
NuiBind< T > |
bind, |
|
|
bool |
watch |
|
) |
| |
|
inline |
Marks the specified bind as watched/unwatched for this player.
- Parameters
-
- Template Parameters
-
◆ SetGroupLayout()
Applies the specified group layout for this player.
- Parameters
-
group | The group to apply the layout. |
newLayout | The new layout. |
◆ SetUserData< T >()
void Anvil.API.NuiWindowToken.SetUserData< T > |
( |
T |
userData | ) |
|
|
inline |
Sets an arbitrary json value as userdata on this token.
This userdata is not read or handled by the game engine and not sent to clients.
This mechanism only exists as a convenience for the programmer to store data bound to a windows' lifecycle.
Will do nothing if the window does not exist.
- Parameters
-
userData | The data to store. |
- Template Parameters
-
T | The type of data to store. Must be serializable to JSON. |
◆ Player
NwPlayer Anvil.API.NuiWindowToken.Player |
|
get |
The player associated with this token.
◆ Token
int Anvil.API.NuiWindowToken.Token |
|
get |
The window unique token for this player.
◆ WindowId
string Anvil.API.NuiWindowToken.WindowId |
|
get |
The user assigned window id of this token.
Creating a new window with the same window id will replace the existing window.
The documentation for this struct was generated from the following files:
- NWN.Anvil/src/main/API/Events/Game/ModuleEvents/ModuleEvents.OnNuiEvent.cs
- NWN.Anvil/src/main/API/Nui/NuiWindowToken.cs