Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
serverbrowsertab.c
Go to the documentation of this file.
1 enum TabType
2 {
5  LAN,
8 }
9 
10 enum SelectedPanel
11 {
12  BROWSER,
13  FILTERS,
14  MENU
15 }
16 
18 {
19  protected Widget m_Root;
20  protected ScrollWidget m_ServerListScroller;
21  protected SpacerBaseWidget m_ServerList;
22 
23  //protected ref array<ref GetServersResultRow> m_Entries;
24 
27 
28  protected ref ServerBrowserFilterContainer m_Filters;
29 
30  protected ServerBrowserMenuNew m_Menu;
31  protected ServerBrowserEntry m_SelectedServer;
32 
33  protected TabType m_TabType;
34  protected ESortType m_SortType;
36 
37  protected SelectedPanel m_SelectedPanel;
38  protected bool m_Initialized;
39  protected bool m_BegunLoading;
40  protected bool m_Loading;
41  protected int m_TotalServers; // UNUSED
42  protected int m_TotalLoadedServers;
43  protected int m_LastLoadedPage;
44  protected int m_TotalPages;
45  protected bool m_LoadingFinished;
46  protected int m_CurrentPageNum;
47 
48  protected string m_CurrentSelectedServer;
49  protected int m_CurrentLoadedPage;
51 
52  protected Widget m_ApplyFilter;
53  protected Widget m_RefreshList;
56  protected Widget m_HostSort;
57  protected Widget m_TimeSort;
59  protected Widget m_SlotsSort;
60  protected Widget m_PingSort;
64  protected ButtonWidget m_BtnPagePrev;
65  protected ButtonWidget m_BtnPageNext;
66 
69  protected ref set<string> m_OnlineFavServers;
70 
71  void ServerBrowserTab( Widget parent, ServerBrowserMenuNew menu, TabType type )
72  {
73  Construct(parent, menu, type);
74  m_OnlineFavServers = new set<string>();
75  GetGame().GetContentDLCService().m_OnChange.Insert(OnDLCChange);
76  }
77 
78  protected void Construct( Widget parent, ServerBrowserMenuNew menu, TabType type )
79  {
83  m_LoadingText = TextWidget.Cast( m_Root.FindAnyWidget( "loading_servers_info" ) );
84  }
85 
87  {
88  if ( m_Filters )
89  m_Filters.SaveFilters();
90 
91  if (m_Root)
92  delete m_Root;
93 
94  if (GetGame().GetContentDLCService())
95  GetGame().GetContentDLCService().m_OnChange.Remove(OnDLCChange);
96  }
97 
98  ServerBrowserMenuNew GetRootMenu()
99  {
100  return m_Menu;
101  }
102 
104  {
105  return m_LoadingFinished;
106  }
107 
108  override bool OnClick( Widget w, int x, int y, int button )
109  {
110 
111  }
112 
113  void OnDLCChange(EDLCId dlcId)
114  {
115  switch (dlcId)
116  {
117  case EDLCId.DLC_BLISS:
118  {
119  array<ServerBrowserEntry> serverEntries = m_EntryWidgets.GetValueArray();
120  foreach (ServerBrowserEntry entry : serverEntries)
121  {
122  entry.RefreshDLCIcon();
123  }
124  break;
125  }
126 
127  default:
128  break;
129  }
130  }
131 
132  void ScrollToEntry( ServerBrowserEntry entry )
133  {
134  if ( entry )
135  {
136  float x, y;
137  float x_s, y_s;
138  float x_l, y_l;
139 
140  Widget root = entry.GetRoot();
141  Widget first_child = root.GetParent().GetChildren();
142  Widget last_child = first_child;
143  while ( last_child )
144  {
145  if ( last_child.GetSibling() )
146  last_child = last_child.GetSibling();
147  else
148  break;
149  }
150 
151  root.GetParent().Update();
152  root.Update();
153 
154  m_ServerListScroller.GetScreenPos( x, y );
155  m_ServerListScroller.GetScreenSize( x_s, y_s );
156 
157  float bottom_pos = y + y_s;
158 
159  root.GetScreenPos( x_l, y_l );
160  root.GetScreenSize( x_s, y_s );
161 
162  if ( root == first_child )
163  {
164  m_ServerListScroller.VScrollToPos01( 0 );
165  }
166  else if ( root == last_child )
167  {
168  m_ServerListScroller.VScrollToPos01( 1 );
169  }
170  else if ( y_l + y_s >= bottom_pos )
171  {
172  m_ServerListScroller.VScrollToPos( m_ServerListScroller.GetVScrollPos() + y_s );
173  }
174  else if ( y_l <= y )
175  {
176  m_ServerListScroller.VScrollToPos( m_ServerListScroller.GetVScrollPos() - y_s );
177  }
178  }
179  }
180 
181  void Focus()
182  {
183  if ( m_EntryWidgets.Contains( m_CurrentSelectedServer ) )
184  {
187  }
188  }
189 
190  void OnFilterFocusLost( Widget w )
191  {
192  m_SelectedPanel = SelectedPanel.FILTERS;
193  m_Menu.FilterFocus( false );
194  }
195 
196  void OnFilterFocus( Widget w )
197  {
198  m_SelectedPanel = SelectedPanel.FILTERS;
199  m_Menu.FilterFocus( true );
200  }
201 
202  void OnFilterChanged()
203  {
204 
205  }
206 
207  void ServerListFocus( bool focus, bool favorite )
208  {
209  m_SelectedPanel = SelectedPanel.BROWSER;
210 
211  if (!m_Menu)
212  return;
213 
214  m_Menu.ServerListFocus( focus, favorite );
215  }
216 
217  override bool OnFocus( Widget w, int x, int y )
218  {
219  if ( IsFocusable( w ) )
220  {
221  if ( w == m_FilterSearchTextBox )
222  {
223  ColorHighlight( m_FilterSearchText );
224  return false;
225  }
226  else
227  {
228  ColorHighlight( w );
229  }
230  return true;
231  }
232  return false;
233  }
234 
235  override bool OnFocusLost( Widget w, int x, int y )
236  {
237  if ( IsFocusable( w ) )
238  {
239  if ( w == m_FilterSearchTextBox )
240  {
241  ColorNormal( m_FilterSearchText );
242  return true;
243  }
244  else
245  {
246  ColorNormal( w );
247  }
248  return true;
249  }
250  return false;
251  }
252 
253  override bool OnMouseEnter( Widget w, int x, int y )
254  {
255  if ( IsFocusable( w ) )
256  {
257  ColorHighlight( w );
258  if ( w == m_FilterSearchText )
259  {
261  return true;
262  }
263  return true;
264  }
265  return false;
266  }
267 
268  override bool OnMouseLeave( Widget w, Widget enterW, int x, int y )
269  {
270  if ( IsFocusable( w ) )
271  {
272  if ( enterW == m_FilterSearchText || enterW == m_FilterSearchTextBox )
273  {
274  }
275  else
276  {
277  ColorNormal( w );
278  }
279  return true;
280  }
281  return false;
282  }
283 
284  bool IsFocusable( Widget w )
285  {
286  if ( w )
287  {
288  return ( w == m_ApplyFilter || w == m_RefreshList || w == m_ResetFilters || w == m_FilterSearchText || w == m_FilterSearchTextBox );
289  }
290  return false;
291  }
292 
294  {
295 
296  }
297 
298  void PressA()
299  {
300 
301  }
302 
303  void PressX()
304  {
305  if ( m_Menu.GetServersLoadingTab() == TabType.NONE )
306  RefreshList();
307  }
308 
309  void PressY();
310  void PressSholderLeft();
311  void PressSholderRight();
312  void Left();
313  void LeftHold();
314  void LeftRelease();
315  void Right();
316  void RightHold();
317  void RightRelease();
318  void Up();
319  void Down();
320 
321  void OnLoadServerModsAsync(string server_id, array<string> mods)
322  {
323  m_EntryMods.Set( server_id, mods );
324  }
325 
327  {
328  Widget focused = GetFocus();
329  if ( !focused )
330  return;
331  Widget sibling = focused.GetSibling();
332  if ( !sibling )
333  return;
334 
335  if ( focused.GetName() == "server_browser_list_entry_root" )
336  {
337  if ( sibling )
338  SetFocus( focused.GetSibling() );
339  else
340  SetFocus( focused.GetParent().GetSibling().GetChildren() );
341  }
342  }
343 
345  {
346  Widget focused = GetFocus();
347  if ( focused && focused.GetName() == "server_browser_list_entry_root" )
348  {
349  Widget sibling = focused.GetParent().GetChildren();
350  if ( focused == sibling )
351  return;
352 
353  while ( sibling )
354  {
355  if ( sibling && sibling.GetSibling() == focused )
356  {
357  SetFocus( sibling );
358  }
359  else
360  {
361  sibling = sibling.GetSibling();
362  }
363  }
364  }
365  }
366 
368  {
369 
370  }
371 
373  {
374 
375  }
376 
377  void SetCurrentPage(int page_num)
378  {
379  m_CurrentPageNum = page_num;
380  }
381 
383  {
384  return m_CurrentPageNum;
385  }
386 
388  {
389  return !m_Initialized || !m_LoadingFinished;
390  }
391 
392  void ResetFilters()
393  {
394  m_Filters.ResetFilters();
395  }
396 
397  void ApplyFilters()
398  {
399 
400  }
401 
403  {
404  m_Menu.AddFavoritesToFilter( input );
405  }
406 
407  void RefreshList()
408  {
409  m_Menu.SetServersLoadingTab( m_TabType );
410 
411  m_LoadingFinished = false;
412  m_Initialized = true;
413  m_BegunLoading = false;
414  m_LastLoadedPage = 0;
415  m_TotalPages = -1;
416  m_TotalServers = 0;
419 
420  m_EntryWidgets.Clear();
421 
422  #ifndef PLATFORM_WINDOWS // XBOX OR PS
423  m_CurrentFilterInput = m_Filters.GetFilterOptionsConsoles();
425  m_CurrentFilterInput.m_SortBy = GetSortOption();
426  m_CurrentFilterInput.m_SortOrder = m_SortOrder;
427  #else // PLATFORM_WINDOWS
428  m_CurrentFilterInput = m_Filters.GetFilterOptionsPC();
429  #ifdef PLATFORM_CONSOLE // PC client with -XBOX flag
431  #else
432  m_CurrentFilterInput.m_Page = 0;
433  #endif
434  #endif
435 
436  m_Loading = true;
437  switch ( m_TabType )
438  {
439  case TabType.OFFICIAL:
440  {
441  m_CurrentFilterInput.SetOfficialFilter( true );
442  OnlineServices.LoadServers( m_CurrentFilterInput );
443  break;
444  }
445  case TabType.COMMUNITY:
446  {
447  m_CurrentFilterInput.SetOfficialFilter( false );
448  OnlineServices.LoadServers( m_CurrentFilterInput );
449  break;
450  }
451  case TabType.LAN:
452  {
453  m_CurrentFilterInput.SetLAN();
454  OnlineServices.LoadServers( m_CurrentFilterInput );
455  break;
456  }
457  }
458  }
459 
460  void GetNextPage()
461  {
463  {
465  OnlineServices.LoadServers( m_CurrentFilterInput );
466  }
467  }
468 
469  void SelectServer( ServerBrowserEntry server )
470  {
471 #ifdef PLATFORM_CONSOLE
472  ScrollToEntry( server );
473 #endif
474 
475  m_SelectedServer = server;
476 
477  if (!m_Menu)
478  return;
479 
480  m_Menu.SelectServer( server );
481  }
482 
483  void OnLoadServersAsyncPC( ref GetServersResult result_list, EBiosError error, string response )
484  {
485 
486  }
487 
488  void OnLoadServersAsyncConsole( GetServersResult result_list, EBiosError error, string response )
489  {
490 
491  }
492 
493  void SetSort( ESortType type, ESortOrder order )
494  {
495  m_SortOrder = order;
496  m_SortType = type;
497  }
498 
499  bool IsPingInRange( int ping, string max_ping )
500  {
501  int max = max_ping.Substring( 1, max_ping.Length() - 1 ).ToInt();
502 
503  if ( ping < max )
504  return true;
505  return false;
506  }
507 
508  bool PassFilter( GetServersResultRow result )
509  {
510  if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
511  {
512  return false;
513  }
514 
515  if ( m_Filters.m_PingFilter.IsSet() )
516  {
517  if ( !IsPingInRange( result.m_Ping, m_Filters.m_PingFilter.GetStringValue() ) )
518  {
519  return false;
520  }
521  }
522 
523  if ( m_Filters.m_PreviouslyPlayedFilter.IsSet() )
524  {
525  bool is_visited = g_Game.IsVisited( result.m_HostIp, result.m_HostPort );
526 
527  if ( !is_visited && m_Filters.m_PreviouslyPlayedFilter.IsEnabled() )
528  {
529  return false;
530  }
531 
532  if ( is_visited && m_Filters.m_PreviouslyPlayedFilter.IsEnabled() )
533  {
534  return false;
535  }
536  }
537 
538  return true;
539  }
540 
541  // Adds extra servers to the END of the list
542  protected void LoadExtraEntries(int index)
543  {
544 
545  }
546 
547  void Connect( ServerBrowserEntry server )
548  {
549  if ( !m_Menu )
550  return;
551 
552  if ( m_Menu.GetServersLoadingTab() != TabType.NONE )
553  return;
554 
555  m_SelectedServer = server;
556  m_Menu.Connect( server );
557  }
558 
559  string GetSortOption()
560  {
561  switch ( m_SortType )
562  {
563  case ESortType.HOST:
564  {
565  return "name";
566  }
567  case ESortType.TIME:
568  {
569  return "name";
570  }
571  case ESortType.POPULATION:
572  {
573  return "currentNumberPlayers";
574  }
575  case ESortType.SLOTS:
576  {
577  return "freeSlots";
578  }
579  case ESortType.PING:
580  {
581  return "name";
582  }
583  }
584  return "";
585  }
586 
587  int AddSorted( GetServersResultRow entry )
588  {
589  return -1;
590  }
591 
592  void Unfavorite( string uid )
593  {
594  ServerBrowserEntry entry;
595  if ( m_EntryWidgets.Find( uid, entry ) )
596  {
597  entry.SetFavorite( false );
598  }
599  }
600 
602  {
603  return m_TabType;
604  }
605 
607  {
608  w.ClearFlags( WidgetFlags.IGNOREPOINTER );
609  ColorNormal(w);
610  }
611 
613  {
614  w.SetFlags( WidgetFlags.IGNOREPOINTER );
615  ColorDisable(w);
616  }
617 
618  //Coloring functions (Until WidgetStyles are useful)
619  void ColorHighlight( Widget w )
620  {
621  if ( w.IsInherited( ButtonWidget ) )
622  {
623  ButtonWidget button = ButtonWidget.Cast( w );
624  button.SetTextColor( ARGB( 255, 200, 0, 0 ) );
625  }
626 
627  w.SetColor( ARGB( 255, 0, 0, 0) );
628 
629  TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
630  TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
631  TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
632  ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
633  Widget option = Widget.Cast( w.FindAnyWidget( w.GetName() + "_option_wrapper" ) );
634  Widget option_label = w.FindAnyWidget( "option_label" );
635 
636  if ( text1 )
637  {
638  text1.SetColor( ARGB( 255, 255, 0, 0 ) );
639  }
640 
641  if ( text2 )
642  {
643  text2.SetColor( ARGB( 255, 255, 0, 0 ) );
644  }
645 
646  if ( text3 )
647  {
648  text3.SetColor( ARGB( 255, 255, 0, 0 ) );
649  w.SetAlpha(1);
650  }
651 
652  if ( image )
653  {
654  image.SetColor( ARGB( 255, 200, 0, 0 ) );
655  }
656 
657  if ( option )
658  {
659  option.SetColor( ARGB( 255, 255, 0, 0 ) );
660  }
661 
662  if ( option_label )
663  {
664  option_label.SetColor( ARGB( 255, 255, 0, 0 ) );
665  }
666  }
667 
668  void ColorNormal( Widget w )
669  {
670  if ( (w.GetFlags() & WidgetFlags.IGNOREPOINTER) == WidgetFlags.IGNOREPOINTER )
671  {
672  return;
673  }
674 
675  if ( w.IsInherited( ButtonWidget ) )
676  {
677  ButtonWidget button = ButtonWidget.Cast( w );
678  button.SetTextColor( ARGB( 255, 255, 255, 255 ) );
679  }
680 
681  TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
682  TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
683  TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
684  ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
685  Widget option = w.FindAnyWidget( w.GetName() + "_option_wrapper" );
686  Widget option_label = w.FindAnyWidget( "option_label" );
687 
688  if ( text1 )
689  {
690  text1.SetColor( ARGB( 255, 255, 255, 255 ) );
691  }
692 
693  if ( text2 )
694  {
695  text2.SetColor( ARGB( 255, 255, 255, 255 ) );
696  }
697 
698  if ( text3 )
699  {
700  text3.SetColor( ARGB( 255, 255, 255, 255 ) );
701  w.SetAlpha(0);
702  }
703 
704  if ( image )
705  {
706  image.SetColor( ARGB( 255, 255, 255, 255 ) );
707  }
708 
709  if ( option )
710  {
711  option.SetColor( ARGB( 150, 255, 255, 255 ) );
712  }
713 
714  if ( option_label )
715  {
716  option_label.SetColor( ARGB( 255, 255, 255, 255 ) );
717  }
718  }
719 
720  void ColorDisable( Widget w )
721  {
722  #ifdef PLATFORM_WINDOWS
723  SetFocus( null );
724  #endif
725 
726  if ( w )
727  {
728  ButtonWidget button = ButtonWidget.Cast( w );
729  if ( button )
730  {
731  button.SetTextColor( ColorManager.COLOR_DISABLED_TEXT );
732  }
733  }
734  }
735 }
GetGame
proto native CGame GetGame()
m_SortType
protected ESortType m_SortType
Definition: serverbrowsertab.c:34
TabType
TabType
Definition: serverbrowsertab.c:1
m_TotalLoadedServers
protected int m_TotalLoadedServers
Definition: serverbrowsertab.c:42
m_LastLoadedPage
protected int m_LastLoadedPage
Definition: serverbrowsertab.c:43
Up
void Up()
m_EntryMods
protected ref map< string, ref array< string > > m_EntryMods
Definition: serverbrowsertab.c:26
LAN
@ LAN
Definition: serverbrowsertab.c:5
m_BtnPagePrev
protected ButtonWidget m_BtnPagePrev
Definition: serverbrowsertab.c:64
m_ResetFilters
protected Widget m_ResetFilters
Definition: serverbrowsertab.c:54
ButtonDisable
void ButtonDisable(Widget w)
Definition: serverbrowsertab.c:612
m_Root
enum TabType m_Root
GetTabType
TabType GetTabType()
Definition: serverbrowsertab.c:601
GetCurrentPage
int GetCurrentPage()
Definition: serverbrowsertab.c:382
OFFICIAL
@ OFFICIAL
Definition: serverbrowsertab.c:3
ButtonEnable
void ButtonEnable(Widget w)
Definition: serverbrowsertab.c:606
m_TimeSort
protected Widget m_TimeSort
Definition: serverbrowsertab.c:57
m_LoadingFinished
protected bool m_LoadingFinished
Definition: serverbrowsertab.c:45
GetPrevFilter
void GetPrevFilter()
Definition: serverbrowsertab.c:372
m_EntryWidgets
protected ref map< string, ref ServerBrowserEntry > m_EntryWidgets
Definition: serverbrowsertab.c:25
SetPanelFocus
void SetPanelFocus()
Definition: serverbrowsertab.c:293
m_TabType
protected TabType m_TabType
Definition: serverbrowsertab.c:33
m_BegunLoading
protected bool m_BegunLoading
Definition: serverbrowsertab.c:39
m_FilterSearchTextBox
protected Widget m_FilterSearchTextBox
Definition: serverbrowsertab.c:62
m_TotalServers
protected int m_TotalServers
Definition: serverbrowsertab.c:41
GetFocus
proto native Widget GetFocus()
y
Icon y
m_ServerListScroller
protected ScrollWidget m_ServerListScroller
Definition: serverbrowsertab.c:20
AddFavoritesToFilter
void AddFavoritesToFilter(ref GetServersInput input)
Definition: serverbrowsertab.c:402
GetNextEntry
void GetNextEntry()
Definition: serverbrowsertab.c:326
ScrollToEntry
void ScrollToEntry(ServerBrowserEntry entry)
Definition: serverbrowsertab.c:132
m_SelectedServer
protected ServerBrowserEntry m_SelectedServer
Definition: serverbrowsertab.c:31
m_ServerList
protected SpacerBaseWidget m_ServerList
Definition: serverbrowsertab.c:21
m_Menu
protected ServerBrowserMenuNew m_Menu
Definition: serverbrowsertab.c:30
~ServerBrowserTab
void ~ServerBrowserTab()
Definition: serverbrowsertab.c:86
FAVORITE
@ FAVORITE
Definition: serverbrowsertab.c:6
m_Initialized
protected bool m_Initialized
Definition: serverbrowsertab.c:38
EDLCId
EDLCId
Definition: contentdlc.c:3
m_FilterSearchText
protected Widget m_FilterSearchText
Definition: serverbrowsertab.c:61
SetCurrentPage
void SetCurrentPage(int page_num)
Definition: serverbrowsertab.c:377
MENU
@ MENU
Definition: ensystem.c:343
m_TotalPages
protected int m_TotalPages
Definition: serverbrowsertab.c:44
m_ApplyFilter
protected Widget m_ApplyFilter
Definition: serverbrowsertab.c:52
Down
void Down()
GetRootMenu
ServerBrowserMenuNew GetRootMenu()
Definition: serverbrowsertab.c:98
Unfavorite
void Unfavorite(string uid)
Definition: serverbrowsertab.c:592
m_Loading
protected bool m_Loading
Definition: serverbrowsertab.c:40
ESortType
ESortType
Definition: bioslobbyservice.c:6
m_FiltersChanged
protected Widget m_FiltersChanged
Definition: serverbrowsertab.c:55
m_CurrentSelectedServer
protected string m_CurrentSelectedServer
Definition: serverbrowsertab.c:48
map
map
Definition: controlsxboxnew.c:3
ServerBrowserTab
Definition: serverbrowsertabconsole.c:1
m_OnlineFavServers
protected ref set< string > m_OnlineFavServers
Definition: serverbrowsertab.c:69
m_SortInverted
protected ref map< ESortType, ESortOrder > m_SortInverted
Definition: serverbrowsertab.c:68
m_Filters
protected ref ServerBrowserFilterContainer m_Filters
Definition: serverbrowsertab.c:28
TextWidget
Definition: enwidgets.c:219
m_EntriesSorted
protected ref map< ESortType, ref array< ref GetServersResultRow > > m_EntriesSorted
Definition: serverbrowsertab.c:67
COMMUNITY
@ COMMUNITY
Definition: serverbrowsertab.c:4
ColorManager
Definition: colormanager.c:1
ServerListFocus
void ServerListFocus(bool focus, bool favorite)
Definition: serverbrowsertab.c:207
g_Game
DayZGame g_Game
Definition: dayzgame.c:3727
m_RefreshList
protected Widget m_RefreshList
Definition: serverbrowsertab.c:53
EBiosError
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
Definition: bioserrormodule.c:6
FILTERS
enum TabType FILTERS
GetNextPage
void GetNextPage()
Definition: serverbrowsertab.c:460
GetServersResult
GetServersResult the output structure of the GetServers operation.
Definition: bioslobbyservice.c:224
LoadExtraEntries
protected void LoadExtraEntries(int index)
Definition: serverbrowsertab.c:542
m_SlotsSort
protected Widget m_SlotsSort
Definition: serverbrowsertab.c:59
GetPrevEntry
void GetPrevEntry()
Definition: serverbrowsertab.c:344
GetIsServerLoadingFinished
bool GetIsServerLoadingFinished()
Definition: serverbrowsertab.c:103
ESortOrder
ESortOrder
Definition: bioslobbyservice.c:18
OnFocusLost
override bool OnFocusLost(Widget w, int x, int y)
Definition: serverbrowsertab.c:235
OnDLCChange
void OnDLCChange(EDLCId dlcId)
Definition: serverbrowsertab.c:113
IsNotInitialized
bool IsNotInitialized()
Definition: serverbrowsertab.c:387
array
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition: isboxcollidinggeometryproxyclasses.c:27
m_CurrentLoadedPage
protected int m_CurrentLoadedPage
Definition: serverbrowsertab.c:49
SetFocus
proto native void SetFocus(Widget w)
x
Icon x
m_CurrentPageNum
protected int m_CurrentPageNum
Definition: serverbrowsertab.c:46
m_HostSort
protected Widget m_HostSort
Definition: serverbrowsertab.c:56
m_PingSort
protected Widget m_PingSort
Definition: serverbrowsertab.c:60
m_LoadingText
protected TextWidget m_LoadingText
Definition: serverbrowsertab.c:63
WidgetFlags
WidgetFlags
Definition: enwidgets.c:57
m_SortOrder
protected ESortOrder m_SortOrder
Definition: serverbrowsertab.c:35
GetServersInput
GetServersInput the input structure of the GetServers operation.
Definition: bioslobbyservice.c:234
m_PopulationSort
protected Widget m_PopulationSort
Definition: serverbrowsertab.c:58
GetSortOption
string GetSortOption()
Definition: serverbrowsertab.c:559
GetNextFilter
void GetNextFilter()
Definition: serverbrowsertab.c:367
PassFilter
bool PassFilter(GetServersResultRow result)
Definition: serverbrowsertab.c:508
m_CurrentFilterInput
protected ref GetServersInput m_CurrentFilterInput
Definition: serverbrowsertab.c:50
BROWSER
enum TabType BROWSER
OnFocus
override bool OnFocus(Widget w, int x, int y)
Definition: serverbrowsertab.c:217
m_SelectedPanel
protected SelectedPanel m_SelectedPanel
Definition: serverbrowsertab.c:37
Widget
Definition: enwidgets.c:189
NONE
@ NONE
Definition: serverbrowsertab.c:7
ServerBrowserTab
void ServerBrowserTab(Widget parent, ServerBrowserMenuNew menu, TabType type)
Definition: serverbrowsertab.c:71
OnlineServices
Definition: onlineservices.c:1
IsPingInRange
bool IsPingInRange(int ping, string max_ping)
Definition: serverbrowsertab.c:499
m_BtnPageNext
protected ButtonWidget m_BtnPageNext
Definition: serverbrowsertab.c:65
ScriptedWidgetEventHandler
map: item x vector(index, width, height)
Definition: enwidgets.c:650
ARGB
int ARGB(int a, int r, int g, int b)
Definition: proto.c:322
Connect
void Connect(ServerBrowserEntry server)
Definition: serverbrowsertab.c:547