96 super.HandlerAttached(w);
125 if (invisibleEntries == 0)
136 Widget focus = workspace.GetFocusedWidget();
186 if (entriesOutOfView == 0)
193 float pos = scrollY / scrollPageRatio;
200 int currentPage =
Math.Floor(pos);
248 float scrollX, scrollY = 0;
249 m_wScroll.GetSliderPos(scrollX, scrollY);
258 Widget workspaceFocused = workspace.GetFocusedWidget();
296 pagesInverted =
false;
319 if (page > maxPages - 1)
356 GetGame().GetWorkspace().SetFocusedWidget(null);
357 GetGame().GetWorkspace().SetFocusedWidget(availableEntry);
426 for (
int i = 0; i < count; i++)
446 if (!
m_sEntry || !parent || !workspace)
518 if (opacityStart != -1)
519 w.SetOpacity(opacityStart);
537 bool show = i < dataCount;
543 bool addOffsets = overflow > 0;
557 Widget focused =
GetGame().GetWorkspace().GetFocusedWidget();
561 if (focusedEntryId == -1)
602 if (entry.IsVisible() && entry.IsEnabled())
ArmaReforgerScripted GetGame()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
ScriptInvokerBase< ScriptInvokerIntMethod > ScriptInvokerInt
SizeLayoutWidget m_wSizeOffsetBottom
SizeLayoutWidget m_wSizeOffsetTop
ScriptInvokerInt GetOnSetPage()
const int ZORDER_OFFSET_BOTTOM
void ShowEntries(int dataCount)
Display right entries with right position by scroll.
void MoveToTop()
Move list scroll to top.
void SetDataEntries(int entriesCount)
override void HandlerAttached(Widget w)
void SetCurrentPageBase(int page)
Base function for updating current page.
void ShowScrollbar(bool show)
Clip scroll bar to hide.
const string WIDGET_FOCUS_REST
void SetupOffsets(int page)
Set sizes of top and bottom offsets.
void SwitchPages(bool invert, float size, int page)
Change order of list to fake endless scrolling.
void UpdateEntries(bool animated=false)
Fill entries with data.
void CreateEntriesWidgetsInPage(Widget parent, int count, out Widget firstEntry, out Widget lastEntry)
Create entries to selected page and assing first and last entries.
float EntriesOutOfView()
How many entries are of view - how many entries can be scrolled.
Widget FocusedWidgetFromEntryList()
Return if and which entry widget is actually focus.
Widget m_wPage1FirstEntry
const string WIDGET_SIZE_OFFSET_TOP
int GetPageEntriesCount()
void OnActionDown()
Call this when down action is activated.
void OpacityAnimation(Widget w, int time, float opacityEnd)
void UpdateScroll()
Update positions of pages and offsets.
const string WIDGET_PAGE0
int CurrentPageFromScrollPos(float scrollY)
Return current page from scroll position.
float m_fAnimationAppearTime
array< Widget > GetEntryWidgets()
Widget FirstAvailableEntry()
Return first that is visible and enabled.
ref array< Widget > m_aEntryWidgets
void AnimateEntryOpacity(Widget w, int delay, float animTime, float opacityEnd, float opacityStart=-1)
Setup opacity animation.
const float SIZE_UNMEASURED
void CreateEntriesWidgets()
Create server entries widget.
void SetCurrentPage(int page)
Set which page should be currently displayed.
const string WIDGET_SIZE_OFFSET_BOTTOM
const float ENTRY_OFFSET_UP
void OnScroll(float scrollY)
Call this position of scroll is changed.
void OnActionUp()
Call this when up action is activated.
const string WIDGET_PAGE1
Widget CreateEntry(Widget parent)
Create entry to given page and setup it's behavior.
const int CHECK_ENTRY_SIZE_DELAY
const string WIDGET_SCROLL_LAYOUT
ScrollLayoutWidget m_wScroll
void SetupEntryBehavior(Widget entry)
void FocusFirstAvailableEntry()
Find first available entry and focus it.
void CheckEntrySize()
Get size of widget entry used in list.
void AccessingHandlers()
Get reference to all needed component for handling.
const string WIDGET_PAGES
void SetIsListFocused(bool focused)
const int ZORDER_OFFSET_TOP
ref ScriptInvokerInt m_OnSetPage
Widget m_wPage0FirstEntry
SCR_FieldOfViewSettings Attribute
WidgetFlags
Widget flags. See enf::Widget::SetFlags().