Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
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)
 
void Construct (Widget parent, ServerBrowserMenuNew menu, TabType type)
 
void ~ServerBrowserTab ()
 
ServerBrowserMenuNew GetRootMenu ()
 
bool GetIsServerLoadingFinished ()
 
void OnDLCChange (EDLCId dlcId)
 
void ScrollToEntry (ServerBrowserEntry entry)
 
void Focus ()
 
void OnFilterFocusLost (Widget w)
 
void OnFilterFocus (Widget w)
 
void OnDetailsFocusLost (Widget w)
 
void OnDetailsFocus (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 OnPressShoulder ()
 
void Left ()
 
void LeftHold ()
 
void LeftRelease ()
 
void Right ()
 
void RightHold ()
 
void RightRelease ()
 
void Up ()
 
void Down ()
 
void PressThumbRight ()
 
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 (GetServersInput input)
 
void RefreshList ()
 
void GetNextPage ()
 
void SelectServer (ServerBrowserEntry server)
 
void OnLoadServersAsyncPC (GetServersResult result_list, EBiosError error, string response)
 
void OnLoadServersAsyncConsole (GetServersResult result_list, EBiosError error, string response)
 
void UpdateServerList ()
 
void SetSort (ESortType type, ESortOrder order)
 
bool IsPingInRange (int ping, string max_ping)
 
bool PassFilter (GetServersResultRow result)
 
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)
 
void SwitchRightAreaView ()
 
void SwitchToDetails (bool focus=true)
 
void SwitchToFilters (bool focus=true)
 
void SetServerDetails (GetServersResultRow server_info, bool online)
 
void ShowServerDetails ()
 
Widget GetFilterRoot ()
 
Widget GetDetailsRoot ()
 
ServerBrowserEntry GetSelectedServer ()
 

Variables

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

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 ( GetServersInput input)
protected

Definition at line 433 of file serverbrowsertab.c.

◆ AddSorted()

int AddSorted ( GetServersResultRow entry)
protected

Definition at line 600 of file serverbrowsertab.c.

◆ ApplyFilters()

void ApplyFilters ( )
protected

◆ ButtonDisable()

void ButtonDisable ( Widget w)
protected

Definition at line 625 of file serverbrowsertab.c.

◆ ButtonEnable()

void ButtonEnable ( Widget w)
protected

Definition at line 619 of file serverbrowsertab.c.

◆ ColorDisable()

void ColorDisable ( Widget w)
protected

Definition at line 733 of file serverbrowsertab.c.

◆ ColorHighlight()

void ColorHighlight ( Widget w)
protected

Definition at line 632 of file serverbrowsertab.c.

◆ ColorNormal()

void ColorNormal ( Widget w)
protected

Definition at line 681 of file serverbrowsertab.c.

◆ Connect()

void Connect ( ServerBrowserEntry server)
protected

Definition at line 560 of file serverbrowsertab.c.

◆ Construct()

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

Definition at line 96 of file serverbrowsertab.c.

◆ Down()

void Down ( )
protected

◆ Focus()

void Focus ( )
protected

Definition at line 194 of file serverbrowsertab.c.

◆ GetCurrentPage()

int GetCurrentPage ( )
protected

Definition at line 416 of file serverbrowsertab.c.

◆ GetDetailsRoot()

Widget GetDetailsRoot ( )
protected

Definition at line 800 of file serverbrowsertab.c.

◆ GetFilterRoot()

Widget GetFilterRoot ( )
protected

Definition at line 795 of file serverbrowsertab.c.

◆ GetIsServerLoadingFinished()

bool GetIsServerLoadingFinished ( )
protected

Definition at line 121 of file serverbrowsertab.c.

◆ GetNextEntry()

void GetNextEntry ( )
protected

Definition at line 364 of file serverbrowsertab.c.

◆ GetNextFilter()

void GetNextFilter ( )
protected

◆ GetNextPage()

void GetNextPage ( )
protected

Definition at line 493 of file serverbrowsertab.c.

◆ GetPrevEntry()

void GetPrevEntry ( )
protected

Definition at line 382 of file serverbrowsertab.c.

◆ GetPrevFilter()

void GetPrevFilter ( )
protected

◆ GetRootMenu()

ServerBrowserMenuNew GetRootMenu ( )
protected

Definition at line 116 of file serverbrowsertab.c.

◆ GetSelectedServer()

ServerBrowserEntry GetSelectedServer ( )
protected

Definition at line 805 of file serverbrowsertab.c.

◆ GetSortOption()

string GetSortOption ( )
protected

Definition at line 572 of file serverbrowsertab.c.

◆ GetTabType()

TabType GetTabType ( )
protected

Definition at line 614 of file serverbrowsertab.c.

◆ IsFocusable()

bool IsFocusable ( Widget w)
protected

Definition at line 325 of file serverbrowsertab.c.

◆ IsNotInitialized()

bool IsNotInitialized ( )
protected

Definition at line 421 of file serverbrowsertab.c.

◆ IsPingInRange()

bool IsPingInRange ( int ping,
string max_ping )
protected

Definition at line 530 of file serverbrowsertab.c.

◆ Left()

void Left ( )
protected

◆ LeftHold()

void LeftHold ( )
protected

◆ LeftRelease()

void LeftRelease ( )
protected

◆ LoadExtraEntries()

void LoadExtraEntries ( int index)
protected

◆ OnDetailsFocus()

void OnDetailsFocus ( Widget w)
protected

Definition at line 223 of file serverbrowsertab.c.

◆ OnDetailsFocusLost()

void OnDetailsFocusLost ( Widget w)
protected

Definition at line 217 of file serverbrowsertab.c.

◆ OnDLCChange()

void OnDLCChange ( EDLCId dlcId)
protected

Definition at line 126 of file serverbrowsertab.c.

◆ OnFilterChanged()

void OnFilterChanged ( )
protected

◆ OnFilterFocus()

void OnFilterFocus ( Widget w)
protected

Definition at line 211 of file serverbrowsertab.c.

◆ OnFilterFocusLost()

void OnFilterFocusLost ( Widget w)
protected

Definition at line 205 of file serverbrowsertab.c.

◆ OnFocus()

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

Definition at line 239 of file serverbrowsertab.c.

◆ OnFocusLost()

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

Definition at line 276 of file serverbrowsertab.c.

◆ OnLoadServerModsAsync()

void OnLoadServerModsAsync ( string server_id,
array< string > mods )
protected

Definition at line 359 of file serverbrowsertab.c.

◆ OnLoadServersAsyncConsole()

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

◆ OnLoadServersAsyncPC()

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

◆ OnMouseEnter()

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

Definition at line 294 of file serverbrowsertab.c.

◆ OnMouseLeave()

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

WTF?

Definition at line 309 of file serverbrowsertab.c.

◆ OnPressShoulder()

void OnPressShoulder ( )
protected

◆ PassFilter()

bool PassFilter ( GetServersResultRow result)
protected

Definition at line 539 of file serverbrowsertab.c.

◆ PressA()

void PressA ( )
protected

◆ PressSholderLeft()

void PressSholderLeft ( )
protected

◆ PressSholderRight()

void PressSholderRight ( )
protected

◆ PressThumbRight()

void PressThumbRight ( )
protected

◆ PressX()

void PressX ( )
protected

Definition at line 339 of file serverbrowsertab.c.

◆ PressY()

void PressY ( )
protected

◆ RefreshList()

void RefreshList ( )
protected

Definition at line 438 of file serverbrowsertab.c.

◆ ResetFilters()

void ResetFilters ( )
protected

Definition at line 426 of file serverbrowsertab.c.

◆ Right()

void Right ( )
protected

◆ RightHold()

void RightHold ( )
protected

◆ RightRelease()

void RightRelease ( )
protected

◆ ScrollToEntry()

void ScrollToEntry ( ServerBrowserEntry entry)
protected

Definition at line 145 of file serverbrowsertab.c.

◆ SelectServer()

void SelectServer ( ServerBrowserEntry server)
protected

Definition at line 502 of file serverbrowsertab.c.

◆ ServerBrowserTab()

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

Definition at line 89 of file serverbrowsertab.c.

◆ ServerListFocus()

void ServerListFocus ( bool focus,
bool favorite )
protected

Definition at line 231 of file serverbrowsertab.c.

◆ SetCurrentPage()

void SetCurrentPage ( int page_num)
protected

Definition at line 411 of file serverbrowsertab.c.

◆ SetPanelFocus()

void SetPanelFocus ( )
protected

◆ SetServerDetails()

void SetServerDetails ( GetServersResultRow server_info,
bool online )
protected

Definition at line 782 of file serverbrowsertab.c.

◆ SetSort()

void SetSort ( ESortType type,
ESortOrder order )
protected

Definition at line 524 of file serverbrowsertab.c.

◆ ShowServerDetails()

void ShowServerDetails ( )
protected

Definition at line 787 of file serverbrowsertab.c.

◆ SwitchRightAreaView()

void SwitchRightAreaView ( )
protected

Definition at line 749 of file serverbrowsertab.c.

◆ SwitchToDetails()

void SwitchToDetails ( bool focus = true)
protected

◆ SwitchToFilters()

void SwitchToFilters ( bool focus = true)
protected

◆ Unfavorite()

void Unfavorite ( string uid)
protected

Definition at line 605 of file serverbrowsertab.c.

◆ Up()

void Up ( )
protected

◆ UpdateServerList()

void UpdateServerList ( )
protected

◆ ~ServerBrowserTab()

void ~ServerBrowserTab ( )
protected

Definition at line 104 of file serverbrowsertab.c.

Variable Documentation

◆ BROWSER

enum TabType BROWSER

◆ FILTERS

enum TabType FILTERS

◆ m_ApplyFilter

Widget m_ApplyFilter
protected

Definition at line 59 of file serverbrowsertab.c.

◆ m_BegunLoading

bool m_BegunLoading
protected

Definition at line 46 of file serverbrowsertab.c.

◆ m_BtnPageNext

ButtonWidget m_BtnPageNext
protected

Definition at line 73 of file serverbrowsertab.c.

◆ m_BtnPagePrev

ButtonWidget m_BtnPagePrev
protected

Definition at line 72 of file serverbrowsertab.c.

◆ m_BtnShowDetails

ButtonWidget m_BtnShowDetails
protected

Definition at line 82 of file serverbrowsertab.c.

◆ m_BtnShowFilters

ButtonWidget m_BtnShowFilters
protected

Definition at line 85 of file serverbrowsertab.c.

◆ m_CurrentFilterInput

ref GetServersInput m_CurrentFilterInput
protected

Definition at line 57 of file serverbrowsertab.c.

◆ m_CurrentLoadedPage

int m_CurrentLoadedPage
protected

Definition at line 56 of file serverbrowsertab.c.

◆ m_CurrentPageNum

int m_CurrentPageNum
protected

Definition at line 53 of file serverbrowsertab.c.

◆ m_CurrentSelectedServer

string m_CurrentSelectedServer
protected

Definition at line 55 of file serverbrowsertab.c.

◆ m_Details

ref ServerBrowserDetailsContainer m_Details
protected

Definition at line 87 of file serverbrowsertab.c.

◆ m_DetailsRoot

Widget m_DetailsRoot
protected

Definition at line 84 of file serverbrowsertab.c.

◆ m_EntriesSorted

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

Definition at line 75 of file serverbrowsertab.c.

◆ m_EntryMods

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

Definition at line 33 of file serverbrowsertab.c.

◆ m_EntryWidgets

ref map<string, ref ServerBrowserEntry> m_EntryWidgets
protected

Definition at line 32 of file serverbrowsertab.c.

◆ m_FilterContent

Widget m_FilterContent
protected

Definition at line 81 of file serverbrowsertab.c.

◆ m_FilterRoot

Widget m_FilterRoot
protected

Definition at line 80 of file serverbrowsertab.c.

◆ m_Filters

ref ServerBrowserFilterContainer m_Filters
protected

Definition at line 35 of file serverbrowsertab.c.

◆ m_FiltersChanged

Widget m_FiltersChanged
protected

Definition at line 62 of file serverbrowsertab.c.

◆ m_FilterSearchText

Widget m_FilterSearchText
protected

Definition at line 69 of file serverbrowsertab.c.

◆ m_FilterSearchTextBox

Widget m_FilterSearchTextBox
protected

Definition at line 70 of file serverbrowsertab.c.

◆ m_HostSort

Widget m_HostSort
protected

Definition at line 63 of file serverbrowsertab.c.

◆ m_Initialized

bool m_Initialized
protected

Definition at line 45 of file serverbrowsertab.c.

◆ m_LastLoadedPage

int m_LastLoadedPage
protected

Definition at line 50 of file serverbrowsertab.c.

◆ m_Loading

bool m_Loading
protected

Definition at line 47 of file serverbrowsertab.c.

◆ m_LoadingFinished

bool m_LoadingFinished
protected

Definition at line 52 of file serverbrowsertab.c.

◆ m_LoadingText

TextWidget m_LoadingText
protected

Definition at line 71 of file serverbrowsertab.c.

◆ m_MapSort

Widget m_MapSort
protected

Definition at line 68 of file serverbrowsertab.c.

◆ m_Menu

ServerBrowserMenuNew m_Menu
protected

Definition at line 37 of file serverbrowsertab.c.

◆ m_OnlineFavServers

ref set<string> m_OnlineFavServers
protected

Definition at line 77 of file serverbrowsertab.c.

◆ m_PingSort

Widget m_PingSort
protected

Definition at line 67 of file serverbrowsertab.c.

◆ m_PopulationSort

Widget m_PopulationSort
protected

Definition at line 65 of file serverbrowsertab.c.

◆ m_RefreshList

Widget m_RefreshList
protected

Definition at line 60 of file serverbrowsertab.c.

◆ m_ResetFilters

Widget m_ResetFilters
protected

Definition at line 61 of file serverbrowsertab.c.

◆ m_RightAreaHeaderText

TextWidget m_RightAreaHeaderText
protected

Definition at line 79 of file serverbrowsertab.c.

◆ m_Root

enum TabType m_Root

◆ m_SelectedPanel

SelectedPanel m_SelectedPanel
protected

Definition at line 44 of file serverbrowsertab.c.

◆ m_SelectedServer

ServerBrowserEntry m_SelectedServer
protected

Definition at line 38 of file serverbrowsertab.c.

◆ m_ServerList

SpacerBaseWidget m_ServerList
protected

Definition at line 28 of file serverbrowsertab.c.

◆ m_ServerListScroller

ScrollWidget m_ServerListScroller
protected

Definition at line 27 of file serverbrowsertab.c.

◆ m_SlotsSort

Widget m_SlotsSort
protected

Definition at line 66 of file serverbrowsertab.c.

◆ m_SortInverted

ref map<ESortType, ESortOrder> m_SortInverted
protected

Definition at line 76 of file serverbrowsertab.c.

◆ m_SortOrder

ESortOrder m_SortOrder
protected

Definition at line 42 of file serverbrowsertab.c.

◆ m_SortType

ESortType m_SortType
protected

Definition at line 41 of file serverbrowsertab.c.

◆ m_TabType

TabType m_TabType
protected

Definition at line 40 of file serverbrowsertab.c.

◆ m_TimeSort

Widget m_TimeSort
protected

Definition at line 64 of file serverbrowsertab.c.

◆ m_TotalLoadedServers

int m_TotalLoadedServers
protected

Definition at line 49 of file serverbrowsertab.c.

◆ m_TotalPages

int m_TotalPages
protected

Definition at line 51 of file serverbrowsertab.c.

◆ m_TotalServers

int m_TotalServers
protected

Definition at line 48 of file serverbrowsertab.c.

◆ MENU

enum TabType MENU