Arma Reforger Script API
|
Component responsible for requesting and visualization of available loadouts in deploy menu. More...
Public Member Functions | |
override void | HandlerAttached (Widget w) |
override void | HandlerDeattached (Widget w) |
override void | SetExpanded (bool expanded) |
void | OnPlayerLoadoutAssigned (SCR_PlayerLoadoutComponent component) |
Called from deploy menu when player's loadout is assigned. | |
void | ShowAvailableLoadouts (Faction faction) |
Show available loadouts in the loadout selector. | |
void | ShowPlayerLoadouts (array< int > playerIds, int slotCount=-1) |
Fill the loadout list with players' loadouts. | |
ScriptInvokerInt | GetOnPlayerEntryFocused () |
ScriptInvokerWidget | GetOnPlayerEntryFocusLost () |
void | RequestRandomLoadout (Faction faction) |
Send a request to assign a random faction loadout. | |
void | SetSelected (SCR_PlayerLoadoutComponent component) |
void | RegisterOnSpawnPointInvoker (notnull OnSpawnPointRplIdSetInvoker invoker) |
void | RefreshLoadoutPreview () |
Refreshes current loadout preview widget. | |
SCR_BasePlayerLoadout | GetPlayerLoadout () |
Get local player's assigned loadout. | |
void | SetListVisible (bool visible) |
void | ShowLoadoutSelector (bool show) |
SCR_EditableEntityUIInfo | GetUIInfo (SCR_BasePlayerLoadout loadout) |
override void | SetListWidget (Widget list) |
Marks which widget should be used as a root for creating buttons. | |
bool | IsSelectorFocused () |
Public Member Functions inherited from SCR_DeployRequestUIBaseComponent | |
override void | HandlerAttached (Widget w) |
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 | |
override void | ToggleCollapsed () |
override bool | IsExpanded () |
void | OnLoadoutsChanged (SCR_BasePlayerLoadout loadout, int newCount) |
void | ClearLoadoutList () |
Removed all buttons from the loadout list. | |
void | CreatePlayerLoadoutButton (SCR_BasePlayerLoadout loadout, int pid, int order) |
void | CreateEmptySlot (int order) |
Create an empty slot in the loadout grid. | |
void | UpdateLoadouts (int playerID, bool hasValidLoadout) |
void | OnRequestPlayerLoadout (SCR_LoadoutButton loadoutBtn) |
Send a loadout request when clicking on a loadout button. | |
void | RequestPlayerLoadout (SCR_BasePlayerLoadout loadout) |
void | OnButtonFocused (Widget w) |
void | OnButtonFocusLost (Widget w) |
void | OnSpawnPointChanged (RplId id) |
void | OnLoadoutSpawnCostMultiplierChanged (float newMultiplier) |
float | GetLoadoutCost () |
void | SetLoadoutPreview (SCR_BasePlayerLoadout loadout) |
Set a loadout shown in the preview widget. | |
void | AddLoadout (SCR_BasePlayerLoadout loadout) |
Add a loadout into the loadout selector. | |
void | ResetPlayerLoadoutPreview () |
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 () |
Static Protected Attributes | |
const int | LOADOUTS_PER_ROW = 2 |
Static Protected Attributes inherited from SCR_DeployRequestUIBaseComponent | |
static ref ScriptInvoker< SCR_DeployRequestUIBaseComponent, bool > | s_OnListExpand |
Additional Inherited Members | |
Static Public Member Functions inherited from SCR_DeployRequestUIBaseComponent | |
static ScriptInvoker | GetOnListCollapse () |
Component responsible for requesting and visualization of available loadouts in deploy menu.
|
protected |
Add a loadout into the loadout selector.
|
protected |
Removed all buttons from the loadout list.
|
protected |
Create an empty slot in the loadout grid.
|
protected |
|
protected |
ScriptInvokerInt SCR_LoadoutRequestUIComponent.GetOnPlayerEntryFocused | ( | ) |
ScriptInvokerWidget SCR_LoadoutRequestUIComponent.GetOnPlayerEntryFocusLost | ( | ) |
SCR_BasePlayerLoadout SCR_LoadoutRequestUIComponent.GetPlayerLoadout | ( | ) |
Get local player's assigned loadout.
SCR_EditableEntityUIInfo SCR_LoadoutRequestUIComponent.GetUIInfo | ( | SCR_BasePlayerLoadout | loadout | ) |
override void SCR_LoadoutRequestUIComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_DeployRequestUIBaseComponent.
override void SCR_LoadoutRequestUIComponent.HandlerDeattached | ( | Widget | w | ) |
|
protected |
Implements SCR_DeployRequestUIBaseComponent.
bool SCR_LoadoutRequestUIComponent.IsSelectorFocused | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
void SCR_LoadoutRequestUIComponent.OnPlayerLoadoutAssigned | ( | SCR_PlayerLoadoutComponent | component | ) |
Called from deploy menu when player's loadout is assigned.
|
protected |
Send a loadout request when clicking on a loadout button.
|
protected |
void SCR_LoadoutRequestUIComponent.RefreshLoadoutPreview | ( | ) |
Refreshes current loadout preview widget.
void SCR_LoadoutRequestUIComponent.RegisterOnSpawnPointInvoker | ( | notnull OnSpawnPointRplIdSetInvoker | invoker | ) |
|
protected |
void SCR_LoadoutRequestUIComponent.RequestRandomLoadout | ( | Faction | faction | ) |
Send a request to assign a random faction loadout.
|
protected |
override void SCR_LoadoutRequestUIComponent.SetExpanded | ( | bool | expanded | ) |
Implements SCR_DeployRequestUIBaseComponent.
void SCR_LoadoutRequestUIComponent.SetListVisible | ( | bool | visible | ) |
override void SCR_LoadoutRequestUIComponent.SetListWidget | ( | Widget | list | ) |
Marks which widget should be used as a root for creating buttons.
Implements SCR_DeployRequestUIBaseComponent.
|
protected |
Set a loadout shown in the preview widget.
void SCR_LoadoutRequestUIComponent.SetSelected | ( | SCR_PlayerLoadoutComponent | component | ) |
void SCR_LoadoutRequestUIComponent.ShowAvailableLoadouts | ( | Faction | faction | ) |
Show available loadouts in the loadout selector.
void SCR_LoadoutRequestUIComponent.ShowLoadoutSelector | ( | bool | show | ) |
void SCR_LoadoutRequestUIComponent.ShowPlayerLoadouts | ( | array< int > | playerIds, |
int | slotCount = -1 |
||
) |
Fill the loadout list with players' loadouts.
|
protected |
Implements SCR_DeployRequestUIBaseComponent.
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |