Arma Reforger Script API
|
Component responsible for handling group requests and visualization in deploy menu. More...
Public Member Functions | |
override void | HandlerAttached (Widget w) |
override void | SetExpanded (bool expanded) |
override void | HandlerDeattached (Widget w) |
void | SetPlayerGroup (SCR_AIGroup group) |
Update the expandable button name. | |
void | ShowAvailableGroups (notnull Faction faction) |
Show groups available for given faction. | |
void | JoinGroupAutomatically () |
Joins an automatically selected group. | |
SCR_GroupButton | GetGroupButton (SCR_AIGroup group) |
Gets relevant group button. | |
Widget | GetGroupList () |
Return current group list. | |
SCR_AIGroup | GetPlayerGroup () |
Return local player's group. | |
override void | SetListWidget (Widget list) |
Set current group list. | |
int | GetShownGroupId () |
Gets id of a currently displayed group. | |
void | SetShownGroupId (int groupId) |
Set id of a currently displayed group. | |
ScriptInvoker | GetOnPlayerGroupJoined () |
ScriptInvoker | GetOnLocalPlayerGroupJoined () |
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 | UpdateGroupPlayers (SCR_AIGroup group, int pid) |
Update the group widget when player joins/leaves group. | |
void | UpdateLocalPlayerGroup (int groupId) |
Update the group widget relevant to local player. | |
void | UpdateGroupPrivacy (int groupId, bool isPrivate) |
Set group private. | |
void | UpdateGroupNames () |
Set group name. | |
void | UpdateGroupFrequency () |
Set group frequency. | |
void | UpdateGroupFlag () |
Set group flag. | |
void | RemoveGroup (SCR_AIGroup group) |
Removes the group button from the list. | |
void | CreateNewGroupButton () |
Creates a button which handles creating of a new group. | |
void | UpdateNewGroupButton () |
Updates visibility of the button for creating a new group. | |
void | RequestNewGroup () |
Requests creation of a new group. | |
void | AddGroup (SCR_AIGroup group) |
Adds a new group button into the list. | |
void | OnButtonFocused (Widget w) |
Called when the group button is focused. | |
void | RequestJoinGroup (notnull SCR_GroupButton groupBtn) |
Sends a request for joining a group. | |
void | ClearGroupList () |
Clear the group list. | |
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_sGroupList |
Widget | m_wGroupList |
ResourceName | m_sGroupButton |
ResourceName | m_sNewGroupButton |
Widget | m_wNewGroupButton |
bool | m_bCreateNewGroupButton |
SCR_GroupsManagerComponent | m_GroupManager |
SCR_PlayerControllerGroupComponent | m_PlyGroupComp |
Faction | m_PlyFaction |
int | m_iShownGroupId = -1 |
ref ScriptInvoker< SCR_GroupButton > | m_OnPlayerGroupJoined |
ref ScriptInvoker< int > | m_OnLocalPlayerGroupJoined |
Protected Attributes inherited from SCR_DeployRequestUIBaseComponent | |
string | m_sExpandButton |
Widget | m_wExpandButton |
string | m_sExpandButtonName |
TextWidget | m_wExpandButtonName |
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 handling group requests and visualization in deploy menu.
|
protected |
Adds a new group button into the list.
|
protected |
Clear the group list.
|
protected |
Creates a button which handles creating of a new group.
SCR_GroupButton SCR_GroupRequestUIComponent.GetGroupButton | ( | SCR_AIGroup | group | ) |
Gets relevant group button.
Widget SCR_GroupRequestUIComponent.GetGroupList | ( | ) |
Return current group list.
ScriptInvoker SCR_GroupRequestUIComponent.GetOnLocalPlayerGroupJoined | ( | ) |
ScriptInvoker SCR_GroupRequestUIComponent.GetOnPlayerGroupJoined | ( | ) |
SCR_AIGroup SCR_GroupRequestUIComponent.GetPlayerGroup | ( | ) |
Return local player's group.
int SCR_GroupRequestUIComponent.GetShownGroupId | ( | ) |
Gets id of a currently displayed group.
override void SCR_GroupRequestUIComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_DeployRequestUIBaseComponent.
override void SCR_GroupRequestUIComponent.HandlerDeattached | ( | Widget | w | ) |
|
protected |
Implements SCR_DeployRequestUIBaseComponent.
void SCR_GroupRequestUIComponent.JoinGroupAutomatically | ( | ) |
Joins an automatically selected group.
|
protected |
Called when the group button is focused.
|
protected |
Removes the group button from the list.
|
protected |
Sends a request for joining a group.
|
protected |
Requests creation of a new group.
override void SCR_GroupRequestUIComponent.SetExpanded | ( | bool | expanded | ) |
Implements SCR_DeployRequestUIBaseComponent.
override void SCR_GroupRequestUIComponent.SetListWidget | ( | Widget | list | ) |
Set current group list.
Implements SCR_DeployRequestUIBaseComponent.
void SCR_GroupRequestUIComponent.SetPlayerGroup | ( | SCR_AIGroup | group | ) |
Update the expandable button name.
void SCR_GroupRequestUIComponent.SetShownGroupId | ( | int | groupId | ) |
Set id of a currently displayed group.
void SCR_GroupRequestUIComponent.ShowAvailableGroups | ( | notnull Faction | faction | ) |
Show groups available for given faction.
|
protected |
Implements SCR_DeployRequestUIBaseComponent.
|
protected |
Set group flag.
|
protected |
Set group frequency.
|
protected |
Set group name.
|
protected |
Update the group widget when player joins/leaves group.
|
protected |
Set group private.
|
protected |
Update the group widget relevant to local player.
|
protected |
Updates visibility of the button for creating a new group.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |