DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
MainMenuConsoles.c
См. документацию.
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.SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
109
110 #ifdef PLATFORM_MSSTORE
111 // Enable exit button
112 m_Exit.Show(true);
113 #endif
114
115 #ifdef PLATFORM_CONSOLE
116 m_FeedbackQRCode.LoadImageFile(0, "gui/textures/feedback_qr.edds");
117 #ifndef PLATFORM_PS4
118 #ifdef PLATFORM_MSSTORE
119 m_ChangeAccount.Show(false);
120 #else
121 m_ChangeAccount.Show(GetGame().GetInput().IsEnabledMouseAndKeyboard());
122 #endif
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
151 }
152
154 {
156
157 #ifdef ENABLE_CAROUSEL
159 #endif
160 }
161
162 void LoadMods()
163 {
166 }
167
168 #ifdef ENABLE_CAROUSEL
169 protected void RefreshNewsCarousel()
170 {
171 if (m_NewsCarousel)
172 {
173 m_NewsCarousel.Destroy();
174 m_NewsCarousel = null;
175 }
176
178 }
179 #endif
180
181 protected void OnInputPresetChanged()
182 {
183 #ifdef PLATFORM_CONSOLE
185 #endif
186 }
187
188 protected void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
189 {
190 #ifndef PLATFORM_MSSTORE // No feedback or account switching on MS Store
191 switch (pInputDeviceType)
192 {
193 case EInputDeviceType.CONTROLLER:
194 if (g_Game.GetInput().IsEnabledMouseAndKeyboard())
195 {
196 g_Game.GetUIManager().ShowUICursor(false);
197 #ifdef PLATFORM_CONSOLE
199 {
201 }
202
203 m_FeedbackClose.Show(false);
204 m_ShowFeedback.Show(false);
205 #ifndef PLATFORM_PS4
206 #ifndef PLATFORM_XBOX
207 m_ChangeAccount.Show(false);
209 {
211 }
212 #endif
213 #endif
214 #endif
215 }
216
217 #ifdef PLATFORM_MSSTORE
218 // Enable controls button on MS Store by default
219 m_Controls.Show(true);
220 #endif
221 break;
222
223 default:
224 if (g_Game.GetInput().IsEnabledMouseAndKeyboard())
225 {
226 g_Game.GetUIManager().ShowUICursor(true);
227 #ifdef PLATFORM_CONSOLE
228 m_ShowFeedback.Show(true);
229 m_FeedbackClose.Show(true);
230 m_FeedbackCloseLabel.SetText(string.Format("%1",InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#close", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_NORMAL)));
231 #ifndef PLATFORM_PS4
232 #ifndef PLATFORM_MSSTORE
233 #ifndef PLATFORM_XBOX
234 m_ChangeAccount.Show(true);
235 #endif
236 #endif
237 #endif
238 #endif
239
240 #ifdef PLATFORM_MSSTORE
241 // Disable controls button on MS Store
242 m_Controls.Show(false);
243 #endif
244 }
245 break;
246 }
247 #else
248 switch (pInputDeviceType)
249 {
250 case EInputDeviceType.CONTROLLER:
251 // Enable controls button on MS Store by default
252 m_Controls.Show(true);
253 break;
254
255 default:
256 // Disable controls button on MS Store
257 m_Controls.Show(false);
258 break;
259 }
260 #endif
261
264 }
265
266 override bool OnClick(Widget w, int x, int y, int button)
267 {
269 {
270 if (w == m_Play)
271 {
274 return true;
275 }
276 else if (w == m_Options)
277 {
280 return true;
281 }
282 else if (w == m_Exit)
283 {
285 Exit();
286 return true;
287 }
288 else if (w == m_Tutorials)
289 {
292 return true;
293 }
294 else if (w == m_Controls)
295 {
298 return true;
299 }
300 else if (w == m_CustomizeCharacter)
301 {
304 return true;
305 }
306 #ifndef PLATFORM_MSSTORE // No account switching on MS Store
307 #ifndef PLATFORM_XBOX
308 else if (w == m_ChangeAccount)
309 {
312 return true;
313 }
314 #endif
315 #endif
316 else if (w == m_MessageButton)
317 {
318 OpenCredits();
319 return true;
320 }
321 }
322
323 if (w == m_ShowFeedback || w == m_FeedbackClose)
324 {
327 return true;
328 }
329 return false;
330 }
331
332 override bool OnFocus(Widget w, int x, int y)
333 {
335 if (ButtonWidget.Cast(w))
336 {
338 }
339 return true;
340 }
341
342 override bool OnFocusLost(Widget w, int x, int y)
343 {
344 ColorNormal(w);
345 return true;
346 }
347
348 override bool OnMouseEnter(Widget w, int x, int y)
349 {
350 if (w == m_FeedbackClose)
351 {
353 return true;
354 }
355 return false;
356 }
357
358 override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
359 {
360 if (w == m_FeedbackClose)
361 {
362 ColorNormal(w);
363 return true;
364 }
365 return true;
366 }
367
368 override void Refresh()
369 {
370 string name;
371
372 if (g_Game.GetUserManager() && g_Game.GetUserManager().GetSelectedUser())
373 {
374 name = g_Game.GetUserManager().GetSelectedUser().GetName();
375 if (name.LengthUtf8() > 18)
376 {
377 name = name.SubstringUtf8(0, 18);
378 name += "...";
379 }
380 }
381 m_PlayerName.SetText(name);
382
383 string version;
384 g_Game.GetVersion(version);
385 m_Version.SetText("#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")");
386
388 m_DisplayedDlcHandler.UpdateAllPromotionInfo();
389 }
390
391 override void OnShow()
392 {
393 #ifdef PLATFORM_MSSTORE
394 #ifdef ENABLE_CAROUSEL
395 // Hack: Recreate NewsCarousel to refresh it on menu show after applying options
396 if (m_NewsCarousel)
397 {
398 m_NewsCarousel.Destroy();
399 m_NewsCarousel = null;
401 }
402 #endif
403 #endif
404
405 GetDayZGame().GetBacklit().MainMenu_OnShow();
406
408
409 LoadMods();
410 Refresh();
411
412 #ifdef ENABLE_CAROUSEL
414 #endif
415
416 if (m_ScenePC && m_ScenePC.GetIntroCamera())
417 {
418 m_ScenePC.GetIntroCamera().LookAt(m_ScenePC.GetIntroCharacter().GetPosition() + Vector(0, 1, 0));
419 }
421 m_DisplayedDlcHandler.ShowInfoPanel(true);
422
423 super.OnShow();
424 #ifdef PLATFORM_CONSOLE
425 layoutRoot.FindAnyWidget("ButtonHolderCredits").Show(g_Game.GetInput().IsEnabledMouseAndKeyboard());
426 OnInputDeviceChanged(g_Game.GetInput().GetCurrentInputDevice());
427 #endif
428 }
429
430 override void OnHide()
431 {
433 m_DisplayedDlcHandler.ShowInfoPanel(false);
434 GetDayZGame().GetBacklit().MainMenu_OnHide();
435 }
436
437 override void Update(float timeslice)
438 {
439 super.Update(timeslice);
440
441 CheckWidth();
442
443 if (g_Game.GetLoadState() != DayZGameState.CONNECTING && !g_Game.GetUIManager().IsDialogVisible())
444 {
445 #ifndef PLATFORM_CONSOLE
446 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
447 {
448 if (!g_Game.GetUIManager().IsDialogHiding())
449 Exit();
450 }
451 #else
452 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
453 {
455 {
457 }
458 else
459 {
460 EnterScriptedMenu(MENU_MAIN);
461 }
462 }
463
464 if (GetUApi().GetInputByID(UAUICredits).LocalPress())
465 OpenCredits();
466 #endif
467 }
468
469 if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
470 {
471 if (CanStoreBeOpened())
472 m_DisplayedDlcHandler.GetModInfo().GoToStore();
473 }
474
475 if (GetUApi().GetInputByID(UAUIThumbRight).LocalPress())
476 {
478 }
479
480 #ifdef ENABLE_CAROUSEL
481 int articleCount = m_NewsCarousel.GetArticleCount();
482 if (m_NewsCarousel && m_NewsCarousel.IsVisible() && articleCount > 0)
483 {
484 if (GetUApi().GetInputByID(UAUICtrlX).LocalHold())
485 {
486 m_NewsCarousel.ShowPromotion();
487 }
488
489 if (articleCount > 1)
490 {
491 if (GetUApi().GetInputByID(UAUIPadRight).LocalPress())
492 m_NewsCarousel.OnClickNextArticle();
493
494 if (GetUApi().GetInputByID(UAUIPadLeft).LocalPress())
495 m_NewsCarousel.OnClickPreviousArticle();
496 }
497 }
498
499 if (m_NewsCarousel)
500 m_NewsCarousel.Update(timeslice); // animation update must keep running
501 #endif
502 }
503
504 protected void ToggleFeedbackDialog()
505 {
506 bool dialogVisible = FeedbackDialogVisible();
507 m_DialogPanel.Show(!dialogVisible);
508 m_MainMenuPanel.Show(dialogVisible);
509
510 if (!dialogVisible)
511 {
512 PPERequesterBank.GetRequester(PPERequester_FeedbackBlur).Start();
513 }
514 else
515 {
516 PPERequesterBank.GetRequester(PPERequester_FeedbackBlur).Stop();
517 }
518
521 }
522
524 {
525 return m_DialogPanel.IsVisible();
526 }
527
529 {
530 return m_DisplayedDlcHandler != null;
531 }
532
534 {
535 EnterScriptedMenu(MENU_SERVER_BROWSER);
536 }
537
539 {
540 EnterScriptedMenu(MENU_XBOX_CONTROLS);
541 }
542
544 {
545 EnterScriptedMenu(MENU_OPTIONS);
546 }
547
549 {
550 EnterScriptedMenu(MENU_VIDEO);
551 }
552
554 {
555 EnterScriptedMenu(MENU_TUTORIAL);
556 }
557
559 {
560 EnterScriptedMenu(MENU_CHARACTER);
561 }
562
564 {
565 EnterScriptedMenu(MENU_CREDITS);
566 m_Mission.OnMenuEnter(MENU_CREDITS);
567 }
568
570 {
571 BiosUserManager user_manager = g_Game.GetUserManager();
572 if (user_manager)
573 {
574 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
575 #ifndef PLATFORM_WINDOWS
576 user_manager.SelectUserEx(null);
577 #endif
578 g_Game.GetUIManager().Back();
579 }
580 }
581
582 void Exit()
583 {
584 g_Game.GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_MAIN_QUIT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
585 }
586
587 //Coloring functions (Until WidgetStyles are useful)
589 {
590 if (!w)
591 return;
592
593 int color_pnl = ARGB(255, 200, 0, 0);
594 int color_lbl = ARGB(255, 255, 255, 255);
595
596 ButtonSetColor(w, color_pnl);
598 ButtonSetTextColor(w, color_lbl);
599 }
600
602 {
603 if (!w)
604 return;
605
606 int color_pnl = ARGB(0, 0, 0, 0);
607 int color_lbl = ARGB(255, 255, 255, 255);
608
609 ButtonSetColor(w, color_pnl);
610 ButtonSetAlphaAnim(null);
611 ButtonSetTextColor(w, color_lbl);
612 }
613
614 override bool OnModalResult(Widget w, int x, int y, int code, int result)
615 {
616 if (code == IDC_MAIN_QUIT)
617 {
618 if (result == 2)
619 {
620 g_Game.GetCallQueue(CALL_CATEGORY_GUI).Call(g_Game.RequestExit, IDC_MAIN_QUIT);
621 }
622
623 return true;
624 }
625 else if (code == 555)
626 {
627 if (result == 2)
628 {
630 }
631 }
632 return false;
633 }
634
635 void ButtonSetText(Widget w, string text)
636 {
637 if (!w)
638 return;
639
640 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
641
642 if (label)
643 {
644 label.SetText(text);
645 }
646
647 }
648
649 void ButtonSetColor(Widget w, int color)
650 {
651 if (!w)
652 return;
653
654 Widget panel = w.FindWidget(w.GetName() + "_panel");
655
656 if (panel)
657 {
658 panel.SetColor(color);
659 }
660 }
661
663 {
664 if (!w)
665 return;
666
667 Widget panel = w.FindWidget(w.GetName() + "_panel");
668
669 if (panel)
670 {
671 SetWidgetAnimAlpha(panel);
672 }
673 }
674
675 void ButtonSetTextColor(Widget w, int color)
676 {
677 if (!w)
678 return;
679
680 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
681 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
682 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
683
684 if (label)
685 {
686 label.SetColor(color);
687 }
688
689 if (text)
690 {
691 text.SetColor(color);
692 }
693
694 if (text2)
695 {
696 text2.SetColor(color);
697 }
698 }
699
700 protected void UpdateControlsElements()
701 {
702 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
703 string context;
705 {
706 context = InputUtils.GetRichtextButtonIconFromInputAction("UAUICredits", "#menu_credits", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR);
707 #ifndef PLATFORM_MSSTORE
708 #ifndef PLATFORM_PS4
709 #ifndef PLATFORM_XBOX
710 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "#layout_xbox_main_menu_toolbar_account", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
711 #endif
712 #endif
713 #endif
714 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#layout_xbox_main_menu_toolbar_select", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
715 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUIThumbRight", "#layout_main_menu_feedback", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
716 }
717 else
718 {
719 context = InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#close", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR);
720 }
721
722 toolbar_text.SetText(context);
723 }
724
726 {
727 bool toolbarShow = false;
728 #ifdef PLATFORM_CONSOLE
729 toolbarShow = !g_Game.GetInput().IsEnabledMouseAndKeyboard() || g_Game.GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
730 #endif
731
732 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
733 }
734
736 {
737 int w, h;
738 ScreenWidthType widthType;
739 GetScreenSize(w, h);
740
741 if(h > 0)
742 {
743 float ratio = w / h;
744 if(ratio > 1.75)
745 widthType = ScreenWidthType.WIDE;
746 else if(ratio > 1.5)
747 widthType = ScreenWidthType.MEDIUM;
748 else
749 widthType = ScreenWidthType.NARROW;
750 }
751
752 m_Width = w;
753 m_Height = h;
754
755 if (widthType != m_WidthType)
756 {
757 m_WidthType = widthType;
758 #ifdef ENABLE_CAROUSEL
760 #endif
761 }
762 }
763
765 protected ref JsonDataDLCList m_DlcData;
766 protected ref array<ref MainMenuDlcHandlerBase> m_DlcHandlers;
767 protected ref MainMenuDlcHandlerBase m_DisplayedDlcHandler;
770
771 [Obsolete("No replacement")]
773 {
774 if (!m_DlcHandlers)
776 else
777 {
778 // TODO: Would be better to update the parts that need updating instead of full recreation
779 // Destroying and then reloading the same video is quite wasteful
780 m_DlcHandlers.Clear();
781 }
782
784 int count = m_DlcData.DLCs.Count();
785 JsonDataDLCInfo data;
786 ModInfo info;
787
788 for (int i = 0; i < count; i++)
789 {
790 data = m_DlcData.DLCs[i];
791 info = m_AllDlcsMap.Get(data.Name);
792 MainMenuDlcHandlerBase handler = new MainMenuDlcHandlerBase(info, m_DlcFrame, data);
793
794 handler.ShowInfoPanel(true);
795 m_DisplayedDlcHandler = handler;//TODO: carousel will take care of this later
796
797 m_DlcHandlers.Insert(handler);
798 }
799 }
800
801 [Obsolete("No replacement")]
802 void FilterDLCs(inout array<ref ModInfo> modArray)
803 {
804 if (!m_AllDlcsMap)
806
807 m_AllDlcsMap.Clear();
808 ModInfo info;
809 int count = modArray.Count();
810 for (int i = count - 1; i >= 0; i--)
811 {
812 info = modArray[i];
813 if (!info.GetIsDLC())
814 modArray.Remove(i);
815 else
816 m_AllDlcsMap.Set(info.GetName(), info);
817 }
818 }
819}
ActionInput GetInput()
Определения ActionBase.c:1441
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DayZGame g_Game
Определения DayZGame.c:4074
DayZGame GetDayZGame()
Определения DayZGame.c:4076
Mission m_Mission
Icon x
Icon y
ScreenWidthType
Определения InventoryMenu.c:2
proto native UAInputAPI GetUApi()
bool SelectUserEx(BiosUser user)
Определения BiosUserManager.c:90
static JsonDataDLCList GetData()
Определения DLCDataLoader.c:5
Определения DLCDataLoader.c:2
static const float ICON_SCALE_NORMAL
Определения InputUtils.c:14
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Определения InputUtils.c:167
static const float ICON_SCALE_TOOLBAR
Определения InputUtils.c:15
Определения InputUtils.c:2
string Name
Определения JsonDataDLCInfo.c:8
Определения JsonDataDLCInfo.c:7
Определения JsonDataDLCInfo.c:2
static void LoadMods()
Определения MainMenuData.c:48
static void SubscribeDLCUpdate()
Определения MainMenuData.c:8
static void UnsubscribeDLCUpdate()
Определения MainMenuData.c:17
static ScriptInvoker GetOnDLCChangedSI()
Определения MainMenuData.c:161
Определения MainMenuData.c:2
proto bool GetIsDLC()
proto owned string GetName()
Определения ModInfo.c:2
Определения gameplay.c:317
proto bool Remove(func fn, int flags=EScriptInvokerRemoveFlags.ALL)
remove specific call from list
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list
Определения EnWidgets.c:220
void UpdateControlsElementVisibility()
Определения ControlsXboxNew.c:545
void OpenMenuOptions()
Определения MainMenuConsoles.c:543
Widget m_Tutorials
Определения MainMenu.c:23
Widget m_Exit
Определения MainMenu.c:27
override bool OnMouseEnter(Widget w, int x, int y)
Определения MainMenuConsoles.c:348
override void OnShow()
Определения MainMenuConsoles.c:391
bool FeedbackDialogVisible()
Определения InGameMenuXbox.c:388
bool CanStoreBeOpened()
Определения MainMenuConsoles.c:528
Widget m_ChangeAccount
Определения MainMenuConsoles.c:17
ImageWidget m_FeedbackPlatformIcon
Определения InGameMenuXbox.c:42
ImageWidget m_FeedbackQRCode
Определения InGameMenuXbox.c:41
Widget m_DialogPanel
Определения InGameMenuXbox.c:26
ref JsonDataDLCList m_DlcData
DEPRICATED.
Определения MainMenu.c:769
void ChangeAccount()
Определения MainMenuConsoles.c:569
override bool OnFocus(Widget w, int x, int y)
Определения MainMenuConsoles.c:332
ref Widget m_LastFocusedButton
Определения MainMenu.c:41
override void Update(float timeslice)
Определения MainMenuConsoles.c:437
int m_Height
Определения MainMenu.c:55
ref map< string, ref ModInfo > m_AllDlcsMap
Определения MainMenu.c:768
void RefreshNewsCarousel()
Определения MainMenu.c:148
void OpenMenuControls()
Определения MainMenuConsoles.c:538
void OnDLCChange(EDLCId dlcId)
Определения MainMenu.c:167
override void Refresh()
Определения ChatInputMenu.c:70
RichTextWidget m_FeedbackCloseLabel
Определения InGameMenuXbox.c:44
Widget m_MessageButton
Определения MainMenu.c:25
ref array< ref ModInfo > m_AllDLCs
Определения MainMenuConsoles.c:768
TextWidget m_Version
Определения InGameMenuXbox.c:36
void OpenMenuServerBrowser()
Определения MainMenu.c:465
int m_Width
Определения MainMenu.c:55
void OpenMenuCustomizeCharacter()
Определения MainMenu.c:470
bool m_DisplayCarousel
Определения MainMenu.c:52
void ColorHighlight(Widget w)
Определения ControlsXboxNew.c:454
void OnDLCChange()
Определения MainMenuConsoles.c:153
void OpenMenuPlayVideo()
Определения MainMenuConsoles.c:548
ButtonWidget m_ShowFeedback
Определения InGameMenuXbox.c:40
void OpenCredits()
Определения MainMenu.c:570
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
Определения ControlsXboxNew.c:71
Widget m_PlayVideo
Определения MainMenu.c:21
Widget m_DlcFrame
Определения MainMenu.c:48
void ButtonSetText(Widget w, string text)
Определения MainMenuConsoles.c:635
void LoadMods()
Определения MainMenu.c:174
void ButtonSetAlphaAnim(Widget w)
Определения MainMenuConsoles.c:662
override void OnHide()
Определения MainMenuConsoles.c:430
Widget m_Controls
Определения MainMenuConsoles.c:23
MissionMainMenu m_Mission
Определения MainMenu.c:10
override bool OnFocusLost(Widget w, int x, int y)
Определения MainMenuConsoles.c:342
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Определения MainMenuConsoles.c:358
Widget m_Options
Определения MainMenuConsoles.c:21
Widget m_NewsCarouselFrame
Определения MainMenu.c:50
ButtonWidget m_Play
Определения CameraToolsMenu.c:41
ScreenWidthType m_WidthType
Определения MainMenuConsoles.c:41
void FilterDLCs(inout array< ref ModInfo > modArray)
Определения MainMenuConsoles.c:802
void UpdateControlsElements()
Определения ControlsXboxNew.c:535
Widget m_CustomizeCharacter
Определения MainMenu.c:20
ref MainMenuDlcHandlerBase m_DisplayedDlcHandler
Определения MainMenu.c:767
Widget m_MainMenuPanel
Определения MainMenuConsoles.c:15
ref array< ref MainMenuDlcHandlerBase > m_DlcHandlers
DEPRICATED.
Определения MainMenu.c:766
void ~MainMenuConsole()
Определения MainMenuConsoles.c:141
void CheckWidth()
Определения MainMenu.c:735
ref NewsCarousel m_NewsCarousel
Определения MainMenu.c:51
void ButtonSetTextColor(Widget w, int color)
Определения ControlsXboxNew.c:510
void OpenMenuTutorials()
Определения MainMenuConsoles.c:553
TextWidget m_PlayerName
Определения MainMenu.c:13
ButtonWidget m_FeedbackClose
Определения InGameMenuXbox.c:43
override Widget Init()
Определения MainMenuConsoles.c:44
override bool OnClick(Widget w, int x, int y, int button)
Определения MainMenuConsoles.c:266
void ButtonSetColor(Widget w, int color)
Определения ControlsXboxNew.c:497
override bool OnModalResult(Widget w, int x, int y, int code, int result)
Определения MainMenuConsoles.c:614
void ColorNormal(Widget w)
Определения ControlsXboxNew.c:471
void ToggleFeedbackDialog()
Определения InGameMenuXbox.c:369
void PopulateDlcFrame()
Определения MainMenuConsoles.c:772
DayZIntroScenePC m_ScenePC
Определения MainMenu.c:11
void Exit()
Определения LogoutMenu.c:185
void OnInputPresetChanged()
Определения ControlsXboxNew.c:63
Определения DayZGame.c:64
Определения EnWidgets.c:190
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Определения Transport.c:70
DayZGame GetGame()
Определения gameplay.c:636
void Obsolete(string msg="")
Определения EnScript.c:371
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
const int MENU_TUTORIAL
Определения 3_Game/DayZ/constants.c:210
const int MENU_XBOX_CONTROLS
Определения 3_Game/DayZ/constants.c:203
const int MENU_MAIN
Определения 3_Game/DayZ/constants.c:188
const int MENU_SERVER_BROWSER
Определения 3_Game/DayZ/constants.c:206
const int MENU_OPTIONS
Определения 3_Game/DayZ/constants.c:189
const int MENU_CREDITS
Определения 3_Game/DayZ/constants.c:211
const int MENU_CHARACTER
Определения 3_Game/DayZ/constants.c:180
const int MENU_VIDEO
Определения 3_Game/DayZ/constants.c:208
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
Определения 3_Game/DayZ/tools/tools.c:9
const int IDC_MAIN_QUIT
Определения 3_Game/DayZ/constants.c:150
proto native Widget GetFocus()
proto native void SetFocus(Widget w)
EInputDeviceType
Определения input.c:3
int ARGB(int a, int r, int g, int b)
Определения proto.c:322