Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DeployMenuBase.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_DeployMenuBase
 Base deploy menu class. More...
 
class  SCR_DeployButton
 Component that handles the request respawn button. More...
 

Functions

int GetLoadoutCost (SCR_PlayerLoadoutComponent component)
 
void AllowMapContext (bool allow)
 Sets map context active based on whether or not any of the selectors are focused with a gamepad. More...
 
override void OnMenuOpen ()
 
override void OnMenuHide ()
 
override void OnMenuFocusLost ()
 
override void OnMenuFocusGained ()
 
protected void NextSpawn ()
 Select next available spawn point. More...
 
protected void PrevSpawn ()
 Select previous available spawn point. More...
 
override void OnMenuOpened ()
 
override void OnMenuClose ()
 
override void OnMenuUpdate (float tDelta)
 
protected void ResetRespawnResultVars ()
 
protected void OnCanRespawnRequestResponse (SCR_SpawnRequestComponent requestComponent, SCR_ESpawnResult response, SCR_SpawnData data)
 
protected void FindRequestHandlers ()
 Find all components in the layout that are needed in order for deploy menu to function correctly. More...
 
protected void HookEvents ()
 Initialize necessary callbacks. More...
 
protected void OnMapOpen (MapConfiguration config)
 
protected void OnLocalPlayerGroupJoined (SCR_AIGroup group)
 Callback when player joins a group. More...
 
protected void InitMapDeploy ()
 Initializes the map with deploy menu config. More...
 
protected void SetSpawnPointExt (RplId id)
 Sets spawn point from an external source (ie. by clicking the spawn point icon). More...
 
protected void SetInitialSpawnPoint (RplId spawnPointId)
 Sets initial spawn point when the deploy map is open for the first time. More...
 
protected void SetSpawnPoint (RplId id, bool smoothPan=true)
 Sets the currently selected spawn point. More...
 
protected void FocusOnPoint (notnull SCR_SpawnPoint spawnPoint, bool smooth=true)
 Centers map to a specific spawn point. More...
 
protected void HideLoading ()
 Hides loading spinner widget. More...
 
protected void RequestRespawn ()
 Sends a respawn request based on assigned loadout and selected spawn point. More...
 
protected void OnPlayerFactionRequest (SCR_PlayerFactionAffiliationComponent component, int factionIndex)
 Callback when player requests a faction. More...
 
protected void OnPlayerFactionResponse (SCR_PlayerFactionAffiliationComponent component, int factionIndex, bool response)
 Callback when faction request receives a response. More...
 
protected void OnPlayerLoadoutRequest (SCR_PlayerLoadoutComponent component, int loadoutIndex)
 Callback when player requests a loadout. More...
 
protected void OnPlayerLoadoutResponse (SCR_PlayerLoadoutComponent component, int loadoutIndex, bool response)
 Callback when loadout request receives a response. More...
 
protected void OnPlayerFactionSet (Faction assignedFaction)
 
protected void OnChatToggle ()
 Toggle chat. More...
 
protected void OnPauseMenu ()
 Opens pause menu. More...
 
protected void OnRespawnRequest (SCR_SpawnRequestComponent requestComponent)
 Callback when respawn request was sent for the player. More...
 
protected void OnRespawnResponse (SCR_SpawnRequestComponent requestComponent, SCR_ESpawnResult response)
 Callback when player respawn request received a response. More...
 
protected void UpdateRespawnButton ()
 Sets respawn button enabled based on certain conditions. More...
 
protected void OpenGroupMenu ()
 

Variables

SCR_DeployMenuBase m_MenuHandler
 Main deploy menu with the map present. More...
 
protected SCR_LoadoutRequestUIComponent m_LoadoutRequestUIHandler
 
protected SCR_GroupRequestUIComponent m_GroupRequestUIHandler
 
protected SCR_SpawnPointRequestUIComponent m_SpawnPointRequestUIHandler
 
protected ref MapConfiguration m_MapConfigDeploy = new MapConfiguration()
 
protected SCR_MapUIElementContainer m_UIElementContainer
 
protected SCR_BaseGameMode m_GameMode
 
protected SCR_RespawnComponent m_SpawnRequestManager
 
protected RplId m_iSelectedSpawnPointId = RplId.Invalid()
 
protected Widget m_wLoadingSpinner
 
protected SCR_LoadingSpinner m_LoadingSpinner
 
protected FactionManager m_FactionManager
 
protected SCR_PlayerFactionAffiliationComponent m_PlyFactionAffilComp
 
protected SCR_PlayerLoadoutComponent m_PlyLoadoutComp
 
protected Widget m_wRespawnButton
 
protected SCR_DeployButton m_RespawnButton
 
protected Widget m_wMenuFrame
 
protected SCR_RespawnTimerComponent m_ActiveRespawnTimer
 
protected SCR_RespawnTimerComponent m_PlayerRespawnTimer
 
protected SCR_TimedSpawnPointComponent m_TimedSpawnPointTimer
 
protected int m_iPreviousTime = 0
 
protected bool m_bRespawnRequested = false
 
protected bool m_bSuppliesEnabled
 
protected SCR_RespawnSystemComponent m_RespawnSystemComp
 
protected SCR_RespawnComponent m_RespawnComponent
 
protected int m_iPlayerId
 
protected bool m_bMapContextAllowed = true
 
protected bool m_bCanRespawnAtSpawnPoint
 
protected SCR_UIInfoSpawnRequestResult m_UIInfoSpawnRequestResult
 
protected bool m_bDisplayTime
 
protected float m_fCurrentCanSpawnUpdateTime
 
const protected float CHECK_CAN_SPAWN_SPAWNPOINT_TIME = 1
 
const protected string FALLBACK_DEPLOY_STRING = "#AR-ButtonSelectDeploy"
 
protected SCR_InputButtonComponent m_GroupOpenButton
 
protected float m_fCurrentDeployTimeOut
 
const protected float DEPLOY_TIME_OUT = 0.5
 

Function Documentation

◆ AllowMapContext()

void AllowMapContext ( bool  allow)

Sets map context active based on whether or not any of the selectors are focused with a gamepad.

Definition at line 197 of file SCR_DeployMenuBase.c.

◆ FindRequestHandlers()

protected void FindRequestHandlers ( )

Find all components in the layout that are needed in order for deploy menu to function correctly.

Definition at line 543 of file SCR_DeployMenuBase.c.

◆ FocusOnPoint()

protected void FocusOnPoint ( notnull SCR_SpawnPoint  spawnPoint,
bool  smooth = true 
)

Centers map to a specific spawn point.

Definition at line 668 of file SCR_DeployMenuBase.c.

◆ GetLoadoutCost()

int GetLoadoutCost ( SCR_PlayerLoadoutComponent  component)

Definition at line 157 of file SCR_DeployMenuBase.c.

◆ HideLoading()

protected void HideLoading ( )

Hides loading spinner widget.

Definition at line 688 of file SCR_DeployMenuBase.c.

◆ HookEvents()

protected void HookEvents ( )

Initialize necessary callbacks.

Definition at line 565 of file SCR_DeployMenuBase.c.

◆ InitMapDeploy()

protected void InitMapDeploy ( )

Initializes the map with deploy menu config.

Definition at line 615 of file SCR_DeployMenuBase.c.

◆ NextSpawn()

protected void NextSpawn ( )

Select next available spawn point.

Definition at line 329 of file SCR_DeployMenuBase.c.

◆ OnCanRespawnRequestResponse()

protected void OnCanRespawnRequestResponse ( SCR_SpawnRequestComponent  requestComponent,
SCR_ESpawnResult  response,
SCR_SpawnData  data 
)

Definition at line 472 of file SCR_DeployMenuBase.c.

◆ OnChatToggle()

protected void OnChatToggle ( )

Toggle chat.

Definition at line 779 of file SCR_DeployMenuBase.c.

◆ OnLocalPlayerGroupJoined()

protected void OnLocalPlayerGroupJoined ( SCR_AIGroup  group)

Callback when player joins a group.

Definition at line 608 of file SCR_DeployMenuBase.c.

◆ OnMapOpen()

protected void OnMapOpen ( MapConfiguration  config)

Definition at line 584 of file SCR_DeployMenuBase.c.

◆ OnMenuClose()

override void OnMenuClose ( )

Definition at line 359 of file SCR_DeployMenuBase.c.

◆ OnMenuFocusGained()

override void OnMenuFocusGained ( )

Definition at line 313 of file SCR_DeployMenuBase.c.

◆ OnMenuFocusLost()

override void OnMenuFocusLost ( )

Definition at line 301 of file SCR_DeployMenuBase.c.

◆ OnMenuHide()

override void OnMenuHide ( )

Definition at line 289 of file SCR_DeployMenuBase.c.

◆ OnMenuOpen()

override void OnMenuOpen ( )

Definition at line 203 of file SCR_DeployMenuBase.c.

◆ OnMenuOpened()

override void OnMenuOpened ( )

Definition at line 343 of file SCR_DeployMenuBase.c.

◆ OnMenuUpdate()

override void OnMenuUpdate ( float  tDelta)

Definition at line 370 of file SCR_DeployMenuBase.c.

◆ OnPauseMenu()

protected void OnPauseMenu ( )

Opens pause menu.

Definition at line 795 of file SCR_DeployMenuBase.c.

◆ OnPlayerFactionRequest()

protected void OnPlayerFactionRequest ( SCR_PlayerFactionAffiliationComponent  component,
int  factionIndex 
)

Callback when player requests a faction.

Definition at line 723 of file SCR_DeployMenuBase.c.

◆ OnPlayerFactionResponse()

protected void OnPlayerFactionResponse ( SCR_PlayerFactionAffiliationComponent  component,
int  factionIndex,
bool  response 
)

Callback when faction request receives a response.

Definition at line 729 of file SCR_DeployMenuBase.c.

◆ OnPlayerFactionSet()

protected void OnPlayerFactionSet ( Faction  assignedFaction)

Definition at line 762 of file SCR_DeployMenuBase.c.

◆ OnPlayerLoadoutRequest()

protected void OnPlayerLoadoutRequest ( SCR_PlayerLoadoutComponent  component,
int  loadoutIndex 
)

Callback when player requests a loadout.

Definition at line 741 of file SCR_DeployMenuBase.c.

◆ OnPlayerLoadoutResponse()

protected void OnPlayerLoadoutResponse ( SCR_PlayerLoadoutComponent  component,
int  loadoutIndex,
bool  response 
)

Callback when loadout request receives a response.

Definition at line 747 of file SCR_DeployMenuBase.c.

◆ OnRespawnRequest()

protected void OnRespawnRequest ( SCR_SpawnRequestComponent  requestComponent)

Callback when respawn request was sent for the player.

Definition at line 801 of file SCR_DeployMenuBase.c.

◆ OnRespawnResponse()

protected void OnRespawnResponse ( SCR_SpawnRequestComponent  requestComponent,
SCR_ESpawnResult  response 
)

Callback when player respawn request received a response.

Definition at line 813 of file SCR_DeployMenuBase.c.

◆ OpenGroupMenu()

protected void OpenGroupMenu ( )

Definition at line 839 of file SCR_DeployMenuBase.c.

◆ PrevSpawn()

protected void PrevSpawn ( )

Select previous available spawn point.

Definition at line 336 of file SCR_DeployMenuBase.c.

◆ ResetRespawnResultVars()

protected void ResetRespawnResultVars ( )

Definition at line 463 of file SCR_DeployMenuBase.c.

◆ SetInitialSpawnPoint()

protected void SetInitialSpawnPoint ( RplId  spawnPointId)

Sets initial spawn point when the deploy map is open for the first time.

Definition at line 635 of file SCR_DeployMenuBase.c.

◆ SetSpawnPoint()

protected void SetSpawnPoint ( RplId  id,
bool  smoothPan = true 
)

Sets the currently selected spawn point.

Definition at line 642 of file SCR_DeployMenuBase.c.

◆ SetSpawnPointExt()

protected void SetSpawnPointExt ( RplId  id)

Sets spawn point from an external source (ie. by clicking the spawn point icon).

Definition at line 629 of file SCR_DeployMenuBase.c.

◆ UpdateRespawnButton()

protected void UpdateRespawnButton ( )

Sets respawn button enabled based on certain conditions.

Definition at line 826 of file SCR_DeployMenuBase.c.

Variable Documentation

◆ CHECK_CAN_SPAWN_SPAWNPOINT_TIME

const protected float CHECK_CAN_SPAWN_SPAWNPOINT_TIME = 1

Definition at line 147 of file SCR_DeployMenuBase.c.

◆ DEPLOY_TIME_OUT

const protected float DEPLOY_TIME_OUT = 0.5

Definition at line 154 of file SCR_DeployMenuBase.c.

◆ FALLBACK_DEPLOY_STRING

const protected string FALLBACK_DEPLOY_STRING = "#AR-ButtonSelectDeploy"

Definition at line 148 of file SCR_DeployMenuBase.c.

◆ m_ActiveRespawnTimer

protected SCR_RespawnTimerComponent m_ActiveRespawnTimer

Definition at line 128 of file SCR_DeployMenuBase.c.

◆ m_bCanRespawnAtSpawnPoint

protected bool m_bCanRespawnAtSpawnPoint

Definition at line 141 of file SCR_DeployMenuBase.c.

◆ m_bDisplayTime

protected bool m_bDisplayTime

Definition at line 144 of file SCR_DeployMenuBase.c.

◆ m_bMapContextAllowed

protected bool m_bMapContextAllowed = true

Definition at line 139 of file SCR_DeployMenuBase.c.

◆ m_bRespawnRequested

protected bool m_bRespawnRequested = false

Definition at line 132 of file SCR_DeployMenuBase.c.

◆ m_bSuppliesEnabled

protected bool m_bSuppliesEnabled

Definition at line 133 of file SCR_DeployMenuBase.c.

◆ m_FactionManager

protected FactionManager m_FactionManager

Definition at line 118 of file SCR_DeployMenuBase.c.

◆ m_fCurrentCanSpawnUpdateTime

protected float m_fCurrentCanSpawnUpdateTime

Definition at line 146 of file SCR_DeployMenuBase.c.

◆ m_fCurrentDeployTimeOut

protected float m_fCurrentDeployTimeOut

Definition at line 153 of file SCR_DeployMenuBase.c.

◆ m_GameMode

protected SCR_BaseGameMode m_GameMode

Definition at line 111 of file SCR_DeployMenuBase.c.

◆ m_GroupOpenButton

protected SCR_InputButtonComponent m_GroupOpenButton

Definition at line 150 of file SCR_DeployMenuBase.c.

◆ m_GroupRequestUIHandler

protected SCR_GroupRequestUIComponent m_GroupRequestUIHandler

Definition at line 105 of file SCR_DeployMenuBase.c.

◆ m_iPlayerId

protected int m_iPlayerId

Definition at line 137 of file SCR_DeployMenuBase.c.

◆ m_iPreviousTime

protected int m_iPreviousTime = 0

Definition at line 131 of file SCR_DeployMenuBase.c.

◆ m_iSelectedSpawnPointId

protected RplId m_iSelectedSpawnPointId = RplId.Invalid()

Definition at line 113 of file SCR_DeployMenuBase.c.

◆ m_LoadingSpinner

protected SCR_LoadingSpinner m_LoadingSpinner

Definition at line 116 of file SCR_DeployMenuBase.c.

◆ m_LoadoutRequestUIHandler

protected SCR_LoadoutRequestUIComponent m_LoadoutRequestUIHandler

Definition at line 104 of file SCR_DeployMenuBase.c.

◆ m_MapConfigDeploy

protected ref MapConfiguration m_MapConfigDeploy = new MapConfiguration()

Definition at line 108 of file SCR_DeployMenuBase.c.

◆ m_MenuHandler

SCR_DeployMenuBase m_MenuHandler

Main deploy menu with the map present.

◆ m_PlayerRespawnTimer

protected SCR_RespawnTimerComponent m_PlayerRespawnTimer

Definition at line 129 of file SCR_DeployMenuBase.c.

◆ m_PlyFactionAffilComp

protected SCR_PlayerFactionAffiliationComponent m_PlyFactionAffilComp

Definition at line 119 of file SCR_DeployMenuBase.c.

◆ m_PlyLoadoutComp

protected SCR_PlayerLoadoutComponent m_PlyLoadoutComp

Definition at line 121 of file SCR_DeployMenuBase.c.

◆ m_RespawnButton

protected SCR_DeployButton m_RespawnButton

Definition at line 124 of file SCR_DeployMenuBase.c.

◆ m_RespawnComponent

protected SCR_RespawnComponent m_RespawnComponent

Definition at line 135 of file SCR_DeployMenuBase.c.

◆ m_RespawnSystemComp

protected SCR_RespawnSystemComponent m_RespawnSystemComp

Definition at line 134 of file SCR_DeployMenuBase.c.

◆ m_SpawnPointRequestUIHandler

protected SCR_SpawnPointRequestUIComponent m_SpawnPointRequestUIHandler

Definition at line 106 of file SCR_DeployMenuBase.c.

◆ m_SpawnRequestManager

protected SCR_RespawnComponent m_SpawnRequestManager

Definition at line 112 of file SCR_DeployMenuBase.c.

◆ m_TimedSpawnPointTimer

protected SCR_TimedSpawnPointComponent m_TimedSpawnPointTimer

Definition at line 130 of file SCR_DeployMenuBase.c.

◆ m_UIElementContainer

protected SCR_MapUIElementContainer m_UIElementContainer

Definition at line 109 of file SCR_DeployMenuBase.c.

◆ m_UIInfoSpawnRequestResult

protected SCR_UIInfoSpawnRequestResult m_UIInfoSpawnRequestResult

Definition at line 143 of file SCR_DeployMenuBase.c.

◆ m_wLoadingSpinner

protected Widget m_wLoadingSpinner

Definition at line 115 of file SCR_DeployMenuBase.c.

◆ m_wMenuFrame

protected Widget m_wMenuFrame

Definition at line 126 of file SCR_DeployMenuBase.c.

◆ m_wRespawnButton

protected Widget m_wRespawnButton

Definition at line 123 of file SCR_DeployMenuBase.c.