PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ServerBrowserTab.c File Reference

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 ()
 
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)
 
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)
 
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
 
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_MapSort
 
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
 
protected TextWidget m_RightAreaHeaderText
 
protected Widget m_FilterRoot
 
protected Widget m_FilterContent
 
protected ButtonWidget m_BtnShowDetails
 
protected Widget m_DetailsRoot
 
protected ButtonWidget m_BtnShowFilters
 
protected ref ServerBrowserDetailsContainer m_Details
 

Enumeration Type Documentation

◆ TabType

enum TabType
Enumerator
OFFICIAL 
COMMUNITY 
LAN 
FAVORITE 
NONE 

Function Documentation

◆ AddFavoritesToFilter()

void AddFavoritesToFilter ( GetServersInput  input)

◆ AddSorted()

◆ ApplyFilters()

void ApplyFilters ( )

◆ ButtonDisable()

◆ ButtonEnable()

◆ ColorDisable()

void ColorDisable ( Widget  w)

◆ ColorHighlight()

void ColorHighlight ( Widget  w)

◆ ColorNormal()

void ColorNormal ( Widget  w)

◆ Connect()

void Connect ( ServerBrowserEntry  server)

References m_Menu, and m_SelectedServer.

◆ Construct()

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

◆ Down()

void Down ( )

◆ Focus()

◆ GetCurrentPage()

◆ GetDetailsRoot()

Widget GetDetailsRoot ( )

References m_DetailsRoot.

◆ GetFilterRoot()

Widget GetFilterRoot ( )

References m_FilterRoot.

◆ GetIsServerLoadingFinished()

bool GetIsServerLoadingFinished ( )

References m_LoadingFinished.

◆ GetNextEntry()

void GetNextEntry ( )

References GetFocus(), and SetFocus().

◆ GetNextFilter()

void GetNextFilter ( )

◆ GetNextPage()

◆ GetPrevEntry()

void GetPrevEntry ( )

References GetFocus(), and SetFocus().

◆ GetPrevFilter()

void GetPrevFilter ( )

◆ GetRootMenu()

ServerBrowserMenuNew GetRootMenu ( )

References m_Menu.

◆ GetSelectedServer()

ServerBrowserEntry GetSelectedServer ( )

References m_SelectedServer.

◆ GetSortOption()

string GetSortOption ( )

References m_SortType.

Referenced by RefreshList().

◆ GetTabType()

◆ IsFocusable()

◆ IsNotInitialized()

bool IsNotInitialized ( )

◆ IsPingInRange()

bool IsPingInRange ( int  ping,
string  max_ping 
)

◆ Left()

void Left ( )

◆ LeftHold()

void LeftHold ( )

◆ LeftRelease()

void LeftRelease ( )

◆ LoadExtraEntries()

protected void LoadExtraEntries ( int  index)

◆ OnDetailsFocus()

void OnDetailsFocus ( Widget  w)

References m_Menu, and m_SelectedPanel.

◆ OnDetailsFocusLost()

void OnDetailsFocusLost ( Widget  w)

References m_Menu, and m_SelectedPanel.

◆ OnDLCChange()

◆ OnFilterChanged()

void OnFilterChanged ( )

◆ OnFilterFocus()

void OnFilterFocus ( Widget  w)

References m_Menu, and m_SelectedPanel.

◆ OnFilterFocusLost()

void OnFilterFocusLost ( Widget  w)

References m_Menu, and m_SelectedPanel.

◆ OnFocus()

◆ OnFocusLost()

◆ OnLoadServerModsAsync()

void OnLoadServerModsAsync ( string  server_id,
array< string mods 
)

◆ OnLoadServersAsyncConsole()

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

◆ OnLoadServersAsyncPC()

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

◆ OnMouseEnter()

◆ OnMouseLeave()

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

◆ OnPressShoulder()

◆ PassFilter()

◆ PressA()

void PressA ( )

◆ PressSholderLeft()

void PressSholderLeft ( )

◆ PressSholderRight()

void PressSholderRight ( )

◆ PressThumbRight()

void PressThumbRight ( )

◆ PressX()

void PressX ( )

◆ PressY()

void PressY ( )

◆ RefreshList()

◆ ResetFilters()

void ResetFilters ( )

References m_Filters.

Referenced by ServerBrowserTab::OnClick().

◆ Right()

void Right ( )

◆ RightHold()

void RightHold ( )

◆ RightRelease()

void RightRelease ( )

◆ ScrollToEntry()

void ScrollToEntry ( ServerBrowserEntry  entry)

References m_ServerListScroller, x, and y.

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

◆ SelectServer()

void SelectServer ( ServerBrowserEntry  server)

◆ ServerBrowserTab()

◆ ServerListFocus()

void ServerListFocus ( bool  focus,
bool  favorite 
)

References m_Menu.

◆ SetCurrentPage()

◆ SetPanelFocus()

void SetPanelFocus ( )

◆ SetServerDetails()

void SetServerDetails ( GetServersResultRow  server_info,
bool  online 
)

References m_Details.

◆ SetSort()

void SetSort ( ESortType  type,
ESortOrder  order 
)

References m_SortOrder, and m_SortType.

◆ ShowServerDetails()

◆ SwitchRightAreaView()

◆ SwitchToDetails()

◆ SwitchToFilters()

◆ Unfavorite()

void Unfavorite ( string  uid)

References m_EntryWidgets.

◆ Up()

void Up ( )

◆ UpdateServerList()

◆ ~ServerBrowserTab()

Variable Documentation

◆ BROWSER

enum TabType BROWSER

◆ FILTERS

enum TabType FILTERS

◆ m_ApplyFilter

◆ m_BegunLoading

protected bool m_BegunLoading

Referenced by RefreshList().

◆ m_BtnPageNext

protected ButtonWidget m_BtnPageNext

◆ m_BtnPagePrev

protected ButtonWidget m_BtnPagePrev

◆ m_BtnShowDetails

◆ m_BtnShowFilters

◆ m_CurrentFilterInput

◆ m_CurrentLoadedPage

protected int m_CurrentLoadedPage

Referenced by RefreshList().

◆ m_CurrentPageNum

protected int m_CurrentPageNum

◆ m_CurrentSelectedServer

◆ m_Details

protected ref ServerBrowserDetailsContainer m_Details

◆ m_DetailsRoot

◆ m_EntriesSorted

◆ m_EntryMods

◆ m_EntryWidgets

◆ m_FilterContent

protected Widget m_FilterContent

◆ m_FilterRoot

◆ m_Filters

◆ m_FiltersChanged

protected Widget m_FiltersChanged

◆ m_FilterSearchText

◆ m_FilterSearchTextBox

◆ m_HostSort

◆ m_Initialized

protected bool m_Initialized

◆ m_LastLoadedPage

◆ m_Loading

◆ m_LoadingFinished

◆ m_LoadingText

◆ m_MapSort

◆ m_Menu

protected ServerBrowserMenuNew m_Menu

Referenced by AddFavoritesToFilter(), ScriptedWidgetEventHandler::Apply(), array::ClearAlternativeKeybind(), ScriptedWidgetEventHandler::ClearAlternativeKeybind(), array::ClearKeybind(), ScriptedWidgetEventHandler::ClearKeybind(), Connect(), ServerBrowserTabConsolePages::Construct(), ServerBrowserTab::Construct(), CTObjectFollower::CTActor(), ScriptedWidgetEventHandler::CTEvent(), ScriptedWidgetEventHandler::CTKeyframe(), ScriptedWidgetEventHandler::EnterKeybindingMenu(), GetRootMenu(), array::KeybindingsContainer(), ScriptedWidgetEventHandler::KeybindingsGroup(), ServerBrowserTab::LoadEntries(), ServerBrowserTab::LoadEntries(), ServerBrowserTabConsolePages::LoadExtraEntries(), ServerBrowserTabPc::LoadExtraEntries(), ServerBrowserTab::LoadingServersStop(), ScriptedWidgetEventHandler::ModsMenuDetailed(), ScriptedWidgetEventHandler::OnAOChanged(), ScriptedWidgetEventHandler::OnATOCChanged(), ScriptedWidgetEventHandler::OnBrightnessChanged(), ScriptedWidgetEventHandler::OnClick(), ScriptedWidgetEventHandler::OnColorDepthChanged(), OnDetailsFocus(), OnDetailsFocusLost(), ScriptedWidgetEventHandler::OnDisplayModeChanged(), OnFilterFocus(), OnFilterFocusLost(), ScriptedWidgetEventHandler::OnFocus(), OnFocus(), ScriptedWidgetEventHandler::OnHWAAChanged(), ServerBrowserTab::OnInputDeviceChanged(), ServerBrowserTab::OnLoadServersAsyncConsole(), ServerBrowserTabConsolePages::OnLoadServersAsyncFinished(), ServerBrowserTab::OnLoadServersAsyncFinished(), ServerBrowserTab::OnLoadServersAsyncPC(), ScriptedWidgetEventHandler::OnMouseButtonDown(), ScriptedWidgetEventHandler::OnMouseButtonUp(), ScriptedWidgetEventHandler::OnMouseEnter(), ScriptedWidgetEventHandler::OnMouseLeave(), ScriptedWidgetEventHandler::OnObjectDetailChanged(), ScriptedWidgetEventHandler::OnObjectVisibilityChanged(), ScriptedWidgetEventHandler::OnOverallQualityChanged(), ScriptedWidgetEventHandler::OnPPAAChanged(), ScriptedWidgetEventHandler::OnPPQualityChanged(), ScriptedWidgetEventHandler::OnResolutionChanged(), ScriptedWidgetEventHandler::OnShadowDetailChanged(), ScriptedWidgetEventHandler::OnSSRQualityChanged(), ScriptedWidgetEventHandler::OnTerrainDetailChanged(), ScriptedWidgetEventHandler::OnTerrainSurfaceDetailChanged(), ScriptedWidgetEventHandler::OnTextureDetailChanged(), ScriptedWidgetEventHandler::OnTextureFilteringChanged(), ScriptedWidgetEventHandler::OnVisibilityChanged(), ScriptedWidgetEventHandler::OnVSyncChanged(), ScriptedWidgetEventHandler::OptionsMenuControls(), ScriptedWidgetEventHandler::OptionsMenuGame(), ScriptedWidgetEventHandler::OptionsMenuSounds(), ScriptedWidgetEventHandler::OptionsMenuVideo(), ServerBrowserTabConsolePages::PassFilter(), PassFilter(), ScriptedWidgetEventHandler::Play(), ServerBrowserTab::PressThumbRight(), PressX(), ServerBrowserTab::PressY(), RefreshList(), ServerBrowserTab::RefreshList(), ScriptedWidgetEventHandler::ReloadOptions(), SelectServer(), ServerListFocus(), ServerBrowserTab::SetFocusFilters(), ServerBrowserTab::SetFocusServers(), array::StartEnteringAlternateKeybind(), ScriptedWidgetEventHandler::StartEnteringAlternateKeybind(), array::StartEnteringKeybind(), ScriptedWidgetEventHandler::StartEnteringKeybind(), ScriptedWidgetEventHandler::Stop(), ServerBrowserTab::SwitchToDetails(), ServerBrowserTab::SwitchToFilters(), ScriptedWidgetEventHandler::TutorialKeybinds(), array::Update(), ScriptedWidgetEventHandler::Update(), ScriptedWidgetEventHandler::UpdateAdminOption(), ScriptedWidgetEventHandler::UpdateAmbientSoundModeOption(), ScriptedWidgetEventHandler::UpdateBleedingIndication(), ScriptedWidgetEventHandler::UpdateConnectivityInfo(), ScriptedWidgetEventHandler::UpdateCrosshairOption(), ScriptedWidgetEventHandler::UpdateEffects(), ScriptedWidgetEventHandler::UpdateFOVOption(), ScriptedWidgetEventHandler::UpdateGameOption(), ScriptedWidgetEventHandler::UpdateHUDBrightnessOption(), ScriptedWidgetEventHandler::UpdateHUDOption(), ScriptedWidgetEventHandler::UpdateHUDVehicleOption(), ScriptedWidgetEventHandler::UpdateInputMode(), ScriptedWidgetEventHandler::UpdateLanguageOption(), ScriptedWidgetEventHandler::UpdateMaster(), ScriptedWidgetEventHandler::UpdateMouseAimModHSensitivity(), ScriptedWidgetEventHandler::UpdateMouseAimModVSensitivity(), ScriptedWidgetEventHandler::UpdateMouseHSensitivity(), ScriptedWidgetEventHandler::UpdateMouseInvertView(), ScriptedWidgetEventHandler::UpdateMouseVSensitivity(), ScriptedWidgetEventHandler::UpdateMusic(), ScriptedWidgetEventHandler::UpdatePauseOption(), ScriptedWidgetEventHandler::UpdatePlayerOption(), ScriptedWidgetEventHandler::UpdateQuickbarOption(), ScriptedWidgetEventHandler::UpdateServerInfoOption(), ScriptedWidgetEventHandler::UpdateVOIP(), and ScriptedWidgetEventHandler::UpdateVOIPThreshold().

◆ m_OnlineFavServers

◆ m_PingSort

◆ m_PopulationSort

◆ m_RefreshList

◆ m_ResetFilters

◆ m_RightAreaHeaderText

◆ m_Root

enum TabType m_Root

◆ m_SelectedPanel

◆ m_SelectedServer

◆ m_ServerList

◆ m_ServerListScroller

protected ScrollWidget m_ServerListScroller

◆ m_SlotsSort

◆ m_SortInverted

◆ m_SortOrder

◆ m_SortType

◆ m_TabType

◆ m_TimeSort

◆ m_TotalLoadedServers

◆ m_TotalPages

◆ m_TotalServers

protected int m_TotalServers

◆ MENU

enum TabType MENU