|
Arma Reforger Script API
|
Public Member Functions | |
| override void | HandlerAttached (Widget w) |
| void | UpdateEntries (bool animated=false) |
| Fill entries with data. | |
| void | UpdateScroll () |
| Update positions of pages and offsets. | |
| void | FocusFirstAvailableEntry () |
| Find first available entry and focus it. | |
| void | MoveToTop () |
| Move list scroll to top. | |
| void | ShowScrollbar (bool show) |
| Clip scroll bar to hide. | |
| int | GetPageEntriesCount () |
| array< Widget > | GetEntryWidgets () |
| void | SetDataEntries (int entriesCount) |
| Widget | FirstAvailableEntry () |
| Return first that is visible and enabled. | |
| void | SetIsListFocused (bool focused) |
| bool | IsListFocused () |
| Widget | GetScrollWidget () |
| ScriptInvokerInt | GetOnSetPage () |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
| override bool | OnClick (Widget w, int x, int y, int button) |
| Widget | GetRootWidget () |
| bool | IsVisible () |
Public Attributes | |
| bool | m_bIsListFocused |
Public Attributes inherited from SCR_ScriptedWidgetComponent | |
| ref ScriptInvoker | m_OnClick = new ScriptInvoker |
Static Public Attributes | |
| const float | SIZE_UNMEASURED = -1 |
| const int | CHECK_ENTRY_SIZE_DELAY = 100 |
| const float | ENTRY_OFFSET_UP = 0.1 |
| const int | ZORDER_OFFSET_TOP |
| const int | ZORDER_OFFSET_BOTTOM = 3 |
| const string | WIDGET_PAGES = "VPages" |
| const string | WIDGET_PAGE0 = "VPage0" |
| const string | WIDGET_PAGE1 = "VPage1" |
| const string | WIDGET_SCROLL_LAYOUT = "ScrollLayout" |
| const string | WIDGET_SIZE_OFFSET_TOP = "SizeOffsetTop" |
| const string | WIDGET_SIZE_OFFSET_BOTTOM = "SizeOffsetBottom" |
| const string | WIDGET_FOCUS_REST = "FocusRest" |
Protected Member Functions | |
| void | OnActionUp () |
| Call this when up action is activated. | |
| void | OnActionDown () |
| Call this when down action is activated. | |
| void | OnScroll (float scrollY) |
| Call this position of scroll is changed. | |
| int | CurrentPageFromScrollPos (float scrollY) |
| Return current page from scroll position. | |
| float | EntriesOutOfView () |
| How many entries are of view - how many entries can be scrolled. | |
| void | SetCurrentPage (int page) |
| Set which page should be currently displayed. | |
| void | SetCurrentPageBase (int page) |
| Base function for updating current page. | |
| void | SwitchPages (bool invert, float size, int page) |
| Change order of list to fake endless scrolling. | |
| void | SetupOffsets (int page) |
| Set sizes of top and bottom offsets. | |
| void | AccessingHandlers () |
| Get reference to all needed component for handling. | |
| void | CreateEntriesWidgets () |
| Create server entries widget. | |
| void | CreateEntriesWidgetsInPage (Widget parent, int count, out Widget firstEntry, out Widget lastEntry) |
| Create entries to selected page and assing first and last entries. | |
| Widget | CreateEntry (Widget parent) |
| Create entry to given page and setup it's behavior | |
| void | CheckEntrySize () |
| Get size of widget entry used in list. | |
| void | SetupEntryBehavior (Widget entry) |
| Empty functions for setting up widget entry beavhior actions, callbacks, etc. | |
| void | FillEntry (Widget w) |
| Empty function for filling entries with data Override this to fill entries with data. | |
| void | AnimateEntryOpacity (Widget w, int delay, float animTime, float opacityEnd, float opacityStart=-1) |
| Setup opacity animation. | |
| void | OpacityAnimation (Widget w, int time, float opacityEnd) |
| void | ShowEntries (int dataCount) |
| Display right entries with right position by scroll. | |
| Widget | FocusedWidgetFromEntryList () |
| Return if and which entry widget is actually focus. | |
Protected Attributes | |
| ResourceName | m_sEntry |
| float | m_fAnimationAppearTime |
| int | m_iPageEntriesCount |
| int | m_iPageChangeOffset |
| int | m_iAllEntriesCount |
| float | m_fListPxHeight = SIZE_UNMEASURED |
| float | m_fPagePxHeight = SIZE_UNMEASURED |
| float | m_fViewPxHeight = SIZE_UNMEASURED |
| float | m_fEntryPxHeight = SIZE_UNMEASURED |
| ScrollLayoutWidget | m_wScroll |
| Widget | m_wPagesWrap |
| Widget | m_wPage0 |
| Widget | m_wPage1 |
| Widget | m_wPage0FirstEntry |
| Widget | m_wPage0LastEntry |
| Widget | m_wPage1FirstEntry |
| Widget | m_wPage1LastEntry |
| Widget | m_wLastFocused |
| ref array< Widget > | m_aEntryWidgets = {} |
| SizeLayoutWidget | m_wSizeOffsetTop |
| SizeLayoutWidget | m_wSizeOffsetBottom |
| bool | m_bPagesInverted |
| int | m_iCurrentPage |
| float | m_ScrollLastY |
| ref ScriptInvokerInt | m_OnSetPage |
| bool | m_bIsMeasured = false |
Protected Attributes inherited from SCR_ScriptedWidgetComponent | |
| Widget | m_wRoot |
Additional Inherited Members | |
Static Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
| static SCR_ScriptedWidgetComponent | GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true) |
| Base method for component lookup through the widget library. | |
|
protected |
Get reference to all needed component for handling.
|
protected |
Setup opacity animation.
|
protected |
Get size of widget entry used in list.
|
protected |
Create server entries widget.
|
protected |
Create entries to selected page and assing first and last entries.
|
protected |
Create entry to given page and setup it's behavior
Implemented in SCR_PooledServerListComponent.
|
protected |
Return current page from scroll position.
|
protected |
How many entries are of view - how many entries can be scrolled.
|
protected |
Empty function for filling entries with data Override this to fill entries with data.
Implemented in SCR_PooledServerListComponent.
| Widget SCR_PooledListComponent.FirstAvailableEntry | ( | ) |
Return first that is visible and enabled.
|
protected |
Return if and which entry widget is actually focus.
| void SCR_PooledListComponent.FocusFirstAvailableEntry | ( | ) |
Find first available entry and focus it.
| array< Widget > SCR_PooledListComponent.GetEntryWidgets | ( | ) |
| ScriptInvokerInt SCR_PooledListComponent.GetOnSetPage | ( | ) |
| int SCR_PooledListComponent.GetPageEntriesCount | ( | ) |
| Widget SCR_PooledListComponent.GetScrollWidget | ( | ) |
| override void SCR_PooledListComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ScriptedWidgetComponent.
| bool SCR_PooledListComponent.IsListFocused | ( | ) |
| void SCR_PooledListComponent.MoveToTop | ( | ) |
Move list scroll to top.
Implemented in SCR_PooledServerListComponent.
|
protected |
Call this when down action is activated.
|
protected |
Call this when up action is activated.
|
protected |
Call this position of scroll is changed.
|
protected |
|
protected |
Set which page should be currently displayed.
Implemented in SCR_PooledServerListComponent.
|
protected |
Base function for updating current page.
| void SCR_PooledListComponent.SetDataEntries | ( | int | entriesCount | ) |
| void SCR_PooledListComponent.SetIsListFocused | ( | bool | focused | ) |
|
protected |
Empty functions for setting up widget entry beavhior actions, callbacks, etc.
Override this to assign specific beavhior for each entry
|
protected |
Set sizes of top and bottom offsets.
|
protected |
Display right entries with right position by scroll.
| void SCR_PooledListComponent.ShowScrollbar | ( | bool | show | ) |
Clip scroll bar to hide.
|
protected |
Change order of list to fake endless scrolling.
| void SCR_PooledListComponent.UpdateEntries | ( | bool | animated = false | ) |
Fill entries with data.
| void SCR_PooledListComponent.UpdateScroll | ( | ) |
Update positions of pages and offsets.
|
static |
|
static |
|
protected |
| bool SCR_PooledListComponent.m_bIsListFocused |
|
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 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |