Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
serverbrowsertab.c File Reference

Go to the source code of this file.

Enumerations

enum  TabType {
  OFFICIAL, COMMUNITY, LAN, FAVORITE,
  NONE
}
 

Functions

void ServerBrowserTab (Widget parent, ServerBrowserMenuNew menu, TabType type)
 
protected void Construct (Widget parent, ServerBrowserMenuNew menu, TabType type)
 
void ~ServerBrowserTab ()
 
ServerBrowserMenuNew GetRootMenu ()
 
bool GetIsServerLoadingFinished ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void OnDLCChange (EDLCId dlcId)
 
void ScrollToEntry (ServerBrowserEntry entry)
 
void Focus ()
 
void OnFilterFocusLost (Widget w)
 
void OnFilterFocus (Widget w)
 
void OnFilterChanged ()
 
void ServerListFocus (bool focus, bool favorite)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
bool IsFocusable (Widget w)
 
void SetPanelFocus ()
 
void PressA ()
 
void PressX ()
 
void PressY ()
 
void PressSholderLeft ()
 
void PressSholderRight ()
 
void Left ()
 
void LeftHold ()
 
void LeftRelease ()
 
void Right ()
 
void RightHold ()
 
void RightRelease ()
 
void Up ()
 
void Down ()
 
void OnLoadServerModsAsync (string server_id, array< string > mods)
 
void GetNextEntry ()
 
void GetPrevEntry ()
 
void GetNextFilter ()
 
void GetPrevFilter ()
 
void SetCurrentPage (int page_num)
 
int GetCurrentPage ()
 
bool IsNotInitialized ()
 
void ResetFilters ()
 
void ApplyFilters ()
 
void AddFavoritesToFilter (ref GetServersInput input)
 
void RefreshList ()
 
void GetNextPage ()
 
void SelectServer (ServerBrowserEntry server)
 
void OnLoadServersAsyncPC (ref GetServersResult result_list, EBiosError error, string response)
 
void OnLoadServersAsyncConsole (GetServersResult result_list, EBiosError error, string response)
 
void SetSort (ESortType type, ESortOrder order)
 
bool IsPingInRange (int ping, string max_ping)
 
bool PassFilter (GetServersResultRow result)
 
protected void LoadExtraEntries (int index)
 
void Connect (ServerBrowserEntry server)
 
string GetSortOption ()
 
int AddSorted (GetServersResultRow entry)
 
void Unfavorite (string uid)
 
TabType GetTabType ()
 
void ButtonEnable (Widget w)
 
void ButtonDisable (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ColorDisable (Widget w)
 

Variables

enum TabType BROWSER
 
enum TabType FILTERS
 
enum TabType m_Root
 
protected ScrollWidget m_ServerListScroller
 
protected SpacerBaseWidget m_ServerList
 
protected ref map< string, ref ServerBrowserEntry > m_EntryWidgets
 
protected ref map< string, ref array< string > > m_EntryMods
 
protected ref ServerBrowserFilterContainer m_Filters
 
protected ServerBrowserMenuNew m_Menu
 
protected ServerBrowserEntry m_SelectedServer
 
protected TabType m_TabType
 
protected ESortType m_SortType
 
protected ESortOrder m_SortOrder
 
protected SelectedPanel m_SelectedPanel
 
protected bool m_Initialized
 
protected bool m_BegunLoading
 
protected bool m_Loading
 
protected int m_TotalServers
 
protected int m_TotalLoadedServers
 
protected int m_LastLoadedPage
 
protected int m_TotalPages
 
protected bool m_LoadingFinished
 
protected int m_CurrentPageNum
 
protected string m_CurrentSelectedServer
 
protected int m_CurrentLoadedPage
 
protected ref GetServersInput m_CurrentFilterInput
 
protected Widget m_ApplyFilter
 
protected Widget m_RefreshList
 
protected Widget m_ResetFilters
 
protected Widget m_FiltersChanged
 
protected Widget m_HostSort
 
protected Widget m_TimeSort
 
protected Widget m_PopulationSort
 
protected Widget m_SlotsSort
 
protected Widget m_PingSort
 
protected Widget m_FilterSearchText
 
protected Widget m_FilterSearchTextBox
 
protected TextWidget m_LoadingText
 
protected ButtonWidget m_BtnPagePrev
 
protected ButtonWidget m_BtnPageNext
 
protected ref map< ESortType, ref array< ref GetServersResultRow > > m_EntriesSorted
 
protected ref map< ESortType, ESortOrderm_SortInverted
 
protected ref set< stringm_OnlineFavServers
 

Enumeration Type Documentation

◆ TabType

enum TabType
Enumerator
OFFICIAL 
COMMUNITY 
LAN 
FAVORITE 
NONE 

Definition at line 1 of file serverbrowsertab.c.

Function Documentation

◆ AddFavoritesToFilter()

void AddFavoritesToFilter ( ref GetServersInput  input)

Definition at line 402 of file serverbrowsertab.c.

◆ AddSorted()

int AddSorted ( GetServersResultRow  entry)

Definition at line 587 of file serverbrowsertab.c.

◆ ApplyFilters()

void ApplyFilters ( )

Definition at line 397 of file serverbrowsertab.c.

◆ ButtonDisable()

void ButtonDisable ( Widget  w)

Definition at line 612 of file serverbrowsertab.c.

◆ ButtonEnable()

void ButtonEnable ( Widget  w)

Definition at line 606 of file serverbrowsertab.c.

◆ ColorDisable()

void ColorDisable ( Widget  w)

Definition at line 720 of file serverbrowsertab.c.

◆ ColorHighlight()

void ColorHighlight ( Widget  w)

Definition at line 619 of file serverbrowsertab.c.

◆ ColorNormal()

void ColorNormal ( Widget  w)

Definition at line 668 of file serverbrowsertab.c.

◆ Connect()

void Connect ( ServerBrowserEntry  server)

Definition at line 547 of file serverbrowsertab.c.

◆ Construct()

protected void Construct ( Widget  parent,
ServerBrowserMenuNew  menu,
TabType  type 
)

Definition at line 78 of file serverbrowsertab.c.

◆ Down()

void Down ( )

◆ Focus()

void Focus ( )

Definition at line 181 of file serverbrowsertab.c.

◆ GetCurrentPage()

int GetCurrentPage ( )

Definition at line 382 of file serverbrowsertab.c.

◆ GetIsServerLoadingFinished()

bool GetIsServerLoadingFinished ( )

Definition at line 103 of file serverbrowsertab.c.

◆ GetNextEntry()

void GetNextEntry ( )

Definition at line 326 of file serverbrowsertab.c.

◆ GetNextFilter()

void GetNextFilter ( )

Definition at line 367 of file serverbrowsertab.c.

◆ GetNextPage()

void GetNextPage ( )

Definition at line 460 of file serverbrowsertab.c.

◆ GetPrevEntry()

void GetPrevEntry ( )

Definition at line 344 of file serverbrowsertab.c.

◆ GetPrevFilter()

void GetPrevFilter ( )

Definition at line 372 of file serverbrowsertab.c.

◆ GetRootMenu()

ServerBrowserMenuNew GetRootMenu ( )

Definition at line 98 of file serverbrowsertab.c.

◆ GetSortOption()

string GetSortOption ( )

Definition at line 559 of file serverbrowsertab.c.

◆ GetTabType()

TabType GetTabType ( )

Definition at line 601 of file serverbrowsertab.c.

◆ IsFocusable()

bool IsFocusable ( Widget  w)

Definition at line 284 of file serverbrowsertab.c.

◆ IsNotInitialized()

bool IsNotInitialized ( )

Definition at line 387 of file serverbrowsertab.c.

◆ IsPingInRange()

bool IsPingInRange ( int  ping,
string  max_ping 
)

Definition at line 499 of file serverbrowsertab.c.

◆ Left()

void Left ( )

◆ LeftHold()

void LeftHold ( )

◆ LeftRelease()

void LeftRelease ( )

◆ LoadExtraEntries()

protected void LoadExtraEntries ( int  index)

Definition at line 542 of file serverbrowsertab.c.

◆ OnClick()

override bool OnClick ( Widget  w,
int  x,
int  y,
int  button 
)

Definition at line 108 of file serverbrowsertab.c.

◆ OnDLCChange()

void OnDLCChange ( EDLCId  dlcId)

Definition at line 113 of file serverbrowsertab.c.

◆ OnFilterChanged()

void OnFilterChanged ( )

Definition at line 202 of file serverbrowsertab.c.

◆ OnFilterFocus()

void OnFilterFocus ( Widget  w)

Definition at line 196 of file serverbrowsertab.c.

◆ OnFilterFocusLost()

void OnFilterFocusLost ( Widget  w)

Definition at line 190 of file serverbrowsertab.c.

◆ OnFocus()

override bool OnFocus ( Widget  w,
int  x,
int  y 
)

Definition at line 217 of file serverbrowsertab.c.

◆ OnFocusLost()

override bool OnFocusLost ( Widget  w,
int  x,
int  y 
)

Definition at line 235 of file serverbrowsertab.c.

◆ OnLoadServerModsAsync()

void OnLoadServerModsAsync ( string  server_id,
array< string mods 
)

Definition at line 321 of file serverbrowsertab.c.

◆ OnLoadServersAsyncConsole()

void OnLoadServersAsyncConsole ( GetServersResult  result_list,
EBiosError  error,
string  response 
)

Definition at line 488 of file serverbrowsertab.c.

◆ OnLoadServersAsyncPC()

void OnLoadServersAsyncPC ( ref GetServersResult  result_list,
EBiosError  error,
string  response 
)

Definition at line 483 of file serverbrowsertab.c.

◆ OnMouseEnter()

override bool OnMouseEnter ( Widget  w,
int  x,
int  y 
)

Definition at line 253 of file serverbrowsertab.c.

◆ OnMouseLeave()

override bool OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)

Definition at line 268 of file serverbrowsertab.c.

◆ PassFilter()

bool PassFilter ( GetServersResultRow  result)

Definition at line 508 of file serverbrowsertab.c.

◆ PressA()

void PressA ( )

Definition at line 298 of file serverbrowsertab.c.

◆ PressSholderLeft()

void PressSholderLeft ( )

◆ PressSholderRight()

void PressSholderRight ( )

◆ PressX()

void PressX ( )

Definition at line 303 of file serverbrowsertab.c.

◆ PressY()

void PressY ( )

◆ RefreshList()

void RefreshList ( )

Definition at line 407 of file serverbrowsertab.c.

◆ ResetFilters()

void ResetFilters ( )

Definition at line 392 of file serverbrowsertab.c.

◆ Right()

void Right ( )

◆ RightHold()

void RightHold ( )

◆ RightRelease()

void RightRelease ( )

◆ ScrollToEntry()

void ScrollToEntry ( ServerBrowserEntry  entry)

Definition at line 132 of file serverbrowsertab.c.

◆ SelectServer()

void SelectServer ( ServerBrowserEntry  server)

Definition at line 469 of file serverbrowsertab.c.

◆ ServerBrowserTab()

void ServerBrowserTab ( Widget  parent,
ServerBrowserMenuNew  menu,
TabType  type 
)

Definition at line 71 of file serverbrowsertab.c.

◆ ServerListFocus()

void ServerListFocus ( bool  focus,
bool  favorite 
)

Definition at line 207 of file serverbrowsertab.c.

◆ SetCurrentPage()

void SetCurrentPage ( int  page_num)

Definition at line 377 of file serverbrowsertab.c.

◆ SetPanelFocus()

void SetPanelFocus ( )

Definition at line 293 of file serverbrowsertab.c.

◆ SetSort()

void SetSort ( ESortType  type,
ESortOrder  order 
)

Definition at line 493 of file serverbrowsertab.c.

◆ Unfavorite()

void Unfavorite ( string  uid)

Definition at line 592 of file serverbrowsertab.c.

◆ Up()

void Up ( )

◆ ~ServerBrowserTab()

void ~ServerBrowserTab ( )

Definition at line 86 of file serverbrowsertab.c.

Variable Documentation

◆ BROWSER

enum TabType BROWSER

◆ FILTERS

enum TabType FILTERS

◆ m_ApplyFilter

protected Widget m_ApplyFilter

Definition at line 52 of file serverbrowsertab.c.

◆ m_BegunLoading

protected bool m_BegunLoading

Definition at line 39 of file serverbrowsertab.c.

◆ m_BtnPageNext

protected ButtonWidget m_BtnPageNext

Definition at line 65 of file serverbrowsertab.c.

◆ m_BtnPagePrev

protected ButtonWidget m_BtnPagePrev

Definition at line 64 of file serverbrowsertab.c.

◆ m_CurrentFilterInput

protected ref GetServersInput m_CurrentFilterInput

Definition at line 50 of file serverbrowsertab.c.

◆ m_CurrentLoadedPage

protected int m_CurrentLoadedPage

Definition at line 49 of file serverbrowsertab.c.

◆ m_CurrentPageNum

protected int m_CurrentPageNum

Definition at line 46 of file serverbrowsertab.c.

◆ m_CurrentSelectedServer

protected string m_CurrentSelectedServer

Definition at line 48 of file serverbrowsertab.c.

◆ m_EntriesSorted

protected ref map<ESortType, ref array<ref GetServersResultRow> > m_EntriesSorted

Definition at line 67 of file serverbrowsertab.c.

◆ m_EntryMods

protected ref map<string, ref array<string> > m_EntryMods

Definition at line 26 of file serverbrowsertab.c.

◆ m_EntryWidgets

protected ref map<string, ref ServerBrowserEntry> m_EntryWidgets

Definition at line 25 of file serverbrowsertab.c.

◆ m_Filters

protected ref ServerBrowserFilterContainer m_Filters

Definition at line 28 of file serverbrowsertab.c.

◆ m_FiltersChanged

protected Widget m_FiltersChanged

Definition at line 55 of file serverbrowsertab.c.

◆ m_FilterSearchText

protected Widget m_FilterSearchText

Definition at line 61 of file serverbrowsertab.c.

◆ m_FilterSearchTextBox

protected Widget m_FilterSearchTextBox

Definition at line 62 of file serverbrowsertab.c.

◆ m_HostSort

protected Widget m_HostSort

Definition at line 56 of file serverbrowsertab.c.

◆ m_Initialized

protected bool m_Initialized

Definition at line 38 of file serverbrowsertab.c.

◆ m_LastLoadedPage

protected int m_LastLoadedPage

Definition at line 43 of file serverbrowsertab.c.

◆ m_Loading

protected bool m_Loading

Definition at line 40 of file serverbrowsertab.c.

◆ m_LoadingFinished

protected bool m_LoadingFinished

Definition at line 45 of file serverbrowsertab.c.

◆ m_LoadingText

protected TextWidget m_LoadingText

Definition at line 63 of file serverbrowsertab.c.

◆ m_Menu

protected ServerBrowserMenuNew m_Menu

Definition at line 30 of file serverbrowsertab.c.

◆ m_OnlineFavServers

protected ref set<string> m_OnlineFavServers

Definition at line 69 of file serverbrowsertab.c.

◆ m_PingSort

protected Widget m_PingSort

Definition at line 60 of file serverbrowsertab.c.

◆ m_PopulationSort

protected Widget m_PopulationSort

Definition at line 58 of file serverbrowsertab.c.

◆ m_RefreshList

protected Widget m_RefreshList

Definition at line 53 of file serverbrowsertab.c.

◆ m_ResetFilters

protected Widget m_ResetFilters

Definition at line 54 of file serverbrowsertab.c.

◆ m_Root

enum TabType m_Root

◆ m_SelectedPanel

protected SelectedPanel m_SelectedPanel

Definition at line 37 of file serverbrowsertab.c.

◆ m_SelectedServer

protected ServerBrowserEntry m_SelectedServer

Definition at line 31 of file serverbrowsertab.c.

◆ m_ServerList

protected SpacerBaseWidget m_ServerList

Definition at line 21 of file serverbrowsertab.c.

◆ m_ServerListScroller

protected ScrollWidget m_ServerListScroller

Definition at line 20 of file serverbrowsertab.c.

◆ m_SlotsSort

protected Widget m_SlotsSort

Definition at line 59 of file serverbrowsertab.c.

◆ m_SortInverted

protected ref map<ESortType, ESortOrder> m_SortInverted

Definition at line 68 of file serverbrowsertab.c.

◆ m_SortOrder

protected ESortOrder m_SortOrder

Definition at line 35 of file serverbrowsertab.c.

◆ m_SortType

protected ESortType m_SortType

Definition at line 34 of file serverbrowsertab.c.

◆ m_TabType

protected TabType m_TabType

Definition at line 33 of file serverbrowsertab.c.

◆ m_TimeSort

protected Widget m_TimeSort

Definition at line 57 of file serverbrowsertab.c.

◆ m_TotalLoadedServers

protected int m_TotalLoadedServers

Definition at line 42 of file serverbrowsertab.c.

◆ m_TotalPages

protected int m_TotalPages

Definition at line 44 of file serverbrowsertab.c.

◆ m_TotalServers

protected int m_TotalServers

Definition at line 41 of file serverbrowsertab.c.