Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
serverbrowsertab.c File Reference

Go to the source code of this file.

Enumerations

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

Functions

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

Variables

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

Enumeration Type Documentation

◆ TabType

enum TabType
Enumerator
FAVORITE 
OFFICIAL 
COMMUNITY 
LAN 
NONE 

Definition at line 1 of file serverbrowsertab.c.

Function Documentation

◆ ~ServerBrowserTab()

void ~ServerBrowserTab ( )
protected

Definition at line 109 of file serverbrowsertab.c.

References GetGame(), m_Filters, m_Root, OnDLCChange(), and PluginBase::Remove().

◆ AddFavoritesToFilter()

void AddFavoritesToFilter ( GetServersInput input)
protected

◆ AddSorted()

int AddSorted ( GetServersResultRow entry)
protected

Definition at line 619 of file serverbrowsertab.c.

Referenced by ServerBrowserTab::OnLoadServersAsyncPC().

◆ ApplyFilters()

void ApplyFilters ( )
protected

◆ ButtonDisable()

◆ ButtonEnable()

◆ ColorDisable()

void ColorDisable ( Widget w)
protected

Definition at line 758 of file serverbrowsertab.c.

References ColorManager::COLOR_DISABLED_TEXT, and SetFocus().

◆ ColorHighlight()

void ColorHighlight ( Widget w)
protected

Definition at line 657 of file serverbrowsertab.c.

References ARGB().

◆ ColorNormal()

void ColorNormal ( Widget w)
protected

Definition at line 706 of file serverbrowsertab.c.

References ARGB().

◆ Connect()

void Connect ( ServerBrowserEntry server)
protected

Definition at line 579 of file serverbrowsertab.c.

References m_Menu, and m_SelectedServer.

◆ Construct()

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

Definition at line 101 of file serverbrowsertab.c.

References m_EntriesSorted, m_EntryMods, m_LoadingText, m_Root, and m_SortInverted.

◆ Down()

void Down ( )
protected

◆ Focus()

◆ GetCurrentPage()

◆ GetDetailsRoot()

Widget GetDetailsRoot ( )
protected

Definition at line 825 of file serverbrowsertab.c.

References m_DetailsRoot.

◆ GetFilterRoot()

Widget GetFilterRoot ( )
protected

Definition at line 820 of file serverbrowsertab.c.

References m_FilterRoot.

◆ GetIsServerLoadingFinished()

bool GetIsServerLoadingFinished ( )
protected

Definition at line 130 of file serverbrowsertab.c.

References m_LoadingFinished.

◆ GetNextEntry()

void GetNextEntry ( )
protected

Definition at line 383 of file serverbrowsertab.c.

References GetFocus(), and SetFocus().

◆ GetNextFilter()

void GetNextFilter ( )
protected

◆ GetNextPage()

void GetNextPage ( )
protected

◆ GetPrevEntry()

void GetPrevEntry ( )
protected

Definition at line 401 of file serverbrowsertab.c.

References GetFocus(), and SetFocus().

◆ GetPrevFilter()

void GetPrevFilter ( )
protected

◆ GetRootMenu()

ServerBrowserMenuNew GetRootMenu ( )
protected

Definition at line 125 of file serverbrowsertab.c.

References m_Menu.

◆ GetSelectedServer()

ServerBrowserEntry GetSelectedServer ( )
protected

Definition at line 830 of file serverbrowsertab.c.

References m_SelectedServer.

◆ GetSortOption()

string GetSortOption ( )
protected

Definition at line 591 of file serverbrowsertab.c.

References m_SortType.

Referenced by RefreshList().

◆ GetTabType()

◆ IsFocusable()

◆ IsLoadingServers()

bool IsLoadingServers ( )
protected

Definition at line 135 of file serverbrowsertab.c.

References m_Loading.

◆ IsNotInitialized()

bool IsNotInitialized ( )
protected

Definition at line 440 of file serverbrowsertab.c.

References m_Initialized, and m_LoadingFinished.

◆ IsPingInRange()

bool IsPingInRange ( int ping,
string max_ping )
protected

Definition at line 549 of file serverbrowsertab.c.

References string::Length(), string::Substring(), and string::ToInt().

Referenced by PassFilter().

◆ 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 237 of file serverbrowsertab.c.

References m_Menu, and m_SelectedPanel.

◆ OnDetailsFocusLost()

void OnDetailsFocusLost ( Widget w)
protected

Definition at line 231 of file serverbrowsertab.c.

References m_Menu, and m_SelectedPanel.

◆ OnDLCChange()

void OnDLCChange ( EDLCId dlcId)
protected

Definition at line 140 of file serverbrowsertab.c.

References m_EntryWidgets.

Referenced by ~ServerBrowserTab(), and ServerBrowserTab().

◆ OnFilterChanged()

void OnFilterChanged ( )
protected

◆ OnFilterFocus()

void OnFilterFocus ( Widget w)
protected

Definition at line 225 of file serverbrowsertab.c.

References m_Menu, and m_SelectedPanel.

◆ OnFilterFocusLost()

void OnFilterFocusLost ( Widget w)
protected

Definition at line 219 of file serverbrowsertab.c.

References m_Menu, and m_SelectedPanel.

◆ OnFocus()

◆ OnFocusLost()

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

◆ OnLoadServerModsAsync()

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

Definition at line 378 of file serverbrowsertab.c.

References m_EntryMods.

◆ 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

◆ OnMouseLeave()

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

◆ OnPressShoulder()

void OnPressShoulder ( )
protected

◆ PassFilter()

bool PassFilter ( GetServersResultRow result)
protected

◆ PressA()

void PressA ( )
protected

◆ PressSholderLeft()

void PressSholderLeft ( )
protected

◆ PressSholderRight()

void PressSholderRight ( )
protected

◆ PressThumbRight()

void PressThumbRight ( )
protected

◆ PressX()

void PressX ( )
protected

Definition at line 358 of file serverbrowsertab.c.

References m_Menu, and ServerBrowserTab::RefreshList().

◆ PressY()

void PressY ( )
protected

◆ RefreshList()

◆ ResetFilters()

void ResetFilters ( )
protected

Definition at line 445 of file serverbrowsertab.c.

References m_Filters.

Referenced by ServerBrowserTab::OnClick().

◆ Right()

void Right ( )
protected

◆ RightHold()

void RightHold ( )
protected

◆ RightRelease()

void RightRelease ( )
protected

◆ ScrollToEntry()

void ScrollToEntry ( ServerBrowserEntry entry)
protected

Definition at line 159 of file serverbrowsertab.c.

References m_ServerListScroller, x, and y.

Referenced by Focus(), ServerBrowserTab::Focus(), and SelectServer().

◆ SelectServer()

void SelectServer ( ServerBrowserEntry server)
protected

Definition at line 521 of file serverbrowsertab.c.

References m_CurrentSelectedServer, m_Menu, m_SelectedServer, and ScrollToEntry().

◆ ServerBrowserTab()

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

◆ ServerListFocus()

void ServerListFocus ( bool focus,
bool favorite )
protected

Definition at line 245 of file serverbrowsertab.c.

References m_Menu.

◆ SetCurrentPage()

◆ SetPanelFocus()

void SetPanelFocus ( )
protected

◆ SetServerDetails()

void SetServerDetails ( GetServersResultRow server_info,
bool online )
protected

Definition at line 807 of file serverbrowsertab.c.

References m_Details.

◆ SetSort()

void SetSort ( ESortType type,
ESortOrder order )
protected

Definition at line 543 of file serverbrowsertab.c.

References m_SortOrder, and m_SortType.

◆ ShowServerDetails()

void ShowServerDetails ( )
protected

◆ SwitchRightAreaView()

void SwitchRightAreaView ( )
protected

◆ SwitchToDetails()

◆ SwitchToFilters()

◆ Unfavorite()

void Unfavorite ( string uid)
protected

Definition at line 624 of file serverbrowsertab.c.

References m_EntryWidgets, and m_TabType.

◆ Up()

void Up ( )
protected

◆ UpdateServerList()

Variable Documentation

◆ BROWSER

enum TabType BROWSER

◆ FILTERS

enum TabType FILTERS

◆ m_ApplyFilter

◆ m_BegunLoading

bool m_BegunLoading
protected

Definition at line 46 of file serverbrowsertab.c.

Referenced by RefreshList().

◆ m_BtnPageNext

ButtonWidget m_BtnPageNext
protected

◆ m_BtnPagePrev

ButtonWidget m_BtnPagePrev
protected

◆ m_BtnShowDetails

◆ m_BtnShowFilters

◆ m_CurrentFilterInput

◆ m_CurrentLoadedPage

int m_CurrentLoadedPage
protected

Definition at line 56 of file serverbrowsertab.c.

Referenced by RefreshList().

◆ m_CurrentPageNum

int m_CurrentPageNum
protected

◆ m_CurrentSelectedServer

◆ m_Details

ref ServerBrowserDetailsContainer m_Details
protected

◆ m_DetailsRoot

◆ m_EntriesSorted

◆ m_EntryMods

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

◆ m_EntryWidgets

◆ m_FilterContent

Widget m_FilterContent
protected

Definition at line 81 of file serverbrowsertab.c.

Referenced by ServerBrowserTab::Construct().

◆ m_FilterRoot

◆ m_Filters

◆ m_FiltersChanged

Widget m_FiltersChanged
protected

Definition at line 62 of file serverbrowsertab.c.

Referenced by ServerBrowserTab::Construct().

◆ m_FilterSearchText

◆ m_FilterSearchTextBox

◆ m_HostSort

◆ m_Initialized

bool m_Initialized
protected

Definition at line 45 of file serverbrowsertab.c.

◆ m_LastLoadedPage

int m_LastLoadedPage
protected

◆ m_Loading

◆ m_LoadingFinished

◆ m_LoadingText

◆ m_MapSort

◆ m_Menu

◆ m_OnlineFavServers

◆ m_PingSort

◆ m_PopulationSort

Widget m_PopulationSort
protected

◆ m_RefreshList

◆ m_ResetFilters

◆ m_RightAreaHeaderText

◆ m_Root

enum TabType m_Root

◆ m_SelectedPanel

◆ m_SelectedServer

ServerBrowserEntry m_SelectedServer
protected

◆ m_ServerList

◆ m_ServerListScroller

ScrollWidget m_ServerListScroller
protected

◆ m_SlotsSort

◆ m_SortInverted

◆ m_SortOrder

ESortOrder m_SortOrder
protected

◆ m_SortType

◆ m_TabType

◆ m_TimeSort

◆ m_TotalLoadedServers

◆ m_TotalPages

◆ m_TotalServers

int m_TotalServers
protected

Definition at line 48 of file serverbrowsertab.c.

Referenced by ServerBrowserTab::OnLoadServersAsyncConsole(), and RefreshList().

◆ MENU

enum TabType MENU