Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
mainmenuconsoles.c
Go to the documentation of this file.
1#ifndef BUILD_EXPERIMENTAL
2 #define ENABLE_CAROUSEL
3#endif
4
5class MainMenuConsole extends UIScriptedMenu
6{
7 protected ref MainMenuVideo m_Video;
8
9 protected MissionMainMenu m_Mission;
10 protected DayZIntroScenePC m_ScenePC;
11
12 protected TextWidget m_PlayerName;
13 protected TextWidget m_Version;
14
16 protected Widget m_DialogPanel;
19 protected Widget m_PlayVideo;
20 protected Widget m_Tutorials;
21 protected Widget m_Options;
22 protected Widget m_Exit;
23 protected Widget m_Controls;
24 protected Widget m_Play;
25 protected Widget m_MessageButton;
27 protected ImageWidget m_FeedbackQRCode;
28 protected ImageWidget m_FeedbackPlatformIcon;
29 protected ButtonWidget m_FeedbackClose;
31
32 protected ref Widget m_LastFocusedButton;
33
34 protected Widget m_DlcFrame;
35
36 protected ref NewsCarousel m_NewsCarousel;
37
40
42 protected int m_Width, m_Height;
43
44 override Widget Init()
45 {
46 #ifdef PLATFORM_MSSTORE
47 layoutRoot = g_Game.GetWorkspace().CreateWidgets("gui/layouts/new_ui/main_menu_msstore.layout");
48 #else
49 layoutRoot = g_Game.GetWorkspace().CreateWidgets("gui/layouts/new_ui/main_menu_console.layout");
50 #endif
51
52 m_MainMenuPanel = layoutRoot.FindAnyWidget("main_menu_panel");
53 m_PlayerName = TextWidget.Cast(layoutRoot.FindAnyWidget("character_name_xbox"));
54 m_ChangeAccount = layoutRoot.FindAnyWidget("choose_account");
55 m_CustomizeCharacter = layoutRoot.FindAnyWidget("customize_character");
56 m_PlayVideo = layoutRoot.FindAnyWidget("play_video");
57 m_Tutorials = layoutRoot.FindAnyWidget("tutorials");
58 m_Options = layoutRoot.FindAnyWidget("options");
59 m_Exit = layoutRoot.FindAnyWidget("exit");
60 m_Controls = layoutRoot.FindAnyWidget("controls");
61 m_Play = layoutRoot.FindAnyWidget("play");
62 m_MessageButton = layoutRoot.FindAnyWidget("message_button");
63
64 m_DlcFrame = layoutRoot.FindAnyWidget("dlc_Frame");
65 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
66 m_Mission = MissionMainMenu.Cast(g_Game.GetMission());
67 m_ShowFeedback = layoutRoot.FindAnyWidget("feedback");
68 m_FeedbackQRCode = ImageWidget.Cast(layoutRoot.FindAnyWidget("qr_image"));
69 m_FeedbackClose = ButtonWidget.Cast(layoutRoot.FindAnyWidget("close_button"));
70 m_FeedbackCloseLabel = RichTextWidget.Cast(layoutRoot.FindAnyWidget("close_button_label"));
71 m_DialogPanel = layoutRoot.FindAnyWidget("main_menu_dialog");
72 m_NewsCarouselFrame = layoutRoot.FindAnyWidget("carousel_Frame");
73
75
76 g_Game.GetUIManager().ScreenFadeOut(1);
77
78 string launch_done;
79 if (!g_Game.GetProfileString("FirstLaunchDone", launch_done) || launch_done != "true")
80 {
81 g_Game.SetProfileString("FirstLaunchDone", "true");
82 g_Game.GetUIManager().ShowDialog("#main_menu_tutorial", "#main_menu_tutorial_desc", 555, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
83 g_Game.SaveProfile();
84 }
85
87 LoadMods();
88 Refresh();
89
90 CheckWidth();
91
92 #ifdef ENABLE_CAROUSEL
94 #else
95 m_NewsCarousel = null;
96 #endif
97
98 if (g_Game.GetMission())
99 {
100 g_Game.GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
101 g_Game.GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
102 }
103
104 OnInputDeviceChanged(g_Game.GetInput().GetCurrentInputDevice());
105
106 g_Game.GetContentDLCService().m_OnChange.Insert(OnDLCChange);
107
108 #ifdef PLATFORM_MSSTORE
109 // Enable exit button
110 m_Exit.Show(true);
111 #endif
112
113 #ifdef PLATFORM_CONSOLE
114 #ifndef PLATFORM_PS4
115 #ifdef PLATFORM_MSSTORE
116 m_ChangeAccount.Show(false);
117 #else
118 m_ChangeAccount.Show(GetGame().GetInput().IsEnabledMouseAndKeyboard());
119 #endif
120 m_FeedbackQRCode.LoadImageFile(0, "gui/textures/feedback_qr_xbox.edds");
121 #else
122 m_FeedbackQRCode.LoadImageFile(0, "gui/textures/feedback_qr_ps.edds");
123 #endif
124 #endif
125
126 #ifdef PLATFORM_CONSOLE
127 #ifdef PLATFORM_XBOX
128 m_ChangeAccount.Show(false);
129 #endif
130 #endif
131 m_DlcFrame.Show(false);
132
133 #ifdef PLATFORM_MSSTORE
134 // Disable controls button on MS Store by default
135 m_Controls.Show(false);
136 #endif
137
138 return layoutRoot;
139 }
140
142 {
143 if (g_Game.GetMission())
144 {
145 g_Game.GetMission().GetOnInputPresetChanged().Remove(OnInputPresetChanged);
146 g_Game.GetMission().GetOnInputDeviceChanged().Remove(OnInputDeviceChanged);
147 }
148
149 if (g_Game.GetContentDLCService())
150 g_Game.GetContentDLCService().m_OnChange.Remove(OnDLCChange);
151 }
152
153 void OnDLCChange(EDLCId dlcId)
154 {
156 LoadMods();
157
158 #ifdef ENABLE_CAROUSEL
159 if (m_NewsCarousel)
160 {
161 m_NewsCarousel.Destroy();
162 m_NewsCarousel = null;
164 m_NewsCarousel.ShowNewsCarousel(true);
165 }
166 #endif
167 }
168
169 void LoadMods()
170 {
173 }
174
175 protected void OnInputPresetChanged()
176 {
177 #ifdef PLATFORM_CONSOLE
179 #endif
180 }
181
182 protected void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
183 {
184 #ifndef PLATFORM_MSSTORE // No feedback or account switching on MS Store
185 switch (pInputDeviceType)
186 {
187 case EInputDeviceType.CONTROLLER:
188 if (g_Game.GetInput().IsEnabledMouseAndKeyboard())
189 {
190 g_Game.GetUIManager().ShowUICursor(false);
191 #ifdef PLATFORM_CONSOLE
193 {
195 }
196
197 m_FeedbackClose.Show(false);
198 m_ShowFeedback.Show(false);
199 #ifndef PLATFORM_PS4
200 #ifndef PLATFORM_XBOX
201 m_ChangeAccount.Show(false);
203 {
205 }
206 #endif
207 #endif
208 #endif
209 }
210
211 #ifdef PLATFORM_MSSTORE
212 // Enable controls button on MS Store by default
213 m_Controls.Show(true);
214 #endif
215 break;
216
217 default:
218 if (g_Game.GetInput().IsEnabledMouseAndKeyboard())
219 {
220 g_Game.GetUIManager().ShowUICursor(true);
221 #ifdef PLATFORM_CONSOLE
222 m_ShowFeedback.Show(true);
223 m_FeedbackClose.Show(true);
224 m_FeedbackCloseLabel.SetText(string.Format("%1",InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#close", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_NORMAL)));
225 #ifndef PLATFORM_PS4
226 #ifndef PLATFORM_MSSTORE
227 #ifndef PLATFORM_XBOX
228 m_ChangeAccount.Show(true);
229 #endif
230 #endif
231 #endif
232 #endif
233
234 #ifdef PLATFORM_MSSTORE
235 // Disable controls button on MS Store
236 m_Controls.Show(false);
237 #endif
238 }
239 break;
240 }
241 #else
242 switch (pInputDeviceType)
243 {
244 case EInputDeviceType.CONTROLLER:
245 // Enable controls button on MS Store by default
246 m_Controls.Show(true);
247 break;
248
249 default:
250 // Disable controls button on MS Store
251 m_Controls.Show(false);
252 break;
253 }
254 #endif
255
258 }
259
260 override bool OnClick(Widget w, int x, int y, int button)
261 {
263 {
264 if (w == m_Play)
265 {
268 return true;
269 }
270 else if (w == m_Options)
271 {
274 return true;
275 }
276 else if (w == m_Exit)
277 {
279 Exit();
280 return true;
281 }
282 else if (w == m_Tutorials)
283 {
286 return true;
287 }
288 else if (w == m_Controls)
289 {
292 return true;
293 }
294 else if (w == m_CustomizeCharacter)
295 {
298 return true;
299 }
300 #ifndef PLATFORM_MSSTORE // No account switching on MS Store
301 #ifndef PLATFORM_XBOX
302 else if (w == m_ChangeAccount)
303 {
306 return true;
307 }
308 #endif
309 #endif
310 else if (w == m_MessageButton)
311 {
312 OpenCredits();
313 return true;
314 }
315 }
316
317 if (w == m_ShowFeedback || w == m_FeedbackClose)
318 {
321 return true;
322 }
323 return false;
324 }
325
326 override bool OnFocus(Widget w, int x, int y)
327 {
329 if (ButtonWidget.Cast(w))
330 {
332 }
333 return true;
334 }
335
336 override bool OnFocusLost(Widget w, int x, int y)
337 {
338 ColorNormal(w);
339 return true;
340 }
341
342 override bool OnMouseEnter(Widget w, int x, int y)
343 {
344 if (w == m_FeedbackClose)
345 {
347 return true;
348 }
349 return false;
350 }
351
352 override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
353 {
354 if (w == m_FeedbackClose)
355 {
356 ColorNormal(w);
357 return true;
358 }
359 return true;
360 }
361
362 override void Refresh()
363 {
364 string name;
365
366 if (g_Game.GetUserManager() && g_Game.GetUserManager().GetSelectedUser())
367 {
368 name = g_Game.GetUserManager().GetSelectedUser().GetName();
369 if (name.LengthUtf8() > 18)
370 {
371 name = name.SubstringUtf8(0, 18);
372 name += "...";
373 }
374 }
375 m_PlayerName.SetText(name);
376
377 string version;
378 g_Game.GetVersion(version);
379 m_Version.SetText("#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")");
380
382 m_DisplayedDlcHandler.UpdateAllPromotionInfo();
383 }
384
385 override void OnShow()
386 {
387 #ifdef PLATFORM_MSSTORE
388 #ifdef ENABLE_CAROUSEL
389 // Hack: Recreate NewsCarousel to refresh it on menu show after applying options
390 if (m_NewsCarousel)
391 {
392 m_NewsCarousel.Destroy();
393 m_NewsCarousel = null;
395 }
396 #endif
397 #endif
398
399 GetDayZGame().GetBacklit().MainMenu_OnShow();
400
402
403 LoadMods();
404 Refresh();
405
406 if (m_ScenePC && m_ScenePC.GetIntroCamera())
407 {
408 m_ScenePC.GetIntroCamera().LookAt(m_ScenePC.GetIntroCharacter().GetPosition() + Vector(0, 1, 0));
409 }
411 m_DisplayedDlcHandler.ShowInfoPanel(true);
412
413 super.OnShow();
414 #ifdef PLATFORM_CONSOLE
415 layoutRoot.FindAnyWidget("ButtonHolderCredits").Show(g_Game.GetInput().IsEnabledMouseAndKeyboard());
416 OnInputDeviceChanged(g_Game.GetInput().GetCurrentInputDevice());
417 #endif
418 }
419
420 override void OnHide()
421 {
423 m_DisplayedDlcHandler.ShowInfoPanel(false);
424 GetDayZGame().GetBacklit().MainMenu_OnHide();
425 }
426
427 override void Update(float timeslice)
428 {
429 super.Update(timeslice);
430
431 CheckWidth();
432
433 if (g_Game.GetLoadState() != DayZGameState.CONNECTING && !g_Game.GetUIManager().IsDialogVisible())
434 {
435 #ifndef PLATFORM_CONSOLE
436 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
437 {
438 if (!g_Game.GetUIManager().IsDialogHiding())
439 Exit();
440 }
441 #else
442 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
443 {
445 {
447 }
448 else
449 {
450 EnterScriptedMenu(MENU_MAIN);
451 }
452 }
453
454 if (GetUApi().GetInputByID(UAUICredits).LocalPress())
455 OpenCredits();
456 #endif
457 }
458
459 if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
460 {
461 if (CanStoreBeOpened())
462 m_DisplayedDlcHandler.GetModInfo().GoToStore();
463 }
464
465 if (GetUApi().GetInputByID(UAUIThumbRight).LocalPress())
466 {
468 }
469
470 #ifdef ENABLE_CAROUSEL
471 if (m_NewsCarousel)
472 {
473 if (GetUApi().GetInputByID(UAUICtrlX).LocalHold())
474 {
475 m_NewsCarousel.ShowPromotion();
476 }
477
478 if (GetUApi().GetInputByID(UAUIPadRight).LocalPress())
479 {
480 m_NewsCarousel.OnClickNextArticle();
481 }
482
483 if (GetUApi().GetInputByID(UAUIPadLeft).LocalPress())
484 {
485 m_NewsCarousel.OnClickPreviousArticle();
486 }
487
488 m_NewsCarousel.Update(timeslice);
489 }
490 #endif
491 }
492
493 protected void ToggleFeedbackDialog()
494 {
495 bool dialogVisible = FeedbackDialogVisible();
496 m_DialogPanel.Show(!dialogVisible);
497 m_MainMenuPanel.Show(dialogVisible);
498
499 if (!dialogVisible)
500 {
501 PPERequesterBank.GetRequester(PPERequester_FeedbackBlur).Start();
502 }
503 else
504 {
505 PPERequesterBank.GetRequester(PPERequester_FeedbackBlur).Stop();
506 }
507
510 }
511
513 {
514 return m_DialogPanel.IsVisible();
515 }
516
518 {
519 return m_DisplayedDlcHandler != null;
520 }
521
523 {
524 EnterScriptedMenu(MENU_SERVER_BROWSER);
525 }
526
528 {
529 EnterScriptedMenu(MENU_XBOX_CONTROLS);
530 }
531
533 {
534 EnterScriptedMenu(MENU_OPTIONS);
535 }
536
538 {
539 EnterScriptedMenu(MENU_VIDEO);
540 }
541
543 {
544 EnterScriptedMenu(MENU_TUTORIAL);
545 }
546
548 {
549 EnterScriptedMenu(MENU_CHARACTER);
550 }
551
553 {
554 EnterScriptedMenu(MENU_CREDITS);
555 m_Mission.OnMenuEnter(MENU_CREDITS);
556 }
557
559 {
560 BiosUserManager user_manager = g_Game.GetUserManager();
561 if (user_manager)
562 {
563 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
564 #ifndef PLATFORM_WINDOWS
565 user_manager.SelectUserEx(null);
566 #endif
567 g_Game.GetUIManager().Back();
568 }
569 }
570
571 void Exit()
572 {
573 g_Game.GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_MAIN_QUIT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
574 }
575
576 //Coloring functions (Until WidgetStyles are useful)
578 {
579 if (!w)
580 return;
581
582 int color_pnl = ARGB(255, 200, 0, 0);
583 int color_lbl = ARGB(255, 255, 255, 255);
584
585 ButtonSetColor(w, color_pnl);
587 ButtonSetTextColor(w, color_lbl);
588 }
589
591 {
592 if (!w)
593 return;
594
595 int color_pnl = ARGB(0, 0, 0, 0);
596 int color_lbl = ARGB(255, 255, 255, 255);
597
598 ButtonSetColor(w, color_pnl);
599 ButtonSetAlphaAnim(null);
600 ButtonSetTextColor(w, color_lbl);
601 }
602
603 override bool OnModalResult(Widget w, int x, int y, int code, int result)
604 {
605 if (code == IDC_MAIN_QUIT)
606 {
607 if (result == 2)
608 {
609 g_Game.GetCallQueue(CALL_CATEGORY_GUI).Call(g_Game.RequestExit, IDC_MAIN_QUIT);
610 }
611
612 return true;
613 }
614 else if (code == 555)
615 {
616 if (result == 2)
617 {
619 }
620 }
621 return false;
622 }
623
624 void ButtonSetText(Widget w, string text)
625 {
626 if (!w)
627 return;
628
629 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
630
631 if (label)
632 {
633 label.SetText(text);
634 }
635
636 }
637
638 void ButtonSetColor(Widget w, int color)
639 {
640 if (!w)
641 return;
642
643 Widget panel = w.FindWidget(w.GetName() + "_panel");
644
645 if (panel)
646 {
647 panel.SetColor(color);
648 }
649 }
650
652 {
653 if (!w)
654 return;
655
656 Widget panel = w.FindWidget(w.GetName() + "_panel");
657
658 if (panel)
659 {
660 SetWidgetAnimAlpha(panel);
661 }
662 }
663
664 void ButtonSetTextColor(Widget w, int color)
665 {
666 if (!w)
667 return;
668
669 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
670 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
671 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
672
673 if (label)
674 {
675 label.SetColor(color);
676 }
677
678 if (text)
679 {
680 text.SetColor(color);
681 }
682
683 if (text2)
684 {
685 text2.SetColor(color);
686 }
687 }
688
689 protected void UpdateControlsElements()
690 {
691 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
692 string context;
694 {
695 context = InputUtils.GetRichtextButtonIconFromInputAction("UAUICredits", "#menu_credits", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR);
696 #ifndef PLATFORM_MSSTORE
697 #ifndef PLATFORM_PS4
698 #ifndef PLATFORM_XBOX
699 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "#layout_xbox_main_menu_toolbar_account", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
700 #endif
701 #endif
702 #endif
703 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#layout_xbox_main_menu_toolbar_select", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
704 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUIThumbRight", "#layout_main_menu_feedback", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
705 }
706 else
707 {
708 context = InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#close", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR);
709 }
710
711 toolbar_text.SetText(context);
712 }
713
715 {
716 bool toolbarShow = false;
717 #ifdef PLATFORM_CONSOLE
718 toolbarShow = !g_Game.GetInput().IsEnabledMouseAndKeyboard() || g_Game.GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
719 #endif
720
721 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
722 }
723
725 {
726 int w, h;
727 ScreenWidthType widthType;
728 GetScreenSize(w, h);
729
730 if(h > 0)
731 {
732 float ratio = w / h;
733 if(ratio > 1.75)
734 widthType = ScreenWidthType.WIDE;
735 else if(ratio > 1.5)
736 widthType = ScreenWidthType.MEDIUM;
737 else
738 widthType = ScreenWidthType.NARROW;
739 }
740
741 m_Width = w;
742 m_Height = h;
743
744 if (widthType != m_WidthType)
745 {
746 m_WidthType = widthType;
747 #ifdef ENABLE_CAROUSEL
748 if (m_NewsCarousel)
749 {
750 m_NewsCarousel.Destroy();
751 m_NewsCarousel = null;
753 }
754 #endif
755 }
756 }
757
759 protected ref JsonDataDLCList m_DlcData;
760 protected ref array<ref MainMenuDlcHandlerBase> m_DlcHandlers;
761 protected ref MainMenuDlcHandlerBase m_DisplayedDlcHandler;
764
765 [Obsolete("No replacement")]
767 {
768 if (!m_DlcHandlers)
770 else
771 {
772 // TODO: Would be better to update the parts that need updating instead of full recreation
773 // Destroying and then reloading the same video is quite wasteful
774 m_DlcHandlers.Clear();
775 }
776
778 int count = m_DlcData.DLCs.Count();
779 JsonDataDLCInfo data;
780 ModInfo info;
781
782 for (int i = 0; i < count; i++)
783 {
784 data = m_DlcData.DLCs[i];
785 info = m_AllDlcsMap.Get(data.Name);
786 MainMenuDlcHandlerBase handler = new MainMenuDlcHandlerBase(info, m_DlcFrame, data);
787
788 handler.ShowInfoPanel(true);
789 m_DisplayedDlcHandler = handler;//TODO: carousel will take care of this later
790
791 m_DlcHandlers.Insert(handler);
792 }
793 }
794
795 [Obsolete("No replacement")]
796 void FilterDLCs(inout array<ref ModInfo> modArray)
797 {
798 if (!m_AllDlcsMap)
800
801 m_AllDlcsMap.Clear();
802 ModInfo info;
803 int count = modArray.Count();
804 for (int i = count - 1; i >= 0; i--)
805 {
806 info = modArray[i];
807 if (!info.GetIsDLC())
808 modArray.Remove(i);
809 else
810 m_AllDlcsMap.Set(info.GetName(), info);
811 }
812 }
813}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
bool SelectUserEx(BiosUser user)
static JsonDataDLCList GetData()
static const float ICON_SCALE_NORMAL
Definition inpututils.c:14
static const float ICON_SCALE_TOOLBAR
Definition inpututils.c:15
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Definition inpututils.c:167
static void LoadMods()
static void ClearAllDLCs()
proto owned string GetName()
proto bool GetIsDLC()
Xbox menu.
Definition dayzgame.c:64
ScreenWidthType m_WidthType
void OnInputPresetChanged()
void ButtonSetText(Widget w, string text)
bool FeedbackDialogVisible()
void UpdateControlsElementVisibility()
Widget m_Exit
Definition mainmenu.c:23
override void Update(float timeslice)
ref Widget m_LastFocusedButton
Definition mainmenu.c:37
void OpenMenuServerBrowser()
Definition mainmenu.c:434
Widget m_Tutorials
Definition mainmenu.c:19
override void Refresh()
Widget m_MessageButton
Definition mainmenu.c:21
ImageWidget m_FeedbackPlatformIcon
ref JsonDataDLCList m_DlcData
DEPRICATED.
Definition mainmenu.c:743
void CheckWidth()
Definition mainmenu.c:704
ButtonWidget m_Play
ref array< ref ModInfo > m_AllDLCs
Widget m_PlayVideo
Definition mainmenu.c:17
override void OnShow()
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
ButtonWidget m_ShowFeedback
Widget m_NewsCarouselFrame
Definition mainmenu.c:46
void ButtonSetColor(Widget w, int color)
ref MainMenuDlcHandlerBase m_DisplayedDlcHandler
Definition mainmenu.c:741
ref array< ref MainMenuDlcHandlerBase > m_DlcHandlers
DEPRICATED.
Definition mainmenu.c:740
ImageWidget m_FeedbackQRCode
TextWidget m_Version
void ButtonSetTextColor(Widget w, int color)
ref map< string, ref ModInfo > m_AllDlcsMap
Definition mainmenu.c:742
bool m_DisplayCarousel
Definition mainmenu.c:48
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
void LoadMods()
Definition mainmenu.c:148
void ColorNormal(Widget w)
override void OnHide()
void ToggleFeedbackDialog()
ref NewsCarousel m_NewsCarousel
Definition mainmenu.c:47
RichTextWidget m_FeedbackCloseLabel
void OpenMenuCustomizeCharacter()
Definition mainmenu.c:439
ButtonWidget m_FeedbackClose
void ButtonSetAlphaAnim(Widget w)
override Widget Init()
override bool OnModalResult(Widget w, int x, int y, int code, int result)
void UpdateControlsElements()
override bool OnFocusLost(Widget w, int x, int y)
override bool OnMouseEnter(Widget w, int x, int y)
TextWidget m_PlayerName
Definition mainmenu.c:9
void FilterDLCs(inout array< ref ModInfo > modArray)
void ColorHighlight(Widget w)
override bool OnFocus(Widget w, int x, int y)
MissionMainMenu m_Mission
Definition mainmenu.c:6
void OpenCredits()
Definition mainmenu.c:539
override bool OnClick(Widget w, int x, int y, int button)
Widget m_DlcFrame
Definition mainmenu.c:44
DayZIntroScenePC m_ScenePC
Definition mainmenu.c:7
Widget m_CustomizeCharacter
Definition mainmenu.c:16
void OnDLCChange(EDLCId dlcId)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
EDLCId
Definition contentdlc.c:4
DayZGame g_Game
Definition dayzgame.c:3942
DayZGame GetDayZGame()
Definition dayzgame.c:3944
DayZGame GetGame()
Definition gameplay.c:636
void Obsolete(string msg="")
Definition enscript.c:371
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
const int MENU_TUTORIAL
Definition constants.c:204
const int MENU_XBOX_CONTROLS
Definition constants.c:197
const int MENU_MAIN
Definition constants.c:182
const int MENU_SERVER_BROWSER
Definition constants.c:200
const int MENU_OPTIONS
Definition constants.c:183
const int MENU_CREDITS
Definition constants.c:205
const int MENU_CHARACTER
Definition constants.c:174
const int MENU_VIDEO
Definition constants.c:202
proto void GetScreenSize(out int x, out int y)
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
const int CALL_CATEGORY_GUI
Definition tools.c:9
const int IDC_MAIN_QUIT
Definition constants.c:144
proto native Widget GetFocus()
proto native void SetFocus(Widget w)
Icon x
Icon y
EInputDeviceType
Definition input.c:3
ScreenWidthType
void NewsCarousel(Widget parent, UIScriptedMenu mainMenu)
int ARGB(int a, int r, int g, int b)
Definition proto.c:322
proto native UAInputAPI GetUApi()