Arma Reforger Script API
|
Sort header manages multiple sort element components. More...
Public Member Functions | |
ESortOrder | GetSortOrder () |
bool | GetSortOrderAscending () |
True when sort order is ASCENDING. | |
int | GetSortElementId () |
string | GetSortElementName () |
int | FindElement (string name) |
Finds element by name. Returns id, or -1 if not found. | |
void | SetCurrentSortElement (int id, ESortOrder order, bool useDefaultSortOrder=false, bool invokeOnChanged=true) |
void | SetElementVisible (int id, bool visible) |
Widget | GetRootWidget () |
void | SetFocus (int id) |
Sets focus on element with ID. | |
Public Attributes | |
int | m_iDefaultSortElement |
ref ScriptInvoker | m_OnChanged = new ScriptInvoker |
Protected Member Functions | |
override void | HandlerAttached (Widget w) |
void | OnButtonClicked (SCR_ModularButtonComponent compClicked) |
SCR_SortElementComponent | GetCurrentSortElement () |
void | InvokeOnChanged () |
Static Protected Member Functions | |
static void | FindAllSortButtons (Widget w, array< SCR_SortElementComponent > components) |
Find all sort button components recursively. | |
Protected Attributes | |
ref array< SCR_SortElementComponent > | m_aSortElements |
Widget | m_wRoot |
Sort header manages multiple sort element components.
At init it scans its hierarchy for any sort elements. On clicks it ensures that only one sort element is toggled.
|
staticprotected |
Find all sort button components recursively.
int SCR_SortHeaderComponent.FindElement | ( | string | name | ) |
Finds element by name. Returns id, or -1 if not found.
|
protected |
Widget SCR_SortHeaderComponent.GetRootWidget | ( | ) |
int SCR_SortHeaderComponent.GetSortElementId | ( | ) |
string SCR_SortHeaderComponent.GetSortElementName | ( | ) |
ESortOrder SCR_SortHeaderComponent.GetSortOrder | ( | ) |
bool SCR_SortHeaderComponent.GetSortOrderAscending | ( | ) |
True when sort order is ASCENDING.
|
protected |
|
protected |
|
protected |
void SCR_SortHeaderComponent.SetCurrentSortElement | ( | int | id, |
ESortOrder | order, | ||
bool | useDefaultSortOrder = false , |
||
bool | invokeOnChanged = true |
||
) |
void SCR_SortHeaderComponent.SetElementVisible | ( | int | id, |
bool | visible | ||
) |
void SCR_SortHeaderComponent.SetFocus | ( | int | id | ) |
Sets focus on element with ID.
|
protected |
int SCR_SortHeaderComponent.m_iDefaultSortElement |
ref ScriptInvoker SCR_SortHeaderComponent.m_OnChanged = new ScriptInvoker |
|
protected |