Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
serverbrowsermenunew.c
Go to the documentation of this file.
1 const int MAX_FAVORITES = 25;
2 
3 #ifdef PLATFORM_CONSOLE
4 const int SERVER_BROWSER_PAGE_SIZE = 22;
5 #else
7 #endif
8 
9 class ServerBrowserMenuNew extends UIScriptedMenu
10 {
11  protected Widget m_Play;
12  protected Widget m_Back;
13  protected Widget m_CustomizeCharacter;
14  protected TextWidget m_PlayerName;
15 
16  protected TabberUI m_Tabber;
17  protected ref ServerBrowserTab m_OfficialTab;
18  protected ref ServerBrowserTab m_CommunityTab;
19  protected ref ServerBrowserTab m_FavoritesTab;
20  protected ref ServerBrowserTab m_LANTab;
21 
22  protected TabType m_IsRefreshing = TabType.NONE;
23  protected ref TStringArray m_Favorites;
24  protected ServerBrowserEntry m_SelectedServer;
25 
26  override Widget Init()
27  {
28  #ifdef PLATFORM_CONSOLE
29  layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/xbox/server_browser.layout");
30  m_FavoritesTab = new ServerBrowserFavoritesTabConsolePages(layoutRoot.FindAnyWidget("Tab_0"), this, TabType.FAVORITE);
31  m_OfficialTab = new ServerBrowserTabConsolePages(layoutRoot.FindAnyWidget("Tab_1"), this, TabType.OFFICIAL);
32  m_CommunityTab = new ServerBrowserTabConsolePages(layoutRoot.FindAnyWidget("Tab_2"), this, TabType.COMMUNITY);
33  #else
34  layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/pc/server_browser.layout");
35  m_FavoritesTab = new ServerBrowserFavoritesTabPc(layoutRoot.FindAnyWidget("Tab_0"), this, TabType.FAVORITE);
36  m_OfficialTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_1"), this, TabType.OFFICIAL);
37  m_CommunityTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_2"), this, TabType.COMMUNITY);
38  m_LANTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_3"), this, TabType.LAN);
39  #endif
40 
41  layoutRoot.FindAnyWidget("Tabber").GetScript(m_Tabber);
42 
43  m_Play = layoutRoot.FindAnyWidget("play");
44  m_Back = layoutRoot.FindAnyWidget("back_button");
45  m_CustomizeCharacter = layoutRoot.FindAnyWidget("customize_character");
46  m_PlayerName = TextWidget.Cast(layoutRoot.FindAnyWidget("character_name_text"));
47  m_Favorites = new TStringArray;
48 
49  #ifndef PLATFORM_CONSOLE
50  layoutRoot.FindAnyWidget("customize_character").Show(false);
51  layoutRoot.FindAnyWidget("character").Show(false);
52  #endif
53 
54  Refresh();
55 
56  string version;
57  GetGame().GetVersion(version);
58 
59  #ifdef PLATFORM_CONSOLE
60  version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
61  if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
62  {
63  layoutRoot.FindAnyWidget("play_panel_root").Show(true);
64  layoutRoot.FindAnyWidget("MouseAndKeyboardWarning").Show(true);
65  layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
66  }
67  #else
68  version = "#main_menu_version" + " " + version;
69  #endif
70 
71  OnlineServices.m_ServersAsyncInvoker.Insert(OnLoadServersAsync);
72  OnlineServices.m_ServerModLoadAsyncInvoker.Insert(OnLoadServerModsAsync);
73  LoadFavoriteServers();
74 
75  m_Tabber.m_OnTabSwitch.Insert(OnTabSwitch);
76 
77  m_FavoritesTab.RefreshList();
78 
79  #ifdef PLATFORM_CONSOLE
81  //Sort init
82  TextWidget sort_text = TextWidget.Cast(layoutRoot.FindAnyWidget("SortText"));
83  sort_text.SetText("#str_serverbrowserroot_toolbar_bg_consoletoolbar_sort_sorttext0");
84  #endif
85 
86  PPERequesterBank.GetRequester(PPERequester_ServerBrowserBlur).Start(new Param1<float>(0.5));
87 
88  GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
89  GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
90  OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
91 
92  return layoutRoot;
93  }
94 
95  void ~ServerBrowserMenuNew()
96  {
97  #ifdef PLATFORM_CONSOLE
98  SaveFavoriteServersConsoles();
99  #endif
100 
101  OnlineServices.m_ServersAsyncInvoker.Remove(OnLoadServersAsync);
102  OnlineServices.m_ServerModLoadAsyncInvoker.Remove(OnLoadServerModsAsync);
103  m_Tabber.m_OnTabSwitch.Remove(OnTabSwitch);
104  PPERequesterBank.GetRequester(PPERequester_ServerBrowserBlur).Stop();
105  }
106 
107  TStringArray GetFavoritedServerIds()
108  {
109  return m_Favorites;
110  }
111 
112  protected void OnInputPresetChanged()
113  {
114  #ifdef PLATFORM_CONSOLE
116  #endif
117  }
118 
119  protected void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
120  {
121  switch (pInputDeviceType)
122  {
123  case EInputDeviceType.CONTROLLER:
124  #ifdef PLATFORM_CONSOLE
126  layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
127  layoutRoot.FindAnyWidget("ConsoleControls").Show(true);
128  #endif
129  break;
130 
131  default:
132  #ifdef PLATFORM_CONSOLE
133  if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
134  {
135  layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
136  layoutRoot.FindAnyWidget("ConsoleControls").Show(false);
137  }
138  #endif
139  break;
140  }
141  }
142 
143  override bool OnClick(Widget w, int x, int y, int button)
144  {
145  if (button == MouseState.LEFT)
146  {
147  if (w == m_Play)
148  {
149  Play();
150  return true;
151  }
152  else if (w == m_Back)
153  {
154  Back();
155  return true;
156  }
157  else if (w == m_CustomizeCharacter)
158  {
159  CustomizeCharacter();
160  return true;
161  }
162  }
163  return false;
164  }
165 
166  override bool OnMouseEnter(Widget w, int x, int y)
167  {
168  if (IsFocusable(w))
169  {
170  ColorHighlight(w);
171  return true;
172  }
173  return false;
174  }
175 
176  override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
177  {
178  if (IsFocusable(w))
179  {
180  ColorNormal(w);
181  return true;
182  }
183  return false;
184  }
185 
186  void SetServersLoadingTab(TabType refreshing)
187  {
188  m_IsRefreshing = refreshing;
189 
190  OnlineServices.m_ServersAsyncInvoker.Remove(OnLoadServersAsync);
191  OnlineServices.m_ServersAsyncInvoker.Insert(OnLoadServersAsync, EScriptInvokerInsertFlags.NONE);
192  }
193 
194  TabType GetServersLoadingTab()
195  {
196  return m_IsRefreshing;
197  }
198 
200  {
201  foreach (string id : m_Favorites)
202  {
203  array<string> output = new array<string>;
204  id.Split(":", output);
205  if (output.Count() == 2)
206  {
207  string ip = output[0];
208  int port = output[1].ToInt();
209  input.AddFavourite(ip, port);
210  }
211  }
212  }
213 
214  bool IsFavorited(string server_id)
215  {
216  int index = -1;
217  if (m_Favorites)
218  {
219  index = m_Favorites.Find(server_id);
220  }
221  return (index >= 0);
222  }
223 
224  // Returns whether server was favorited or not
225  bool SetFavoriteConsoles(string ipAddress, int port, bool favorite)
226  {
227  if (favorite && m_Favorites.Count() >= MAX_FAVORITES)
228  {
229  g_Game.GetUIManager().ShowDialog("#layout_notification_info_warning", "#STR_MaxFavouriteReached", 0, DBT_OK, DBB_YES, DMT_EXCLAMATION, this);
230  return false;
231  }
232 
233  AddFavorite(ipAddress, port, favorite);
234  SaveFavoriteServersConsoles();
235 
236  return favorite;
237  }
238 
239  void AddFavorite(string ipAddress, int port, bool favorite)
240  {
241  string serverId = ipAddress + ":" + port;
242  bool isFavorited = IsFavorited(serverId);
243 
244  if (favorite && !isFavorited)
245  {
246  m_Favorites.Insert(serverId);
247  }
248  else if (isFavorited)
249  {
250  m_Favorites.RemoveItem(serverId);
251  m_OfficialTab.Unfavorite(serverId);
252  m_CommunityTab.Unfavorite(serverId);
253  m_FavoritesTab.Unfavorite(serverId);
254 #ifndef PLATFORM_CONSOLE
255  m_LANTab.Unfavorite(serverId);
256 #endif
257  }
258  }
259 
260  void Back()
261  {
262  GetGame().GetUIManager().Back();
263  }
264 
265  void ShowYButton(bool show)
266  {
267  RichTextWidget yIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ResetIcon"));
268  TextWidget yText = TextWidget.Cast(layoutRoot.FindAnyWidget("ResetText"));
269 
270  if (yIcon)
271  {
272  yIcon.Show(show);
273  }
274 
275  if (yText)
276  {
277  yText.Show(show);
278  }
279  }
280 
281  void ShowAButton(bool show)
282  {
283  RichTextWidget aIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ConnectIcon"));
284  TextWidget aText = TextWidget.Cast(layoutRoot.FindAnyWidget("ConnectText"));
285 
286  if (aIcon)
287  {
288  aIcon.Show(show);
289  }
290 
291  if (aText)
292  {
293  aText.Show(show);
294  }
295 
296  }
297 
298  void FilterFocus(bool focus)
299  {
300  #ifdef PLATFORM_CONSOLE
301  TextWidget con_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ConnectText"));
302  TextWidget ref_text = TextWidget.Cast(layoutRoot.FindAnyWidget("RefreshText"));
303  TextWidget res_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ResetText"));
304 
305  if (focus)
306  {
307  con_text.SetText("#dialog_change");
308  ref_text.SetText("#server_browser_menu_refresh");
309  res_text.SetText("#server_browser_menu_reset_filters");
310 
311  con_text.Update();
312  ref_text.Update();
313  res_text.Update();
314  }
315  #endif
316  }
317 
318  void BackButtonFocus()
319  {
320  SetFocus(m_Back);
321  }
322 
323  void ServerListFocus(bool focus, bool favorite)
324  {
325  #ifdef PLATFORM_CONSOLE
326  TextWidget con_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ConnectText"));
327  TextWidget ref_text = TextWidget.Cast(layoutRoot.FindAnyWidget("RefreshText"));
328  TextWidget res_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ResetText"));
329 
330  if (focus)
331  {
332  con_text.SetText("#server_browser_menu_connect");
333 
334  float x, y;
335  res_text.GetSize(x, y);
336  if (favorite)
337  {
338  res_text.SetText("#server_browser_menu_unfavorite");
339  }
340  else
341  {
342  res_text.SetText("#server_browser_menu_favorite");
343  }
344  con_text.Update();
345  res_text.Update();
346  }
347  #endif
348  }
349 
350  override bool OnFocus(Widget w, int x, int y)
351  {
352  if (IsFocusable(w))
353  {
354  ColorHighlight(w);
355  return true;
356  }
357  return false;
358  }
359 
360  override bool OnFocusLost(Widget w, int x, int y)
361  {
362  if (IsFocusable(w))
363  {
364  ColorNormal(w);
365  return true;
366  }
367  return false;
368  }
369 
370  override void Refresh()
371  {
372  string name;
373 
374  #ifdef PLATFORM_CONSOLE
375  if (GetGame().GetUserManager() && GetGame().GetUserManager().GetSelectedUser())
376  {
377  name = GetGame().GetUserManager().GetSelectedUser().GetName();
378  if (name.LengthUtf8() > 18)
379  {
380  name = name.SubstringUtf8(0, 18);
381  name += "...";
382  }
383  }
384  #else
385  g_Game.GetPlayerNameShort(14, name);
386  #endif
387 
388  if (m_PlayerName)
389  m_PlayerName.SetText(name);
390 
391  string version;
392  GetGame().GetVersion(version);
393  #ifdef PLATFORM_CONSOLE
394  version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
395  #else
396  version = "#main_menu_version" + " " + version;
397  #endif
398  }
399 
400  override void Update(float timeslice)
401  {
402  if (!GetGame().GetUIManager().IsDialogVisible() && !GetDayZGame().IsConnecting())
403  {
404  if (GetUApi().GetInputByID(UAUITabLeft).LocalPress())
405  {
406  m_Tabber.PreviousTab();
407  }
408 
409  if (GetUApi().GetInputByID(UAUITabRight).LocalPress())
410  {
411  m_Tabber.NextTab();
412  }
413 
414  if (GetUApi().GetInputByID(UAUINextDown).LocalPress())
415  {
416  GetSelectedTab().PressSholderLeft();
417  }
418 
419  if (GetUApi().GetInputByID(UAUINextUp).LocalPress())
420  {
421  GetSelectedTab().PressSholderRight();
422  }
423 
424  if (GetUApi().GetInputByID(UAUISelect).LocalPress())
425  {
426  GetSelectedTab().PressA();
427  }
428 
429  if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
430  {
431  GetSelectedTab().PressX();
432  }
433 
434  if (GetUApi().GetInputByID(UAUICtrlY).LocalPress())
435  {
436  GetSelectedTab().PressY();
437  }
438 
439  if (GetUApi().GetInputByID(UAUILeft).LocalPress())
440  {
441  GetSelectedTab().Left();
442  }
443 
444  // LEFT HOLD
445  if (GetUApi().GetInputByID(UAUILeft).LocalHold())
446  {
447  GetSelectedTab().LeftHold();
448  }
449 
450  // LEFT RELEASE
451  if (GetUApi().GetInputByID(UAUILeft).LocalRelease())
452  {
453  GetSelectedTab().LeftRelease();
454  }
455 
456  if (GetUApi().GetInputByID(UAUIRight).LocalPress())
457  {
458  GetSelectedTab().Right();
459  }
460 
461  // RIGHT HOLD
462  if (GetUApi().GetInputByID(UAUIRight).LocalHold())
463  {
464  GetSelectedTab().RightHold();
465  }
466 
467  // RIGHT RELEASE
468  if (GetUApi().GetInputByID(UAUIRight).LocalRelease())
469  {
470  GetSelectedTab().RightRelease();
471  }
472 
473  if (GetUApi().GetInputByID(UAUIUp).LocalPress())
474  {
475  GetSelectedTab().Up();
476  }
477 
478  if (GetUApi().GetInputByID(UAUIDown).LocalPress())
479  {
480  GetSelectedTab().Down();
481  }
482 
483  if (GetUApi().GetInputByID(UAUIBack).LocalPress())
484  {
485  Back();
486  }
487  }
488 
489  super.Update(timeslice);
490  }
491 
492  bool IsFocusable(Widget w)
493  {
494  if (w)
495  {
496  return (w == m_Play || w == m_CustomizeCharacter || w == m_Back);
497  }
498  return false;
499  }
500 
501  void LoadFavoriteServers()
502  {
503  m_Favorites = new TStringArray;
504 
505 #ifdef PLATFORM_WINDOWS
506  OnlineServices.GetFavoriteServers(m_Favorites);
507 #else
508  GetGame().GetProfileStringList("SB_Favorites", m_Favorites);
509 
510  // ignore any ids that do not follow correct IP:PORT format
511  for (int i = 0; i < m_Favorites.Count(); ++i)
512  {
513  string id = m_Favorites[i];
514  array<string> output = new array<string>;
515 
516  id.Split(":", output);
517  if (output.Count() != 2)
518  {
519  m_Favorites.Remove(i);
520  --i;
521  }
522  }
523 
524  // only handle MAX_FAVORITES on consoles
525  if (m_Favorites.Count() > MAX_FAVORITES)
526  {
527  // favorites are ordered by when they were favorited
528  // so keep most recent favorites and ignore oldest favorites
529  m_Favorites.Invert();
530  m_Favorites.Resize(MAX_FAVORITES);
531  m_Favorites.Invert();
532  }
533 #endif
534  }
535 
536  void SaveFavoriteServersConsoles()
537  {
538  GetGame().SetProfileStringList("SB_Favorites", m_Favorites);
539  GetGame().SaveProfile();
540 
541  }
542 
543  void SelectServer(ServerBrowserEntry server)
544  {
545 
546  if (m_SelectedServer)
547  {
548  m_SelectedServer.Deselect();
549  }
550 
551  m_SelectedServer = server;
552 
553 #ifdef PLATFORM_CONSOLE
554  // disable CONNECT button if server is offline
555  RichTextWidget aButton = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ConnectIcon"));
556  TextWidget connectText = TextWidget.Cast(layoutRoot.FindAnyWidget("ConnectText"));
557 
558  aButton.Show(server.IsOnline());
559  connectText.Show(server.IsOnline());
560 #endif
561  }
562 
563  void Connect(ServerBrowserEntry server)
564  {
565  SelectServer(server);
566 #ifdef PLATFORM_CONSOLE
567  SaveFavoriteServersConsoles();
568 #endif
569  Play();
570  }
571 
572  void Play()
573  {
574  if (m_SelectedServer)
575  {
576  string mapNM = m_SelectedServer.GetMapToRun();
577  if (!g_Game.VerifyWorldOwnership(mapNM))
578  {
579  GetGame().GetUIManager().ShowDialog("#server_browser_connect_label", "#mod_detail_info_warning", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu());
580  g_Game.GoBuyWorldDLC(mapNM);
581  return;
582  }
583 
584  string ip = m_SelectedServer.GetIP();
585  int port = m_SelectedServer.GetPort();
586  g_Game.ConnectFromServerBrowser(ip, port, "");
587  }
588  }
589 
590  void CustomizeCharacter()
591  {
592  PPERequesterBank.GetRequester(PPERequester_ServerBrowserBlur).Stop();
593  EnterScriptedMenu(MENU_CHARACTER);
594  }
595 
596  void NextCharacter()
597  {
598 
599  }
600 
601  void PreviousCharacter()
602  {
603 
604  }
605 
606  ServerBrowserTab GetSelectedTab()
607  {
608  switch (m_Tabber.GetSelectedIndex())
609  {
610  case 0:
611  {
612  return m_FavoritesTab;
613  }
614  case 1:
615  {
616  return m_OfficialTab;
617  }
618  case 2:
619  {
620  return m_CommunityTab;
621  }
622  case 3:
623  {
624  return m_LANTab;
625  }
626  }
627  return null;
628  }
629 
630  void OnTabSwitch()
631  {
632  LoadFavoriteServers();
633  SetServersLoadingTab(TabType.NONE);
634 
635  if (GetSelectedTab().IsNotInitialized())
636  {
637  GetSelectedTab().RefreshList();
638  }
639 
640  GetSelectedTab().Focus();
641  }
642 
644  {
645  if (GetSelectedTab())
646  {
647  GetSelectedTab().OnLoadServerModsAsync(result_list.m_Id, result_list.m_Mods);
648  }
649  }
650 
651  void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
652  {
653  #ifdef PLATFORM_WINDOWS
654  #ifdef PLATFORM_CONSOLE
655  GetSelectedTab().OnLoadServersAsyncConsole(result_list, error, response);
656  #else
657  GetSelectedTab().OnLoadServersAsyncPC(result_list, error, response);
658  #endif
659  #else
660  GetSelectedTab().OnLoadServersAsyncConsole(result_list, error, response);
661  #endif
662  }
663 
664  //Coloring functions (Until WidgetStyles are useful)
665  void ColorHighlight(Widget w)
666  {
667  if (!w)
668  return;
669 
670  int color_pnl = ARGB(255, 0, 0, 0);
671  int color_lbl = ARGB(255, 255, 0, 0);
672 
673  #ifdef PLATFORM_CONSOLE
674  color_pnl = ARGB(255, 200, 0, 0);
675  color_lbl = ARGB(255, 255, 255, 255);
676  #endif
677 
678  ButtonSetColor(w, color_pnl);
679  ButtonSetTextColor(w, color_lbl);
680  }
681 
682  void ColorNormal(Widget w)
683  {
684  if (!w)
685  return;
686 
687  int color_pnl = ARGB(0, 0, 0, 0);
688  int color_lbl = ARGB(255, 255, 255, 255);
689 
690  ButtonSetColor(w, color_pnl);
691  ButtonSetTextColor(w, color_lbl);
692  }
693 
694  void ButtonSetText(Widget w, string text)
695  {
696  if (!w)
697  return;
698 
699  TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
700 
701  if (label)
702  {
703  label.SetText(text);
704  }
705 
706  }
707 
708  void ButtonSetColor(Widget w, int color)
709  {
710  if (!w)
711  return;
712 
713  Widget panel = w.FindWidget(w.GetName() + "_panel");
714 
715  if (panel)
716  {
717  panel.SetColor(color);
718  }
719  }
720 
721  void ButtonSetTextColor(Widget w, int color)
722  {
723  if (!w)
724  return;
725 
726  TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
727  TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
728  TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
729 
730  if (label)
731  {
732  label.SetColor(color);
733  }
734 
735  if (text)
736  {
737  text.SetColor(color);
738  }
739 
740  if (text2)
741  {
742  text2.SetColor(color);
743  }
744  }
745 
746  protected void UpdateControlsElements()
747  {
748  RichTextWidget toolbar_a = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ConnectIcon"));
749  RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
750  RichTextWidget toolbar_x = RichTextWidget.Cast(layoutRoot.FindAnyWidget("RefreshIcon"));
751  RichTextWidget toolbar_y = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ResetIcon"));
752  toolbar_a.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
753  toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
754  toolbar_x.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
755  toolbar_y.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
756  }
757 }
GetGame
proto native CGame GetGame()
UIScriptedMenu
Definition: dayzgame.c:63
TabType
TabType
Definition: serverbrowsertab.c:1
ServerBrowserTabPc
Definition: serverbrowserfavoritestabpc.c:1
InputUtils
Definition: inpututils.c:1
GetDayZGame
DayZGame GetDayZGame()
Definition: dayzgame.c:3729
Play
ParticleSource Play(int particle_id, Object parent_obj, vector local_pos="0 0 0", vector local_ori="0 0 0")
Legacy function for backwards compatibility with 1.01 and below.
Definition: particlemanager.c:226
Back
void Back()
Definition: controlsxbox.c:36
TStringArray
array< string > TStringArray
Definition: enscript.c:685
UpdateControlsElements
protected void UpdateControlsElements()
Definition: itemdropwarningmenu.c:92
y
Icon y
AddFavoritesToFilter
void AddFavoritesToFilter(ref GetServersInput input)
Definition: serverbrowsertab.c:402
EScriptInvokerInsertFlags
EScriptInvokerInsertFlags
Definition: tools.c:129
m_SelectedServer
protected ServerBrowserEntry m_SelectedServer
Definition: serverbrowsertab.c:31
MENU_CHARACTER
const int MENU_CHARACTER
Definition: constants.c:164
Refresh
void Refresh()
Definition: sizetochild.c:108
OnInputDeviceChanged
protected void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
Definition: inventory.c:167
ServerBrowserTabConsolePages
Definition: serverbrowserfavoritestabconsolepages.c:1
EInputDeviceType
EInputDeviceType
Definition: input.c:2
OnMouseLeave
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition: uihintpanel.c:276
RichTextWidget
Definition: gameplay.c:315
ServerBrowserTab
Definition: serverbrowsertabconsole.c:1
m_Back
protected ButtonWidget m_Back
Definition: controlsxbox.c:17
Init
class InventoryGridController extends ScriptedWidgetEventHandler Init
Definition: uihintpanel.c:46
SelectServer
void SelectServer(ServerBrowserEntry server)
Definition: serverbrowsertab.c:469
TextWidget
Definition: enwidgets.c:219
SERVER_BROWSER_PAGE_SIZE
const int SERVER_BROWSER_PAGE_SIZE
Definition: serverbrowsermenunew.c:6
ColorNormal
void ColorNormal(Widget w)
Definition: serverbrowsertab.c:668
ServerListFocus
void ServerListFocus(bool focus, bool favorite)
Definition: serverbrowsertab.c:207
g_Game
DayZGame g_Game
Definition: dayzgame.c:3727
MAX_FAVORITES
const int MAX_FAVORITES
Definition: serverbrowsermenunew.c:1
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
ColorHighlight
void ColorHighlight(Widget w)
Definition: serverbrowsertab.c:619
GetServersResult
GetServersResult the output structure of the GetServers operation.
Definition: bioslobbyservice.c:224
OnFocusLost
override bool OnFocusLost(Widget w, int x, int y)
Definition: serverbrowsertab.c:235
MouseState
MouseState
Definition: ensystem.c:310
IsNotInitialized
bool IsNotInitialized()
Definition: serverbrowsertab.c:387
array< string >
Update
proto native volatile void Update()
Definition: playersoundmanager.c:125
SetFocus
proto native void SetFocus(Widget w)
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
x
Icon x
GetServerModListResult
Definition: bioslobbyservice.c:24
OnInputPresetChanged
protected void OnInputPresetChanged()
Definition: inventory.c:160
GetServersInput
GetServersInput the input structure of the GetServers operation.
Definition: bioslobbyservice.c:234
OnFocus
override bool OnFocus(Widget w, int x, int y)
Definition: serverbrowsertab.c:217
OnLoadServerModsAsync
void OnLoadServerModsAsync(string server_id, array< string > mods)
Definition: serverbrowsertab.c:321
Widget
Definition: enwidgets.c:189
GetUApi
proto native UAInputAPI GetUApi()
GetInput
ActionInput GetInput()
Definition: actionbase.c:1066
OnClick
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
Definition: dayzgame.c:146
OnMouseEnter
override bool OnMouseEnter(Widget w, int x, int y)
Definition: uihintpanel.c:267
OnlineServices
Definition: onlineservices.c:1
ARGB
int ARGB(int a, int r, int g, int b)
Definition: proto.c:322
Connect
void Connect(ServerBrowserEntry server)
Definition: serverbrowsertab.c:547
IsFocusable
bool IsFocusable(Widget w)
Definition: serverbrowsertab.c:284