Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SCR_ButtonListViewComponent Interface Reference
Inheritance diagram for SCR_ButtonListViewComponent:
[legend]

Public Member Functions

override void HandlerAttached (Widget w)
 
array< SCR_ButtonComponentGetButtons ()
 
- Public Member Functions inherited from SCR_ListViewComponent
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 SetScrollbar (SCR_ScrollBarComponent scrollbar)
 
void ActivateScrolling (bool activate)
 Activate scrolling with input action.
 
void UpdateScrollbar ()
 
array< Widget > GetEntryWidgets ()
 
float ScrollableEntriesCount ()
 Return how many entries can be scrolled.
 
Widget FirstAvailableEntry ()
 Return first that is visible and enabled.
 

Public Attributes

ref ScriptInvoker m_OnEntryFocus = new ScriptInvoker
 
- Public Attributes inherited from SCR_ListViewComponent
Widget m_wRoot
 

Protected Member Functions

override void SetupEntryBehavior (Widget entry)
 Setup server entry component behavior

 
void OnEntryFocus (Widget w)
 Call this when entry in list is focused.
 
- Protected Member Functions inherited from SCR_ListViewComponent
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)
 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

 
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 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 ()
 Scrolling with up/down buttons outside of list view Focus is focus rest widget

 
void OnMenuUp ()
 Check stepping over limit up.
 

Protected Attributes

ref array< SCR_ButtonComponentm_aButtons = new array<SCR_ButtonComponent>
 
- Protected Attributes inherited from SCR_ListViewComponent
ResourceName m_sEntry
 
string m_sScrollAction
 
bool m_bAutomaticEntriesLimit
 
int m_iEntriesLimit
 
int m_iEntriesBottomPadding
 
float m_fScrollMove
 
float m_fAnimationAppearTime
 
Widget m_wVerticalList
 
SizeLayoutWidget m_wSizeScrollOffset
 
Widget m_wFocusRest
 
ref array< Widget > m_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
 

Additional Inherited Members

- Static Public Attributes inherited from SCR_ListViewComponent
const string WIDGET_VERTICAL_LIST = "VList"
 
const string WIDGET_SIZE_SCROLL_OFFSET = "SizeScrollOffset"
 
const string WIDGET_FOCUS_REST = "BtnFocusRest"
 
const int ENTRY_FIRST = 0
 

Member Function Documentation

◆ GetButtons()

array< SCR_ButtonComponent > SCR_ButtonListViewComponent.GetButtons ( )

◆ HandlerAttached()

override void SCR_ButtonListViewComponent.HandlerAttached ( Widget  w)

Implements SCR_ListViewComponent.

Implemented in SCR_ServerListComponent.

◆ OnEntryFocus()

void SCR_ButtonListViewComponent.OnEntryFocus ( Widget  w)
protected

Call this when entry in list is focused.

◆ SetupEntryBehavior()

override void SCR_ButtonListViewComponent.SetupEntryBehavior ( Widget  entry)
protected

Setup server entry component behavior

Implements SCR_ListViewComponent.

Implemented in SCR_ServerListComponent.

Member Data Documentation

◆ m_aButtons

ref array<SCR_ButtonComponent> SCR_ButtonListViewComponent.m_aButtons = new array<SCR_ButtonComponent>
protected

◆ m_OnEntryFocus

ref ScriptInvoker SCR_ButtonListViewComponent.m_OnEntryFocus = new ScriptInvoker

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