Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PooledListComponent Class Reference
Inheritance diagram for SCR_PooledListComponent:
SCR_ScriptedWidgetComponent SCR_PooledServerListComponent

Protected Member Functions

override void HandlerAttached (Widget w)
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 UpdateEntries (bool animated=false)
 Fill entries with data.
void UpdateScroll ()
 Update positions of pages and offsets.
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 FocusFirstAvailableEntry ()
 Find first available entry and focus it.
void MoveToTop ()
 Move list scroll to top.
void ShowScrollbar (bool show)
 Clip scroll bar to hide.
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)
void FillEntry (Widget w)
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.
int GetPageEntriesCount ()
array< WidgetGetEntryWidgets ()
void SetDataEntries (int entriesCount)
Widget FirstAvailableEntry ()
 Return first that is visible and enabled.
void SetIsListFocused (bool focused)
bool IsListFocused ()
Widget GetScrollWidget ()
ScriptInvokerInt GetOnSetPage ()

Protected Attributes

ResourceName m_sEntry
float m_fAnimationAppearTime
int m_iPageEntriesCount
int m_iPageChangeOffset
int m_iAllEntriesCount
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"
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< Widgetm_aEntryWidgets = {}
SizeLayoutWidget m_wSizeOffsetTop
SizeLayoutWidget m_wSizeOffsetBottom
bool m_bPagesInverted
int m_iCurrentPage
float m_ScrollLastY
bool m_bIsListFocused
ref ScriptInvokerInt m_OnSetPage
bool m_bIsMeasured = false

Detailed Description

Definition at line 10 of file SCR_PooledListComponent.c.

Member Function Documentation

◆ AccessingHandlers()

void SCR_PooledListComponent::AccessingHandlers ( )
inlineprotected

Get reference to all needed component for handling.

Definition at line 396 of file SCR_PooledListComponent.c.

◆ AnimateEntryOpacity()

void SCR_PooledListComponent::AnimateEntryOpacity ( Widget w,
int delay,
float animTime,
float opacityEnd,
float opacityStart = -1 )
inlineprotected

Setup opacity animation.

Definition at line 516 of file SCR_PooledListComponent.c.

◆ CheckEntrySize()

void SCR_PooledListComponent::CheckEntrySize ( )
inlineprotected

Get size of widget entry used in list.

Definition at line 466 of file SCR_PooledListComponent.c.

◆ CreateEntriesWidgets()

void SCR_PooledListComponent::CreateEntriesWidgets ( )
inlineprotected

Create server entries widget.

Definition at line 413 of file SCR_PooledListComponent.c.

◆ CreateEntriesWidgetsInPage()

void SCR_PooledListComponent::CreateEntriesWidgetsInPage ( Widget parent,
int count,
out Widget firstEntry,
out Widget lastEntry )
inlineprotected

Create entries to selected page and assing first and last entries.

Definition at line 424 of file SCR_PooledListComponent.c.

◆ CreateEntry()

Widget SCR_PooledListComponent::CreateEntry ( Widget parent)
inlineprotected

Create entry to given page and setup it's behavior.

Definition at line 442 of file SCR_PooledListComponent.c.

◆ CurrentPageFromScrollPos()

int SCR_PooledListComponent::CurrentPageFromScrollPos ( float scrollY)
inlineprotected

Return current page from scroll position.

Definition at line 179 of file SCR_PooledListComponent.c.

◆ EntriesOutOfView()

float SCR_PooledListComponent::EntriesOutOfView ( )
inlineprotected

How many entries are of view - how many entries can be scrolled.

Definition at line 209 of file SCR_PooledListComponent.c.

◆ FillEntry()

void SCR_PooledListComponent::FillEntry ( Widget w)
inlineprotected

Empty function for filling entries with data Override this to fill entries with data

Definition at line 512 of file SCR_PooledListComponent.c.

◆ FirstAvailableEntry()

Widget SCR_PooledListComponent::FirstAvailableEntry ( )
inlineprotected

Return first that is visible and enabled.

Definition at line 598 of file SCR_PooledListComponent.c.

◆ FocusedWidgetFromEntryList()

Widget SCR_PooledListComponent::FocusedWidgetFromEntryList ( )
inlineprotected

Return if and which entry widget is actually focus.

Definition at line 555 of file SCR_PooledListComponent.c.

◆ FocusFirstAvailableEntry()

void SCR_PooledListComponent::FocusFirstAvailableEntry ( )
inlineprotected

Find first available entry and focus it.

Definition at line 348 of file SCR_PooledListComponent.c.

◆ GetEntryWidgets()

array< Widget > SCR_PooledListComponent::GetEntryWidgets ( )
inlineprotected

Definition at line 577 of file SCR_PooledListComponent.c.

◆ GetOnSetPage()

ScriptInvokerInt SCR_PooledListComponent::GetOnSetPage ( )
inlineprotected

Definition at line 628 of file SCR_PooledListComponent.c.

◆ GetPageEntriesCount()

int SCR_PooledListComponent::GetPageEntriesCount ( )
inlineprotected

Definition at line 571 of file SCR_PooledListComponent.c.

◆ GetScrollWidget()

Widget SCR_PooledListComponent::GetScrollWidget ( )
inlineprotected

Definition at line 622 of file SCR_PooledListComponent.c.

◆ HandlerAttached()

override void SCR_PooledListComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 94 of file SCR_PooledListComponent.c.

◆ IsListFocused()

bool SCR_PooledListComponent::IsListFocused ( )
inlineprotected

Definition at line 616 of file SCR_PooledListComponent.c.

◆ MoveToTop()

void SCR_PooledListComponent::MoveToTop ( )
inlineprotected

Move list scroll to top.

Definition at line 362 of file SCR_PooledListComponent.c.

◆ OnActionDown()

void SCR_PooledListComponent::OnActionDown ( )
inlineprotected

Call this when down action is activated.

Definition at line 152 of file SCR_PooledListComponent.c.

◆ OnActionUp()

void SCR_PooledListComponent::OnActionUp ( )
inlineprotected

Call this when up action is activated.

Definition at line 111 of file SCR_PooledListComponent.c.

◆ OnScroll()

void SCR_PooledListComponent::OnScroll ( float scrollY)
inlineprotected

Call this position of scroll is changed.

Definition at line 165 of file SCR_PooledListComponent.c.

◆ OpacityAnimation()

void SCR_PooledListComponent::OpacityAnimation ( Widget w,
int time,
float opacityEnd )
inlineprotected

Definition at line 525 of file SCR_PooledListComponent.c.

◆ SetCurrentPage()

void SCR_PooledListComponent::SetCurrentPage ( int page)
inlineprotected

Set which page should be currently displayed.

Definition at line 277 of file SCR_PooledListComponent.c.

◆ SetCurrentPageBase()

void SCR_PooledListComponent::SetCurrentPageBase ( int page)
inlineprotected

Base function for updating current page.

Definition at line 285 of file SCR_PooledListComponent.c.

◆ SetDataEntries()

void SCR_PooledListComponent::SetDataEntries ( int entriesCount)
inlineprotected

Definition at line 584 of file SCR_PooledListComponent.c.

◆ SetIsListFocused()

void SCR_PooledListComponent::SetIsListFocused ( bool focused)
inlineprotected

Definition at line 610 of file SCR_PooledListComponent.c.

◆ SetupEntryBehavior()

void SCR_PooledListComponent::SetupEntryBehavior ( Widget entry)
inlineprotected

Empty functions for setting up widget entry beavhior actions, callbacks, etc. Override this to assign specific beavhior for each entry

Definition at line 505 of file SCR_PooledListComponent.c.

◆ SetupOffsets()

void SCR_PooledListComponent::SetupOffsets ( int page)
inlineprotected

Set sizes of top and bottom offsets.

Definition at line 331 of file SCR_PooledListComponent.c.

◆ ShowEntries()

void SCR_PooledListComponent::ShowEntries ( int dataCount)
inlineprotected

Display right entries with right position by scroll.

Definition at line 532 of file SCR_PooledListComponent.c.

◆ ShowScrollbar()

void SCR_PooledListComponent::ShowScrollbar ( bool show)
inlineprotected

Clip scroll bar to hide.

Definition at line 376 of file SCR_PooledListComponent.c.

◆ SwitchPages()

void SCR_PooledListComponent::SwitchPages ( bool invert,
float size,
int page )
inlineprotected

Change order of list to fake endless scrolling.

Definition at line 304 of file SCR_PooledListComponent.c.

◆ UpdateEntries()

void SCR_PooledListComponent::UpdateEntries ( bool animated = false)
inlineprotected

Fill entries with data.

Definition at line 230 of file SCR_PooledListComponent.c.

◆ UpdateScroll()

void SCR_PooledListComponent::UpdateScroll ( )
inlineprotected

Update positions of pages and offsets.

Definition at line 244 of file SCR_PooledListComponent.c.

Member Data Documentation

◆ CHECK_ENTRY_SIZE_DELAY

const int SCR_PooledListComponent::CHECK_ENTRY_SIZE_DELAY = 100
protected

Definition at line 31 of file SCR_PooledListComponent.c.

◆ ENTRY_OFFSET_UP

const float SCR_PooledListComponent::ENTRY_OFFSET_UP = 0.1
protected

Definition at line 34 of file SCR_PooledListComponent.c.

◆ m_aEntryWidgets

ref array<Widget> SCR_PooledListComponent::m_aEntryWidgets = {}
protected

Definition at line 71 of file SCR_PooledListComponent.c.

◆ m_bIsListFocused

bool SCR_PooledListComponent::m_bIsListFocused
protected

Definition at line 84 of file SCR_PooledListComponent.c.

◆ m_bIsMeasured

bool SCR_PooledListComponent::m_bIsMeasured = false
protected

Definition at line 462 of file SCR_PooledListComponent.c.

◆ m_bPagesInverted

bool SCR_PooledListComponent::m_bPagesInverted
protected

Definition at line 77 of file SCR_PooledListComponent.c.

◆ m_fAnimationAppearTime

float SCR_PooledListComponent::m_fAnimationAppearTime
protected

Definition at line 18 of file SCR_PooledListComponent.c.

◆ m_fEntryPxHeight

float SCR_PooledListComponent::m_fEntryPxHeight = SIZE_UNMEASURED
protected

Definition at line 55 of file SCR_PooledListComponent.c.

◆ m_fListPxHeight

float SCR_PooledListComponent::m_fListPxHeight = SIZE_UNMEASURED
protected

Definition at line 52 of file SCR_PooledListComponent.c.

◆ m_fPagePxHeight

float SCR_PooledListComponent::m_fPagePxHeight = SIZE_UNMEASURED
protected

Definition at line 53 of file SCR_PooledListComponent.c.

◆ m_fViewPxHeight

float SCR_PooledListComponent::m_fViewPxHeight = SIZE_UNMEASURED
protected

Definition at line 54 of file SCR_PooledListComponent.c.

◆ m_iAllEntriesCount

int SCR_PooledListComponent::m_iAllEntriesCount
protected

Definition at line 27 of file SCR_PooledListComponent.c.

◆ m_iCurrentPage

int SCR_PooledListComponent::m_iCurrentPage
protected

Definition at line 78 of file SCR_PooledListComponent.c.

◆ m_iPageChangeOffset

int SCR_PooledListComponent::m_iPageChangeOffset
protected

Definition at line 24 of file SCR_PooledListComponent.c.

◆ m_iPageEntriesCount

int SCR_PooledListComponent::m_iPageEntriesCount
protected

Definition at line 21 of file SCR_PooledListComponent.c.

◆ m_OnSetPage

ref ScriptInvokerInt SCR_PooledListComponent::m_OnSetPage
protected

Definition at line 87 of file SCR_PooledListComponent.c.

◆ m_ScrollLastY

float SCR_PooledListComponent::m_ScrollLastY
protected

Definition at line 81 of file SCR_PooledListComponent.c.

◆ m_sEntry

ResourceName SCR_PooledListComponent::m_sEntry
protected

Definition at line 14 of file SCR_PooledListComponent.c.

