SpawnUi¶
Use this class to control the loadout and deployment UI.
Static members¶
Member |
Description |
---|---|
|
True if the UI has been closed at least once this game. |
|
True if the UI has been open at least once this game. |
|
|
|
True if the player can select their spawn point from the loadout minimap. |
Static methods¶
Method |
Description |
---|---|
Closes the UI. |
|
Returns the player selected spawn point. |
|
Opens the UI. |
|
Opens the UI in battle plan mode. |
|
Override the loadout section of the UI. |
|
Show or hide the loadout section. |
|
Override the minimap section of the UI. |
|
Show or hide the minimap/deploy section. |
|
Sets the player selected spawn point. |
Details¶
-
class
SpawnUi
¶ -
static const bool
hasBeenClosed
¶ True if the UI has been closed at least once this game.
-
static const bool
hasBeenOpen
¶ True if the UI has been open at least once this game.
-
static const bool
isOpen
¶
-
static bool
playerCanSelectSpawnPoint
¶ True if the player can select their spawn point from the loadout minimap.
-
static void
Close
()¶ Closes the UI.
-
static SpawnPoint
GetSelectedSpawnPoint
(SpawnPoint spawnPoint)¶ Returns the player selected spawn point.
-
static void
Open
()¶ Opens the UI.
-
static void
OpenBattlePlan
()¶ Opens the UI in battle plan mode.
-
static void
SetLoadoutOverride
(GameObject loadout)¶ Override the loadout section of the UI.
-
static void
SetLoadoutVisible
(bool visible)¶ Show or hide the loadout section.
-
static void
SetMinimapOverride
(GameObject minimap)¶ Override the minimap section of the UI.
-
static void
SetMinimapVisible
(bool visible)¶ Show or hide the minimap/deploy section.
-
static void
SetSelectedSpawnPoint
(SpawnPoint spawnPoint)¶ Sets the player selected spawn point. If set to null, the player will not automatically spawn.
-
static const bool