|
Arma Reforger Script API
|
Component responsible for displaying list of available factions and handling faction assign requests Fills m_wFactionList with m_sFactionButton widgets. More...
Public Member Functions | |
| override void | HandlerAttached (Widget w) |
| void | ShowAvailableFactions () |
| Display available playable factions in the list. | |
| void | OnPlayerFactionAssigned (Faction assignedFaction) |
| Callback when local player's faction is assigned. | |
| void | RequestRandomFaction () |
| SCR_FactionButton | GetFactionButton (int factionId) |
| Get the faction button associated with a faction index. | |
| ScriptInvoker | GetOnFactionRequested () |
Public Member Functions inherited from SCR_DeployRequestUIBaseComponent | |
| void | Update (float dt) |
| void | Unlock () |
| Unlock this component's buttons. | |
| bool | IsEnabled () |
| SCR_DeployButtonBase | GetFirstValidButton () |
| Gets first available button from the m_aButtons list. | |
| void | SetExpanded (bool expanded) |
| bool | IsExpanded () |
| void | SetListWidget (Widget list) |
| Marks which widget should be used as a root for creating buttons. | |
| Widget | GetListWidget () |
| Gets current list widget. | |
| ScriptInvoker | GetOnButtonFocused () |
| ScriptInvoker | GetOnMouseLeft () |
Protected Member Functions | |
| 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. | |
Protected Member Functions inherited from SCR_DeployRequestUIBaseComponent | |
| void | Lock (SCR_DeployButtonBase btn) |
| Lock this component's buttons from processing any further requests. Unlock() should be called once you receive a response. | |
| void | ToggleCollapsed () |
| void | OnListExpand (SCR_DeployRequestUIBaseComponent component, bool expanded) |
| void | OnMouseLeft () |
Protected Attributes | |
| string | m_sFactionList |
| Widget | m_wFactionList |
| string | m_sNoFactions |
| Widget | m_wNoFactions |
| ResourceName | m_sFactionButton |
| SCR_PlayerFactionAffiliationComponent | m_PlyFactionAffilComp |
| SCR_FactionManager | m_FactionManager |
| ref ScriptInvoker< SCR_PlayerFactionAffiliationComponent, int, bool > | m_OnFactionRequested |
Protected Attributes inherited from SCR_DeployRequestUIBaseComponent | |
| string | m_sExpandButton |
| Widget | m_wExpandButton |
| string | m_sExpandButtonName |
| TextWidget | m_wExpandButtonName |
| string | m_sExpandButtonNameFreq |
| TextWidget | m_wExpandButtonNameFreq |
| string | m_sExpandButtonIcon |
| ImageWidget | m_wExpandButtonIcon |
| bool | m_bUseListFromButton |
| bool | m_bEnabled = true |
| bool | m_bLocked = false |
| ref array< SCR_DeployButtonBase > | m_aButtons = {} |
| Widget | m_wRoot |
| ref ScriptInvoker | m_OnButtonFocused = new ScriptInvoker() |
| ref ScriptInvoker | m_OnMouseLeft = new ScriptInvoker() |
Additional Inherited Members | |
Static Public Member Functions inherited from SCR_DeployRequestUIBaseComponent | |
| static ScriptInvoker | GetOnListCollapse () |
Static Protected Attributes inherited from SCR_DeployRequestUIBaseComponent | |
| static ref ScriptInvoker< SCR_DeployRequestUIBaseComponent, bool > | s_OnListExpand |
Component responsible for displaying list of available factions and handling faction assign requests Fills m_wFactionList with m_sFactionButton widgets.
| SCR_FactionButton SCR_FactionRequestUIComponent.GetFactionButton | ( | int | factionId | ) |
Get the faction button associated with a faction index.
| ScriptInvoker SCR_FactionRequestUIComponent.GetOnFactionRequested | ( | ) |
| override void SCR_FactionRequestUIComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_DeployRequestUIBaseComponent.
|
protected |
Callback when player clicks the faction button.
|
protected |
Callback when button is focused.
|
protected |
Callback when player closes the persistent faction dialog.
|
protected |
Callback when playable factions are changed.
| void SCR_FactionRequestUIComponent.OnPlayerFactionAssigned | ( | Faction | assignedFaction | ) |
Callback when local player's faction is assigned.
|
protected |
Sends a request to assign a faction.
| void SCR_FactionRequestUIComponent.RequestRandomFaction | ( | ) |
| void SCR_FactionRequestUIComponent.ShowAvailableFactions | ( | ) |
Display available playable factions in the list.
|
protected |
Update all available faction buttons.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |