Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FactionRequestUIComponent Class Reference
Inheritance diagram for SCR_FactionRequestUIComponent:
SCR_DeployRequestUIBaseComponent

Protected Member Functions

override void HandlerAttached (Widget w)
void ShowAvailableFactions ()
 Display available playable factions in the list.
SCR_FactionButton GetFirstValidFactionButton ()
 Get the first valid Faction Button from the Faction Buttons that are currently shown in the Role Selection Menu.
void OnPlayerFactionAssigned (Faction assignedFaction)
 Callback when local player's faction is assigned.
void OnPlayableFactionChanged (SCR_Faction faction, bool playable)
 Callback when playable factions are changed.
void UpdateFactionButtons (Faction faction, int newCount)
 Update all available faction buttons.
void OnButtonFocused (Widget w)
 Callback when button is focused.
void RequestPlayerFaction (SCR_FactionButton factionBtn)
 Sends a request to assign a faction.
void OnButtonClicked (SCR_FactionButton factionBtn)
 Callback when player clicks the faction button.
void OnFactionDialogConfirm (SCR_PersistentFactionDialog dialog)
 Callback when player closes the persistent faction dialog.
void RequestRandomFaction ()
SCR_FactionButton GetFactionButton (int factionId)
ScriptInvoker GetOnFactionRequested ()

Protected Attributes

string m_sFactionList
Widget m_wFactionList
string m_sNoFactions
Widget m_wNoFactions
ResourceName m_sFactionButton
ref array< SCR_FactionButtonm_aActiveFactionButtons = {}
SCR_PlayerFactionAffiliationComponent m_PlyFactionAffilComp
SCR_FactionManager m_FactionManager
ref ScriptInvoker< SCR_PlayerFactionAffiliationComponent, int, boolm_OnFactionRequested

Detailed Description

Component responsible for displaying list of available factions and handling faction assign requests Fills m_wFactionList with m_sFactionButton widgets

Definition at line 5 of file SCR_FactionRequestUIComponent.c.

Member Function Documentation

◆ GetFactionButton()

SCR_FactionButton SCR_FactionRequestUIComponent::GetFactionButton ( int factionId)
inlineprotected

Get the faction button associated with a faction index.

Returns
faction button

Definition at line 270 of file SCR_FactionRequestUIComponent.c.

◆ GetFirstValidFactionButton()

SCR_FactionButton SCR_FactionRequestUIComponent::GetFirstValidFactionButton ( )
inlineprotected

Get the first valid Faction Button from the Faction Buttons that are currently shown in the Role Selection Menu.

Definition at line 129 of file SCR_FactionRequestUIComponent.c.

◆ GetOnFactionRequested()

ScriptInvoker SCR_FactionRequestUIComponent::GetOnFactionRequested ( )
inlineprotected

Definition at line 283 of file SCR_FactionRequestUIComponent.c.

◆ HandlerAttached()

override void SCR_FactionRequestUIComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 26 of file SCR_FactionRequestUIComponent.c.

◆ OnButtonClicked()

void SCR_FactionRequestUIComponent::OnButtonClicked ( SCR_FactionButton factionBtn)
inlineprotected

Callback when player clicks the faction button.

Definition at line 228 of file SCR_FactionRequestUIComponent.c.

◆ OnButtonFocused()

void SCR_FactionRequestUIComponent::OnButtonFocused ( Widget w)
inlineprotected

Callback when button is focused.

Definition at line 200 of file SCR_FactionRequestUIComponent.c.

◆ OnFactionDialogConfirm()

void SCR_FactionRequestUIComponent::OnFactionDialogConfirm ( SCR_PersistentFactionDialog dialog)
inlineprotected

Callback when player closes the persistent faction dialog.

Definition at line 250 of file SCR_FactionRequestUIComponent.c.

◆ OnPlayableFactionChanged()

void SCR_FactionRequestUIComponent::OnPlayableFactionChanged ( SCR_Faction faction,
bool playable )
inlineprotected

Callback when playable factions are changed.

Definition at line 168 of file SCR_FactionRequestUIComponent.c.

◆ OnPlayerFactionAssigned()

void SCR_FactionRequestUIComponent::OnPlayerFactionAssigned ( Faction assignedFaction)
inlineprotected

Callback when local player's faction is assigned.

Definition at line 142 of file SCR_FactionRequestUIComponent.c.

◆ RequestPlayerFaction()

void SCR_FactionRequestUIComponent::RequestPlayerFaction ( SCR_FactionButton factionBtn)
inlineprotected

Sends a request to assign a faction.

Definition at line 213 of file SCR_FactionRequestUIComponent.c.

◆ RequestRandomFaction()

void SCR_FactionRequestUIComponent::RequestRandomFaction ( )
inlineprotected

Definition at line 258 of file SCR_FactionRequestUIComponent.c.

◆ ShowAvailableFactions()

void SCR_FactionRequestUIComponent::ShowAvailableFactions ( )
inlineprotected

Display available playable factions in the list.

Definition at line 49 of file SCR_FactionRequestUIComponent.c.

◆ UpdateFactionButtons()

void SCR_FactionRequestUIComponent::UpdateFactionButtons ( Faction faction,
int newCount )
inlineprotected

Update all available faction buttons.

Definition at line 188 of file SCR_FactionRequestUIComponent.c.

Member Data Documentation

◆ m_aActiveFactionButtons

ref array<SCR_FactionButton> SCR_FactionRequestUIComponent::m_aActiveFactionButtons = {}
protected

Definition at line 18 of file SCR_FactionRequestUIComponent.c.

◆ m_FactionManager

SCR_FactionManager SCR_FactionRequestUIComponent::m_FactionManager
protected

Definition at line 21 of file SCR_FactionRequestUIComponent.c.

◆ m_OnFactionRequested

ref ScriptInvoker<SCR_PlayerFactionAffiliationComponent, int, bool> SCR_FactionRequestUIComponent::m_OnFactionRequested
protected

Definition at line 23 of file SCR_FactionRequestUIComponent.c.

◆ m_PlyFactionAffilComp

SCR_PlayerFactionAffiliationComponent SCR_FactionRequestUIComponent::m_PlyFactionAffilComp
protected

Definition at line 20 of file SCR_FactionRequestUIComponent.c.

◆ m_sFactionButton

ResourceName SCR_FactionRequestUIComponent::m_sFactionButton
protected

Definition at line 16 of file SCR_FactionRequestUIComponent.c.

◆ m_sFactionList

string SCR_FactionRequestUIComponent::m_sFactionList
protected

Definition at line 8 of file SCR_FactionRequestUIComponent.c.

◆ m_sNoFactions

string SCR_FactionRequestUIComponent::m_sNoFactions
protected

Definition at line 12 of file SCR_FactionRequestUIComponent.c.

◆ m_wFactionList

Widget SCR_FactionRequestUIComponent::m_wFactionList
protected

Definition at line 9 of file SCR_FactionRequestUIComponent.c.

◆ m_wNoFactions

Widget SCR_FactionRequestUIComponent::m_wNoFactions
protected

Definition at line 13 of file SCR_FactionRequestUIComponent.c.


The documentation for this class was generated from the following file: