Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
mainmenu.c
Go to the documentation of this file.
1 class MainMenu extends UIScriptedMenu
2 {
3  protected ref MainMenuStats m_Stats;
4  protected ref MainMenuVideo m_Video;
5 
6  protected MissionMainMenu m_Mission;
7  protected DayZIntroScenePC m_ScenePC;
8 
9  protected TextWidget m_PlayerName;
10  protected TextWidget m_Version;
11 
12  protected Widget m_CharacterRotationFrame;
13 
14  protected Widget m_Play;
15  protected Widget m_ChooseServer;
16  protected Widget m_CustomizeCharacter;
17  protected Widget m_PlayVideo;
18  protected Widget m_Tutorials;
19  protected Widget m_TutorialButton;
20  protected Widget m_MessageButton;
21  protected Widget m_SettingsButton;
22  protected Widget m_Exit;
23  protected Widget m_NewsMain;
24  protected Widget m_NewsSec1;
25  protected Widget m_NewsSec2;
26  protected Widget m_PrevCharacter;
27  protected Widget m_NextCharacter;
28 
29  protected Widget m_LastPlayedTooltip;
30  protected Widget m_LastPlayedTooltipLabel;
31  protected TextWidget m_LastPlayedTooltipName;
32  protected TextWidget m_LastPlayedTooltipIP;
33  protected TextWidget m_LastPlayedTooltipPort;
34 
35  protected ref WidgetFadeTimer m_LastPlayedTooltipTimer;
36  protected ref Widget m_LastFocusedButton;
37 
38  protected ref TextWidget m_ModdedWarning;
39  protected ref ModsMenuSimple m_ModsSimple;
40  protected ref ModsMenuDetailed m_ModsDetailed;
41  protected ref ModsMenuTooltip m_ModsTooltip;
42 
43  protected Widget m_DlcFrame;
44  protected ref map<string,ref ModInfo> m_AllDlcsMap;
45  protected ref JsonDataDLCList m_DlcData;
46  protected ref array<ref MainMenuDlcHandlerBase> m_DlcHandlers;
47  protected ref MainMenuDlcHandlerBase m_DisplayedDlcHandler;
48 
49 
50  override Widget Init()
51  {
52  layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/main_menu.layout");
53 
54  m_Play = layoutRoot.FindAnyWidget("play");
55  m_ChooseServer = layoutRoot.FindAnyWidget("choose_server");
56  m_CustomizeCharacter = layoutRoot.FindAnyWidget("customize_character");
57  m_PlayVideo = layoutRoot.FindAnyWidget("play_video");
58  m_Tutorials = layoutRoot.FindAnyWidget("tutorials");
59  m_TutorialButton = layoutRoot.FindAnyWidget("tutorial_button");
60  m_MessageButton = layoutRoot.FindAnyWidget("message_button");
61  m_SettingsButton = layoutRoot.FindAnyWidget("settings_button");
62  m_Exit = layoutRoot.FindAnyWidget("exit_button");
63  m_PrevCharacter = layoutRoot.FindAnyWidget("prev_character");
64  m_NextCharacter = layoutRoot.FindAnyWidget("next_character");
65 
66  m_DlcFrame = layoutRoot.FindAnyWidget("dlc_Frame");
67  m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
68  m_ModdedWarning = TextWidget.Cast(layoutRoot.FindAnyWidget("ModdedWarning"));
69  m_CharacterRotationFrame = layoutRoot.FindAnyWidget("character_rotation_frame");
70 
71  m_LastPlayedTooltip = layoutRoot.FindAnyWidget("last_server_info");
72  m_LastPlayedTooltip.Show(false);
73  m_LastPlayedTooltipLabel = m_LastPlayedTooltip.FindAnyWidget("last_server_info_label");
74  m_LastPlayedTooltipName = TextWidget.Cast(m_LastPlayedTooltip.FindAnyWidget("last_server_info_name"));
75  m_LastPlayedTooltipIP = TextWidget.Cast(m_LastPlayedTooltip.FindAnyWidget("last_server_info_ip"));
76  m_LastPlayedTooltipPort = TextWidget.Cast(m_LastPlayedTooltip.FindAnyWidget("last_server_info_port"));
77 
78  m_LastPlayedTooltipTimer = new WidgetFadeTimer();
79 
80  m_Stats = new MainMenuStats(layoutRoot.FindAnyWidget("character_stats_root"));
81 
82  m_Mission = MissionMainMenu.Cast(GetGame().GetMission());
83 
84  m_LastFocusedButton = m_Play;
85 
86  m_ScenePC = m_Mission.GetIntroScenePC();
87 
88  if (m_ScenePC)
89  {
90  m_ScenePC.ResetIntroCamera();
91  }
92 
93  m_PlayVideo.Show(false);
94 
95  m_PlayerName = TextWidget.Cast(layoutRoot.FindAnyWidget("character_name_text"));
96 
97  // Set Version
98  string version;
99  GetGame().GetVersion(version);
100  m_Version.SetText("#main_menu_version" + " " + version);
101 
102  GetGame().GetUIManager().ScreenFadeOut(0);
103 
104  SetFocus(null);
105 
106  Refresh();
107 
108  LoadMods();
109  PopulateDlcFrame();
110 
111  GetDayZGame().GetBacklit().MainMenu_OnShow();
112  GetGame().GetMission().GetOnModMenuVisibilityChanged().Insert(ShowDlcFrame);
113 
114  g_Game.SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
115 
116  return layoutRoot;
117  }
118 
119  void ~MainMenu()
120  {
121  if (GetGame().GetMission())
122  {
123  GetGame().GetMission().GetOnModMenuVisibilityChanged().Remove(ShowDlcFrame);
124  }
125  }
126 
127  void LoadMods()
128  {
129  array<ref ModInfo> modArray = new array<ref ModInfo>();
130  GetGame().GetModInfos(modArray);
131 
132  if (modArray.Count() > 0)
133  {
134  modArray.Remove(modArray.Count() - 1);
135  modArray.Invert();
136  }
137 
138  FilterDlcs(modArray);
139 
140  if (m_ModsSimple)
141  delete m_ModsSimple;
142  if (m_ModsDetailed)
143  delete m_ModsDetailed;
144 
145  m_ModdedWarning.Show(GetGame().GetModToBeReported());
146 
147  if (modArray.Count() > 0)
148  {
149  layoutRoot.FindAnyWidget("ModsSimple").Show(true);
150  m_ModsTooltip = new ModsMenuTooltip(layoutRoot);
151 
152  m_ModsDetailed = new ModsMenuDetailed(modArray, layoutRoot.FindAnyWidget("ModsDetailed"), m_ModsTooltip, this);
153 
154  m_ModsSimple = new ModsMenuSimple(modArray, layoutRoot.FindAnyWidget("ModsSimple"), m_ModsDetailed);
155  }
156  }
157 
158  void FilterDlcs(inout array<ref ModInfo> modArray)
159  {
160  if (!m_AllDlcsMap)
161  m_AllDlcsMap = new map<string,ref ModInfo>();
162  m_AllDlcsMap.Clear();
163 
164  int count = modArray.Count();
165  ModInfo info;
166  for (int i = count - 1; i > -1; i--)
167  {
168  info = modArray[i];
169  if (info.GetIsDLC())
170  {
171  m_AllDlcsMap.Set(info.GetName(),info);
172  modArray.Remove(i);
173  }
174  }
175  }
176 
177  void ShowDlcFrame(bool show)
178  {
179  m_DlcFrame.Show(show);
180  if (m_DisplayedDlcHandler)
181  m_DisplayedDlcHandler.ShowInfoPanel(show);
182  }
183 
184  void PopulateDlcFrame()
185  {
186  if (!m_DlcHandlers)
187  m_DlcHandlers = new array<ref MainMenuDlcHandlerBase>();
188 
189  m_DlcData = DlcDataLoader.GetData();
190  int count = m_DlcData.DLCs.Count();
191  JsonDataDLCInfo data;
192  ModInfo info;
193 
194  for (int i = 0; i < count; i++)
195  {
196  data = m_DlcData.DLCs[i];
197  info = m_AllDlcsMap.Get(data.Name);
198  MainMenuDlcHandlerBase handler = new MainMenuDlcHandlerBase(info, m_DlcFrame, data);
199 
200  handler.ShowInfoPanel(true);
201  m_DisplayedDlcHandler = handler;//TODO: carousel will take care of this later
202 
203  m_DlcHandlers.Insert(handler);
204  }
205  }
206 
207  override bool OnMouseButtonDown(Widget w, int x, int y, int button)
208  {
209  if (w == m_CharacterRotationFrame)
210  {
211  if (m_ScenePC)
212  m_ScenePC.CharacterRotationStart();
213  return true;
214  }
215 
216  return false;
217  }
218 
219  override bool OnMouseButtonUp(Widget w, int x, int y, int button)
220  {
221  if (m_ScenePC)
222  m_ScenePC.CharacterRotationStop();
223  return false;
224  }
225 
226  override bool OnClick(Widget w, int x, int y, int button)
227  {
228  if (button == MouseState.LEFT)
229  {
230  if (w == m_Play)
231  {
232  m_LastFocusedButton = m_Play;
233  Play();
234  return true;
235  }
236  else if (w == m_ChooseServer)
237  {
238  m_LastFocusedButton = m_ChooseServer;
239  OpenMenuServerBrowser();
240  return true;
241  }
242  else if (w == m_CustomizeCharacter)
243  {
244  OpenMenuCustomizeCharacter();
245  return true;
246  }
247  else if (w == m_TutorialButton)
248  {
249  OpenTutorials();
250  return true;
251  }
252  else if (w == m_MessageButton)
253  {
254  OpenCredits();
255  return true;
256  }
257  else if (w == m_SettingsButton)
258  {
259  OpenSettings();
260  return true;
261  }
262  else if (w == m_Exit)
263  {
264  Exit();
265  return true;
266  }
267  else if (w == m_PrevCharacter)
268  {
269  PreviousCharacter();
270  return true;
271  }
272  else if (w == m_NextCharacter)
273  {
274  NextCharacter();
275  return true;
276  }
277  else if (w == m_PlayVideo)
278  {
279  m_LastFocusedButton = m_PlayVideo;
280  PlayVideo();
281  return true;
282  }
283  else if (w == m_Tutorials)
284  {
285  m_LastFocusedButton = m_Tutorials;
286  OpenTutorials();
287  return true;
288  }
289  }
290  return false;
291  }
292 
293  override bool OnMouseEnter(Widget w, int x, int y)
294  {
295  if (w == m_Play)
296  {
297  string ip = "";
298  string name = "";
299  int port = 0;
300 
301  if (m_ScenePC && !m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
302  {
303  int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
304  m_ScenePC.GetIntroCharacter().GetLastPlayedServer(charID, ip, name, port);
305 
306  m_LastPlayedTooltipName.SetText("#server_details_name " + name);
307  m_LastPlayedTooltipIP.SetText("#main_menu_IP " + ip);
308  m_LastPlayedTooltipPort.SetText("#main_menu_port " + port);
309 
310  m_LastPlayedTooltipTimer.FadeIn(m_LastPlayedTooltip, 0.3, true);
311  }
312  }
313 
314  if (IsFocusable(w))
315  {
316  ColorHighlight(w);
317  return true;
318  }
319  return false;
320  }
321 
322  override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
323  {
324  if (w == m_Play)
325  {
326  m_LastPlayedTooltipTimer.FadeOut(m_LastPlayedTooltip, 0.3, true);
327  }
328 
329  if (IsFocusable(w))
330  {
331  ColorNormal(w);
332  return true;
333  }
334  return false;
335  }
336 
337  override bool OnFocus(Widget w, int x, int y)
338  {
339  if (IsFocusable(w))
340  {
341  ColorHighlight(w);
342  return true;
343  }
344  return false;
345  }
346 
347  override bool OnFocusLost(Widget w, int x, int y)
348  {
349  if (IsFocusable(w))
350  {
351  ColorNormal(w);
352  return true;
353  }
354  return false;
355  }
356 
357  bool IsFocusable(Widget w)
358  {
359  if (w)
360  {
361  if (w == m_Play || w == m_ChooseServer || w == m_CustomizeCharacter || w == m_TutorialButton || w == m_MessageButton || w == m_SettingsButton);
362  {
363  return true;
364  }
365 
366  if (w == m_Exit || w == m_PlayVideo);
367  {
368  return true;
369  }
370 
371  if (w == m_NewsMain || w == m_NewsSec1 || w == m_NewsSec2 || w == m_PrevCharacter || w == m_NextCharacter);
372  {
373  return true;
374  }
375  }
376  return false;
377  }
378 
379  override void Refresh()
380  {
381  string name;
382  if (m_ScenePC && g_Game.GetGameState() == DayZGameState.MAIN_MENU)
383  OnChangeCharacter();
384 
385  string version;
386  GetGame().GetVersion(version);
387  m_Version.SetText("#main_menu_version" + " " + version);
388  }
389 
390  override void OnShow()
391  {
392  if (m_DisplayedDlcHandler)
393  m_DisplayedDlcHandler.ShowInfoPanel(true);
394 
395  SetFocus(null);
396  OnChangeCharacter(false);
397  m_Stats.UpdateStats();
398  LoadMods();
399  return;
400  }
401 
402  override void OnHide()
403  {
404  if (m_DisplayedDlcHandler)
405  m_DisplayedDlcHandler.ShowInfoPanel(false);
406 
407  GetDayZGame().GetBacklit().MainMenu_OnHide();
408  }
409 
410  override void Update(float timeslice)
411  {
412  super.Update(timeslice);
413 
414  if (GetGame() && GetUApi().GetInputByID(UAUIBack).LocalPress())
415  {
416  Exit();
417  }
418  }
419 
420  void Play()
421  {
422  if (!g_Game.IsNewCharacter())
423  {
424  GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallByName(this, "ConnectLastSession");
425  }
426  else
427  {
428  GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallByName(this, "ConnectBestServer");
429  }
430  }
431 
432  bool CanSaveDefaultCharacter()
433  {
434  if (m_ScenePC && m_ScenePC.GetIntroCharacter() && m_ScenePC.GetIntroCharacter().GetCharacterID() == -1)
435  {
436  return true;
437  }
438  return false;
439  }
440 
441  void OpenMenuServerBrowser()
442  {
443  EnterScriptedMenu(MENU_SERVER_BROWSER);
444  }
445 
446  void OpenMenuCustomizeCharacter()
447  {
448  EnterScriptedMenu(MENU_CHARACTER);
449  }
450 
451  void NextCharacter()
452  {
453  if (m_ScenePC && m_ScenePC.GetIntroCharacter())
454  {
455  int charID = m_ScenePC.GetIntroCharacter().GetNextCharacterID();
456  if (charID != m_ScenePC.GetIntroCharacter().GetCharacterID())
457  {
458  m_ScenePC.GetIntroCharacter().SetCharacterID(charID);
459  OnChangeCharacter();
460  }
461  }
462  }
463 
464  void PreviousCharacter()
465  {
466  if (m_ScenePC && m_ScenePC.GetIntroCharacter())
467  {
468  int charID = m_ScenePC.GetIntroCharacter().GetPrevCharacterID();
469  if (charID != m_ScenePC.GetIntroCharacter().GetCharacterID())
470  {
471  m_ScenePC.GetIntroCharacter().SetCharacterID(charID);
472  OnChangeCharacter();
473  }
474  }
475  }
476 
477  void OnChangeCharacter(bool create_character = true)
478  {
479  if (m_ScenePC && m_ScenePC.GetIntroCharacter())
480  {
481  int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
482  if (create_character)
483  {
484  m_ScenePC.GetIntroCharacter().CreateNewCharacterById(charID);
485  }
486  m_PlayerName.SetText(m_ScenePC.GetIntroCharacter().GetCharacterNameById(charID));
487 
488  Widget w = m_CustomizeCharacter.FindAnyWidget(m_CustomizeCharacter.GetName() + "_label");
489 
490  if (w)
491  {
492  TextWidget text = TextWidget.Cast(w);
493 
494  if (m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
495  {
496  text.SetText("#layout_main_menu_customize_char");
497  }
498  else
499  {
500  text.SetText("#layout_main_menu_rename");
501  }
502  }
503  if (m_ScenePC.GetIntroCharacter().GetCharacterObj())
504  {
505  if (m_ScenePC.GetIntroCharacter().GetCharacterObj().IsMale())
506  m_ScenePC.GetIntroCharacter().SetCharacterGender(ECharGender.Male);
507  else
508  m_ScenePC.GetIntroCharacter().SetCharacterGender(ECharGender.Female);
509  }
510 
511  //update character stats
512  m_Stats.UpdateStats();
513  }
514  }
515 
516  void OpenStats()
517  {
518 
519  }
520 
521  void OpenMessages()
522  {
523 
524  }
525 
526  void OpenSettings()
527  {
528  EnterScriptedMenu(MENU_OPTIONS);
529  }
530 
531  void PlayVideo()
532  {
533  EnterScriptedMenu(MENU_VIDEO);
534  }
535 
536  void OpenTutorials()
537  {
538  EnterScriptedMenu(MENU_TUTORIAL);
539  }
540 
541  void OpenCredits()
542  {
543  EnterScriptedMenu(MENU_CREDITS);
544  m_Mission.OnMenuEnter(MENU_CREDITS);
545  }
546 
547  void Exit()
548  {
549  GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_MAIN_QUIT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
550  }
551 
552  bool TryConnectLastSession(out string ip, out int port)
553  {
554  if (g_Game.GetLastVisitedServer(ip, port))
555  {
556  return true;
557  }
558  return false;
559  }
560 
561  void AutoConnect()
562  {
563  OnlineServices.AutoConnectToEmptyServer();
564  }
565 
566  void ConnectLastSession()
567  {
568  string ip = "";
569  string name = "";
570  int port = 0;
571 
572  if (!m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
573  {
574  int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
575  m_ScenePC.GetIntroCharacter().GetLastPlayedServer(charID,ip,name,port);
576  }
577 
578  if (ip.Length() > 0)
579  {
580  g_Game.ConnectFromServerBrowser(ip, port, "");
581  }
582  else
583  {
584  OpenMenuServerBrowser();
585  }
586  }
587 
588  void ConnectBestServer()
589  {
590  ConnectLastSession();
591  }
592 
593  override bool OnModalResult(Widget w, int x, int y, int code, int result)
594  {
595  if (code == IDC_MAIN_QUIT)
596  {
597  if (result == 2)
598  GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(g_Game.RequestExit, IDC_MAIN_QUIT);
599  if (result == 3)
601  return true;
602  }
603  else if (code == 555)
604  {
605  if (result == 2)
606  OpenTutorials();
607  }
608  return false;
609  }
610 
611  //Coloring functions (Until WidgetStyles are useful)
612  void ColorHighlight(Widget w)
613  {
614  if (!w)
615  return;
616 
617  int color_pnl = ARGB(255, 0, 0, 0);
618  int color_lbl = ARGB(255, 255, 0, 0);
619  int color_img = ARGB(255, 200, 0, 0);
620 
621  ButtonSetColor(w, color_pnl);
622  ButtonSetTextColor(w, color_lbl);
623  ImagenSetColor(w, color_img);
624  }
625 
626  void ColorNormal(Widget w)
627  {
628  if (!w)
629  return;
630 
631  int color_pnl = ARGB(0, 0, 0, 0);
632  int color_lbl = ARGB(255, 255, 255, 255);
633  int color_img = ARGB(255, 255, 255, 255);
634 
635  ButtonSetColor(w, color_pnl);
636  ButtonSetTextColor(w, color_lbl);
637  ImagenSetColor(w, color_img);
638  }
639 
640  void ButtonSetText(Widget w, string text)
641  {
642  if (!w)
643  return;
644 
645  TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
646 
647  if (label)
648  {
649  label.SetText(text);
650  }
651 
652  }
653 
654  void ButtonSetColor(Widget w, int color)
655  {
656  if (!w)
657  return;
658 
659  Widget panel = w.FindWidget(w.GetName() + "_panel");
660 
661  if (panel)
662  {
663  panel.SetColor(color);
664  }
665  }
666 
667  void ImagenSetColor(Widget w, int color)
668  {
669  if (!w)
670  return;
671 
672  Widget panel = w.FindWidget(w.GetName() + "_image");
673 
674  if (panel)
675  {
676  panel.SetColor(color);
677  }
678  }
679 
680  void ButtonSetTextColor(Widget w, int color)
681  {
682  if (!w)
683  return;
684 
685  TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
686  TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
687  TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
688 
689  if (label)
690  {
691  label.SetColor(color);
692  }
693 
694  if (text)
695  {
696  text.SetColor(color);
697  }
698 
699  if (text2)
700  {
701  text2.SetColor(color);
702  }
703  }
704 }
GetGame
proto native CGame GetGame()
UIScriptedMenu
Definition: dayzgame.c:63
MENU_SERVER_BROWSER
const int MENU_SERVER_BROWSER
Definition: constants.c:190
ModInfo
Definition: modinfo.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
Exit
proto native void Exit()
OnHide
override void OnHide()
Definition: inventorymenu.c:141
GetFocus
proto native Widget GetFocus()
y
Icon y
MENU_CHARACTER
const int MENU_CHARACTER
Definition: constants.c:164
Refresh
void Refresh()
Definition: sizetochild.c:108
JsonDataDLCInfo
Definition: jsondatadlcinfo.c:6
CALL_CATEGORY_GUI
const int CALL_CATEGORY_GUI
Definition: tools.c:9
JsonDataDLCList
Definition: jsondatadlcinfo.c:1
OnMouseLeave
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition: uihintpanel.c:276
OnMouseButtonUp
override bool OnMouseButtonUp(Widget w, int x, int y, int button)
Definition: radialmenu.c:668
IDC_MAIN_QUIT
const int IDC_MAIN_QUIT
Definition: constants.c:136
map
map
Definition: controlsxboxnew.c:3
Init
class InventoryGridController extends ScriptedWidgetEventHandler Init
Definition: uihintpanel.c:46
TextWidget
Definition: enwidgets.c:219
ColorNormal
void ColorNormal(Widget w)
Definition: serverbrowsertab.c:668
DayZIntroScenePC
Definition: dayzintroscenepc.c:1
m_Mission
protected Mission m_Mission
Definition: dayzplayermeleefightlogic_lightheavy.c:23
g_Game
DayZGame g_Game
Definition: dayzgame.c:3727
ECharGender
ECharGender
Definition: echargender.c:1
ColorHighlight
void ColorHighlight(Widget w)
Definition: serverbrowsertab.c:619
MENU_CREDITS
const int MENU_CREDITS
Definition: constants.c:195
OnFocusLost
override bool OnFocusLost(Widget w, int x, int y)
Definition: serverbrowsertab.c:235
MENU_OPTIONS
const int MENU_OPTIONS
Definition: constants.c:173
MouseState
MouseState
Definition: ensystem.c:310
array< ref MainMenuDlcHandlerBase >
Update
proto native volatile void Update()
Definition: playersoundmanager.c:125
m_Stats
ref array< ref StatDebugObject > m_Stats
Definition: remoteplayerstatdebug.c:13
SetFocus
proto native void SetFocus(Widget w)
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
x
Icon x
OnMouseButtonDown
bool OnMouseButtonDown(Widget w, int x, int y, int button)
Definition: pluginitemdiagnostic.c:117
DlcDataLoader
Definition: dlcdataloader.c:1
m_ModdedWarning
TextWidget m_ModdedWarning
Definition: dayzgame.c:676
OnFocus
override bool OnFocus(Widget w, int x, int y)
Definition: serverbrowsertab.c:217
MENU_VIDEO
const int MENU_VIDEO
Definition: constants.c:192
OnShow
override void OnShow()
Definition: controlsxbox.c:349
Widget
Definition: enwidgets.c:189
GetUApi
proto native UAInputAPI GetUApi()
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
IsFocusable
bool IsFocusable(Widget w)
Definition: serverbrowsertab.c:284
MENU_TUTORIAL
const int MENU_TUTORIAL
Definition: constants.c:194