Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ListViewComponent Class Reference
Inheritance diagram for SCR_ListViewComponent:
ScriptedWidgetComponent SCR_ButtonListViewComponent

Protected Member Functions

override void HandlerAttached (Widget w)
override bool OnUpdate (Widget w)
void UpdateEntries (bool animated=false)
 Fill entries with data.
void SetScrollbarVisible (bool visible)
void FocusFirstAvailableEntry ()
 Find first available entry and focus it.
void AccessingHandlers ()
 Get reference to all needed component for handling.
void CreateEntriesWidgets ()
 Create server entries widget.
void PostCheck ()
void CreateEntry ()
int CalculateLimit ()
 Calulate entry limit number from list size and entry size.
float EntryFractionFromViewPos (float viewPos, float scrollPos)
void CheckEntrySize ()
 Get size of widget entry used in list.
void SetupEntryBehavior (Widget entry)
void FillEntry (Widget w)
void ScrollOffsetMove (float scrollPos)
 Modify offset size to fake scrolling by scroll position.
void ScrollWheelMove ()
 Scroll list based on input action.
void StayOnLastEntry ()
 Kepp focus on last entry on scroll.
void ScrollList (float step, float input)
float ScrollMove (float step, float inputMove)
void ChangeFocusWithoutAnimation (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 ClearServerList ()
 Clear widgets from server list.
void OnMenuDown ()
 Check stepping over limit down.
void OnMenuUp ()
 Check stepping over limit up.
void SetScrollbar (SCR_ScrollBarComponent scrollbar)
void ActivateScrolling (bool activate)
 Activate scrolling with input action.
void UpdateScrollbar ()
array< WidgetGetEntryWidgets ()
float ScrollableEntriesCount ()
Widget FirstAvailableEntry ()
 Return first that is visible and enabled.

Protected Attributes

ResourceName m_sEntry
string m_sScrollAction
bool m_bAutomaticEntriesLimit
int m_iEntriesLimit
int m_iEntriesBottomPadding
float m_fScrollMove
float m_fAnimationAppearTime
Widget m_wRoot
Widget m_wVerticalList
SizeLayoutWidget m_wSizeScrollOffset
Widget m_wFocusRest
ref array< Widgetm_aEntryWidgets = new array<Widget>
SCR_ScrollBarComponent m_Scrollbar
float m_fScrollPosition = 0
float m_iLastScrollPosition = 0
float m_iEntriesCount = 0
float m_fEntryWidgetHeight
int m_iFocusedEntryId = 0
bool m_bIscrollActive
bool m_bAnimateListAppearing
bool m_bCreateList = false
const int ENTRY_FIRST = 0

Detailed Description

Definition at line 6 of file SCR_ListViewComponent.c.

Member Function Documentation

◆ AccessingHandlers()

void SCR_ListViewComponent::AccessingHandlers ( )
inlineprotected

Get reference to all needed component for handling.

Definition at line 148 of file SCR_ListViewComponent.c.

◆ ActivateScrolling()

void SCR_ListViewComponent::ActivateScrolling ( bool activate)
inlineprotected

Activate scrolling with input action.

Definition at line 543 of file SCR_ListViewComponent.c.

◆ AnimateEntryOpacity()

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

Setup opacity animation.

Definition at line 430 of file SCR_ListViewComponent.c.

◆ CalculateLimit()

int SCR_ListViewComponent::CalculateLimit ( )
inlineprotected

Calulate entry limit number from list size and entry size.

Definition at line 248 of file SCR_ListViewComponent.c.

◆ ChangeFocusWithoutAnimation()

void SCR_ListViewComponent::ChangeFocusWithoutAnimation ( Widget w)
inlineprotected

Definition at line 405 of file SCR_ListViewComponent.c.

◆ CheckEntrySize()

void SCR_ListViewComponent::CheckEntrySize ( )
inlineprotected

Get size of widget entry used in list.

Definition at line 283 of file SCR_ListViewComponent.c.

◆ ClearServerList()

void SCR_ListViewComponent::ClearServerList ( )
inlineprotected

Clear widgets from server list.

Definition at line 446 of file SCR_ListViewComponent.c.

◆ CreateEntriesWidgets()

void SCR_ListViewComponent::CreateEntriesWidgets ( )
inlineprotected

Create server entries widget.

CheckEntrySize();

Definition at line 158 of file SCR_ListViewComponent.c.

◆ CreateEntry()

void SCR_ListViewComponent::CreateEntry ( )
inlineprotected

Definition at line 222 of file SCR_ListViewComponent.c.

◆ EntryFractionFromViewPos()

float SCR_ListViewComponent::EntryFractionFromViewPos ( float viewPos,
float scrollPos )
inlineprotected

Get fraction of whole entry in percents from positon in list view in percent based on scroll postion EntryFractionFromViewPos(1, ) = how much of entry is missing from bottom view

Definition at line 261 of file SCR_ListViewComponent.c.

◆ FillEntry()

void SCR_ListViewComponent::FillEntry ( Widget w)
inlineprotected

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

Definition at line 301 of file SCR_ListViewComponent.c.

◆ FirstAvailableEntry()

Widget SCR_ListViewComponent::FirstAvailableEntry ( )
inlineprotected

Return first that is visible and enabled.

Definition at line 580 of file SCR_ListViewComponent.c.

◆ FocusFirstAvailableEntry()

void SCR_ListViewComponent::FocusFirstAvailableEntry ( )
inlineprotected

Find first available entry and focus it.

Definition at line 130 of file SCR_ListViewComponent.c.

◆ GetEntryWidgets()

array< Widget > SCR_ListViewComponent::GetEntryWidgets ( )
inlineprotected

Definition at line 563 of file SCR_ListViewComponent.c.

◆ HandlerAttached()

override void SCR_ListViewComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 68 of file SCR_ListViewComponent.c.

◆ OnMenuDown()

void SCR_ListViewComponent::OnMenuDown ( )
inlineprotected

Check stepping over limit down.

Scrolling with up/down buttons outside of list view Focus is focus rest widget

Definition at line 480 of file SCR_ListViewComponent.c.

◆ OnMenuUp()

void SCR_ListViewComponent::OnMenuUp ( )
inlineprotected

Check stepping over limit up.

Definition at line 504 of file SCR_ListViewComponent.c.

◆ OnUpdate()

override bool SCR_ListViewComponent::OnUpdate ( Widget w)
inlineprotected

Definition at line 84 of file SCR_ListViewComponent.c.

◆ OpacityAnimation()

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

Definition at line 439 of file SCR_ListViewComponent.c.

◆ PostCheck()

void SCR_ListViewComponent::PostCheck ( )
inlineprotected

Definition at line 188 of file SCR_ListViewComponent.c.

◆ ScrollableEntriesCount()

float SCR_ListViewComponent::ScrollableEntriesCount ( )
inlineprotected

Definition at line 567 of file SCR_ListViewComponent.c.

◆ ScrollList()

void SCR_ListViewComponent::ScrollList ( float step,
float input )
inlineprotected

Definition at line 372 of file SCR_ListViewComponent.c.

◆ ScrollMove()

float SCR_ListViewComponent::ScrollMove ( float step,
float inputMove )
inlineprotected

Definition at line 391 of file SCR_ListViewComponent.c.

◆ ScrollOffsetMove()

void SCR_ListViewComponent::ScrollOffsetMove ( float scrollPos)
inlineprotected

Modify offset size to fake scrolling by scroll position.

Definition at line 305 of file SCR_ListViewComponent.c.

◆ ScrollWheelMove()

void SCR_ListViewComponent::ScrollWheelMove ( )
inlineprotected

Scroll list based on input action.

Definition at line 338 of file SCR_ListViewComponent.c.

◆ SetScrollbar()

void SCR_ListViewComponent::SetScrollbar ( SCR_ScrollBarComponent scrollbar)
inlineprotected

Definition at line 527 of file SCR_ListViewComponent.c.

◆ SetScrollbarVisible()

void SCR_ListViewComponent::SetScrollbarVisible ( bool visible)
inlineprotected

Definition at line 122 of file SCR_ListViewComponent.c.

◆ SetupEntryBehavior()

void SCR_ListViewComponent::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 296 of file SCR_ListViewComponent.c.

◆ StayOnLastEntry()

void SCR_ListViewComponent::StayOnLastEntry ( )
inlineprotected

Kepp focus on last entry on scroll.

Definition at line 361 of file SCR_ListViewComponent.c.

◆ UpdateEntries()

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

Fill entries with data.

Definition at line 105 of file SCR_ListViewComponent.c.

◆ UpdateScrollbar()

void SCR_ListViewComponent::UpdateScrollbar ( )
inlineprotected

Definition at line 553 of file SCR_ListViewComponent.c.

Member Data Documentation

◆ ENTRY_FIRST

const int SCR_ListViewComponent::ENTRY_FIRST = 0
protected

Definition at line 279 of file SCR_ListViewComponent.c.

◆ m_aEntryWidgets

ref array<Widget> SCR_ListViewComponent::m_aEntryWidgets = new array<Widget>
protected

Definition at line 43 of file SCR_ListViewComponent.c.

◆ m_bAnimateListAppearing

bool SCR_ListViewComponent::m_bAnimateListAppearing
protected

Definition at line 57 of file SCR_ListViewComponent.c.

◆ m_bAutomaticEntriesLimit

bool SCR_ListViewComponent::m_bAutomaticEntriesLimit
protected

Definition at line 22 of file SCR_ListViewComponent.c.

◆ m_bCreateList

bool SCR_ListViewComponent::m_bCreateList = false
protected

Definition at line 59 of file SCR_ListViewComponent.c.

◆ m_bIscrollActive

bool SCR_ListViewComponent::m_bIscrollActive
protected

Definition at line 56 of file SCR_ListViewComponent.c.

◆ m_fAnimationAppearTime

float SCR_ListViewComponent::m_fAnimationAppearTime
protected

Definition at line 34 of file SCR_ListViewComponent.c.

◆ m_fEntryWidgetHeight

float SCR_ListViewComponent::m_fEntryWidgetHeight
protected

Definition at line 52 of file SCR_ListViewComponent.c.

◆ m_fScrollMove

float SCR_ListViewComponent::m_fScrollMove
protected

Definition at line 31 of file SCR_ListViewComponent.c.

◆ m_fScrollPosition

float SCR_ListViewComponent::m_fScrollPosition = 0
protected

Definition at line 49 of file SCR_ListViewComponent.c.

◆ m_iEntriesBottomPadding

int SCR_ListViewComponent::m_iEntriesBottomPadding
protected

Definition at line 28 of file SCR_ListViewComponent.c.

◆ m_iEntriesCount

float SCR_ListViewComponent::m_iEntriesCount = 0
protected

Definition at line 51 of file SCR_ListViewComponent.c.

◆ m_iEntriesLimit

int SCR_ListViewComponent::m_iEntriesLimit
protected

Definition at line 25 of file SCR_ListViewComponent.c.

◆ m_iFocusedEntryId

int SCR_ListViewComponent::m_iFocusedEntryId = 0
protected

Definition at line 54 of file SCR_ListViewComponent.c.

◆ m_iLastScrollPosition

float SCR_ListViewComponent::m_iLastScrollPosition = 0
protected

Definition at line 50 of file SCR_ListViewComponent.c.

◆ m_Scrollbar

SCR_ScrollBarComponent SCR_ListViewComponent::m_Scrollbar
protected

Definition at line 46 of file SCR_ListViewComponent.c.

◆ m_sEntry

ResourceName SCR_ListViewComponent::m_sEntry
protected

Definition at line 15 of file SCR_ListViewComponent.c.

◆ m_sScrollAction

string SCR_ListViewComponent::m_sScrollAction
protected

Definition at line 18 of file SCR_ListViewComponent.c.

◆ m_wFocusRest

Widget SCR_ListViewComponent::m_wFocusRest
protected

Definition at line 40 of file SCR_ListViewComponent.c.

◆ m_wRoot

Widget SCR_ListViewComponent::m_wRoot
protected

Definition at line 37 of file SCR_ListViewComponent.c.

◆ m_wSizeScrollOffset

SizeLayoutWidget SCR_ListViewComponent::m_wSizeScrollOffset
protected

Definition at line 39 of file SCR_ListViewComponent.c.

◆ m_wVerticalList

Widget SCR_ListViewComponent::m_wVerticalList
protected

Definition at line 38 of file SCR_ListViewComponent.c.


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