◆ m_wLastFocused

Widget SCR_PooledListComponent::m_wLastFocused
protected

Definition at line 69 of file SCR_PooledListComponent.c.

◆ m_wPage0

Widget SCR_PooledListComponent::m_wPage0
protected

Definition at line 61 of file SCR_PooledListComponent.c.

◆ m_wPage0FirstEntry

Widget SCR_PooledListComponent::m_wPage0FirstEntry
protected

Definition at line 64 of file SCR_PooledListComponent.c.

◆ m_wPage0LastEntry

Widget SCR_PooledListComponent::m_wPage0LastEntry
protected

Definition at line 65 of file SCR_PooledListComponent.c.

◆ m_wPage1

Widget SCR_PooledListComponent::m_wPage1
protected

Definition at line 62 of file SCR_PooledListComponent.c.

◆ m_wPage1FirstEntry

Widget SCR_PooledListComponent::m_wPage1FirstEntry
protected

Definition at line 66 of file SCR_PooledListComponent.c.

◆ m_wPage1LastEntry

Widget SCR_PooledListComponent::m_wPage1LastEntry
protected

Definition at line 67 of file SCR_PooledListComponent.c.

◆ m_wPagesWrap

Widget SCR_PooledListComponent::m_wPagesWrap
protected

Definition at line 60 of file SCR_PooledListComponent.c.

◆ m_wScroll

ScrollLayoutWidget SCR_PooledListComponent::m_wScroll
protected

Definition at line 58 of file SCR_PooledListComponent.c.

◆ m_wSizeOffsetBottom

SizeLayoutWidget SCR_PooledListComponent::m_wSizeOffsetBottom
protected

Definition at line 74 of file SCR_PooledListComponent.c.

◆ m_wSizeOffsetTop

SizeLayoutWidget SCR_PooledListComponent::m_wSizeOffsetTop
protected

Definition at line 73 of file SCR_PooledListComponent.c.

◆ SIZE_UNMEASURED

const float SCR_PooledListComponent::SIZE_UNMEASURED = -1
protected

Definition at line 30 of file SCR_PooledListComponent.c.

◆ WIDGET_FOCUS_REST

const string SCR_PooledListComponent::WIDGET_FOCUS_REST = "FocusRest"
protected

Definition at line 49 of file SCR_PooledListComponent.c.

◆ WIDGET_PAGE0

const string SCR_PooledListComponent::WIDGET_PAGE0 = "VPage0"
protected

Definition at line 42 of file SCR_PooledListComponent.c.

◆ WIDGET_PAGE1

const string SCR_PooledListComponent::WIDGET_PAGE1 = "VPage1"
protected

Definition at line 43 of file SCR_PooledListComponent.c.

◆ WIDGET_PAGES

const string SCR_PooledListComponent::WIDGET_PAGES = "VPages"
protected

Definition at line 41 of file SCR_PooledListComponent.c.

◆ WIDGET_SCROLL_LAYOUT

const string SCR_PooledListComponent::WIDGET_SCROLL_LAYOUT = "ScrollLayout"
protected

Definition at line 45 of file SCR_PooledListComponent.c.

◆ WIDGET_SIZE_OFFSET_BOTTOM

const string SCR_PooledListComponent::WIDGET_SIZE_OFFSET_BOTTOM = "SizeOffsetBottom"
protected

Definition at line 47 of file SCR_PooledListComponent.c.

◆ WIDGET_SIZE_OFFSET_TOP

const string SCR_PooledListComponent::WIDGET_SIZE_OFFSET_TOP = "SizeOffsetTop"
protected

Definition at line 46 of file SCR_PooledListComponent.c.

◆ ZORDER_OFFSET_BOTTOM

const int SCR_PooledListComponent::ZORDER_OFFSET_BOTTOM = 3
protected

Definition at line 38 of file SCR_PooledListComponent.c.

◆ ZORDER_OFFSET_TOP

const int SCR_PooledListComponent::ZORDER_OFFSET_TOP
protected

Definition at line 37 of file SCR_PooledListComponent.c.


The documentation for this class was generated from the following file: