DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
MainMenuConsoles.c
См. документацию.
1class MainMenuConsole extends UIScriptedMenu
2{
3 protected ref MainMenuVideo m_Video;
4
5 protected MissionMainMenu m_Mission;
6 protected DayZIntroScenePC m_ScenePC;
7
8 protected TextWidget m_PlayerName;
9 protected TextWidget m_Version;
10
12 protected Widget m_DialogPanel;
15 protected Widget m_PlayVideo;
16 protected Widget m_Tutorials;
17 protected Widget m_Options;
18 protected Widget m_Controls;
19 protected Widget m_Play;
20 protected Widget m_MessageButton;
22 protected ImageWidget m_FeedbackQRCode;
23 protected ImageWidget m_FeedbackPlatformIcon;
24 protected ButtonWidget m_FeedbackClose;
26
27 protected ref Widget m_LastFocusedButton;
28
30 protected Widget m_DlcFrame;
32 protected ref JsonDataDLCList m_DlcData;
34 protected ref MainMenuDlcHandlerBase m_DisplayedDlcHandler;
35
36 override Widget Init()
37 {
38 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/main_menu_console.layout");
39
40 m_MainMenuPanel = layoutRoot.FindAnyWidget("main_menu_panel");
41 m_PlayerName = TextWidget.Cast(layoutRoot.FindAnyWidget("character_name_xbox"));
42 m_ChangeAccount = layoutRoot.FindAnyWidget("choose_account");
43 m_CustomizeCharacter = layoutRoot.FindAnyWidget("customize_character");
44 m_PlayVideo = layoutRoot.FindAnyWidget("play_video");
45 m_Tutorials = layoutRoot.FindAnyWidget("tutorials");
46 m_Options = layoutRoot.FindAnyWidget("options");
47 m_Controls = layoutRoot.FindAnyWidget("controls");
48 m_Play = layoutRoot.FindAnyWidget("play");
49 m_MessageButton = layoutRoot.FindAnyWidget("message_button");
50
51 m_DlcFrame = layoutRoot.FindAnyWidget("dlc_Frame");
52 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
53 m_Mission = MissionMainMenu.Cast(GetGame().GetMission());
54 m_ShowFeedback = layoutRoot.FindAnyWidget("feedback");
55 m_FeedbackQRCode = ImageWidget.Cast(layoutRoot.FindAnyWidget("qr_image"));
56 m_FeedbackClose = ButtonWidget.Cast(layoutRoot.FindAnyWidget("close_button"));
57 m_FeedbackCloseLabel = RichTextWidget.Cast(layoutRoot.FindAnyWidget("close_button_label"));
58 m_DialogPanel = layoutRoot.FindAnyWidget("main_menu_dialog");
59
61
63
64 string launch_done;
65 if (!GetGame().GetProfileString("FirstLaunchDone", launch_done) || launch_done != "true")
66 {
67 GetGame().SetProfileString("FirstLaunchDone", "true");
68 GetGame().GetUIManager().ShowDialog("#main_menu_tutorial", "#main_menu_tutorial_desc", 555, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
70 }
71
73 LoadMods();
74 Refresh();
75
76 if (GetGame().GetMission())
77 {
80 }
81
82 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
83
85
86 #ifdef PLATFORM_CONSOLE
87 #ifndef PLATFORM_PS4
88 m_ChangeAccount.Show(GetGame().GetInput().IsEnabledMouseAndKeyboard());
89 m_FeedbackQRCode.LoadImageFile(0, "gui/textures/feedback_qr_xbox.edds");
90 #else
91 m_FeedbackQRCode.LoadImageFile(0, "gui/textures/feedback_qr_ps.edds");
92 #endif
93 #endif
94
95 return layoutRoot;
96 }
97
109
110 void OnDLCChange(EDLCId dlcId)
111 {
112 m_AllDLCs = null;
113 LoadMods();
114 }
115
116 void LoadMods()
117 {
118 if (m_AllDLCs != null)
119 return;
120
122
124 if (m_AllDLCs.Count() > 0)
125 {
126 m_AllDLCs.Remove(m_AllDLCs.Count() - 1);
127 m_AllDLCs.Invert();
128 }
129
132
134 }
135
137 void FilterDLCs(inout array<ref ModInfo> modArray)
138 {
139 if (!m_AllDlcsMap)
141
142 m_AllDlcsMap.Clear();
143 ModInfo info;
144 int count = modArray.Count();
145 for (int i = count - 1; i >= 0; i--)
146 {
147 info = modArray[i];
148 if (!info.GetIsDLC())
149 modArray.Remove(i);
150 else
151 m_AllDlcsMap.Set(info.GetName(), info);
152 }
153 }
154
156 {
157 if (!m_DlcHandlers)
159 else
160 {
161 // TODO: Would be better to update the parts that need updating instead of full recreation
162 // Destroying and then reloading the same video is quite wasteful
163 m_DlcHandlers.Clear();
164 }
165
167 int count = m_DlcData.DLCs.Count();
168 JsonDataDLCInfo data;
169 ModInfo info;
170
171 for (int i = 0; i < count; i++)
172 {
173 data = m_DlcData.DLCs[i];
174 info = m_AllDlcsMap.Get(data.Name);
175 MainMenuDlcHandlerBase handler = new MainMenuDlcHandlerBase(info, m_DlcFrame, data);
176
177 handler.ShowInfoPanel(true);
178 m_DisplayedDlcHandler = handler;//TODO: carousel will take care of this later
179
180 m_DlcHandlers.Insert(handler);
181 }
182 }
183
184 protected void OnInputPresetChanged()
185 {
186 #ifdef PLATFORM_CONSOLE
188 #endif
189 }
190
191 protected void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
192 {
193 switch (pInputDeviceType)
194 {
195 case EInputDeviceType.CONTROLLER:
196 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
197 {
199 #ifdef PLATFORM_CONSOLE
201 {
203 }
204
205 m_FeedbackClose.Show(false);
206 m_ShowFeedback.Show(false);
207 #ifndef PLATFORM_PS4
208 m_ChangeAccount.Show(false);
210 {
212 }
213 #endif
214 #endif
215 }
216 break;
217
218 default:
219 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
220 {
222 #ifdef PLATFORM_CONSOLE
223 m_ShowFeedback.Show(true);
224 m_FeedbackClose.Show(true);
225 m_FeedbackCloseLabel.SetText(string.Format("%1",InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#close", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_NORMAL)));
226 #ifndef PLATFORM_PS4
227 m_ChangeAccount.Show(true);
228 #endif
229 #endif
230 }
231 break;
232 }
233
236 }
237
238 override bool OnClick(Widget w, int x, int y, int button)
239 {
241 {
242 if (w == m_Play)
243 {
246 return true;
247 }
248 else if (w == m_Options)
249 {
252 return true;
253 }
254 else if (w == m_PlayVideo)
255 {
258 return true;
259 }
260 else if (w == m_Tutorials)
261 {
264 return true;
265 }
266 else if (w == m_Controls)
267 {
270 return true;
271 }
272 else if (w == m_CustomizeCharacter)
273 {
276 return true;
277 }
278 else if (w == m_ChangeAccount)
279 {
282 return true;
283 }
284 else if (w == m_MessageButton)
285 {
286 OpenCredits();
287 return true;
288 }
289 }
290
291 if (w == m_ShowFeedback || w == m_FeedbackClose)
292 {
295 return true;
296 }
297 return false;
298 }
299
300 override bool OnFocus(Widget w, int x, int y)
301 {
303 if (ButtonWidget.Cast(w))
304 {
306 }
307 return true;
308 }
309
310 override bool OnFocusLost(Widget w, int x, int y)
311 {
312 ColorNormal(w);
313 return true;
314 }
315
316 override bool OnMouseEnter(Widget w, int x, int y)
317 {
318 if (w == m_FeedbackClose)
319 {
321 return true;
322 }
323 return false;
324 }
325
326 override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
327 {
328 if (w == m_FeedbackClose)
329 {
330 ColorNormal(w);
331 return true;
332 }
333 return true;
334 }
335
336 override void Refresh()
337 {
338 string name;
339
340 if (GetGame().GetUserManager() && GetGame().GetUserManager().GetSelectedUser())
341 {
343 if (name.LengthUtf8() > 18)
344 {
345 name = name.SubstringUtf8(0, 18);
346 name += "...";
347 }
348 }
349 m_PlayerName.SetText(name);
350
351 string version;
352 GetGame().GetVersion(version);
353 m_Version.SetText("#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")");
354
356 m_DisplayedDlcHandler.UpdateAllPromotionInfo();
357 }
358
359 override void OnShow()
360 {
361 GetDayZGame().GetBacklit().MainMenu_OnShow();
362
364
365 LoadMods();
366 Refresh();
367
368 if (m_ScenePC && m_ScenePC.GetIntroCamera())
369 {
370 m_ScenePC.GetIntroCamera().LookAt(m_ScenePC.GetIntroCharacter().GetPosition() + Vector(0, 1, 0));
371 }
373 m_DisplayedDlcHandler.ShowInfoPanel(true);
374
375 super.OnShow();
376 #ifdef PLATFORM_CONSOLE
377 layoutRoot.FindAnyWidget("ButtonHolderCredits").Show(GetGame().GetInput().IsEnabledMouseAndKeyboard());
378 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
379 #endif
380 }
381
382 override void OnHide()
383 {
385 m_DisplayedDlcHandler.ShowInfoPanel(false);
386 GetDayZGame().GetBacklit().MainMenu_OnHide();
387 }
388
389 override void Update(float timeslice)
390 {
391 super.Update(timeslice);
392
393 if (g_Game.GetLoadState() != DayZGameState.CONNECTING && !GetGame().GetUIManager().IsDialogVisible())
394 {
395 #ifndef PLATFORM_CONSOLE
396 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
397 {
398 if (!GetGame().GetUIManager().IsDialogHiding())
399 Exit();
400 }
401 #else
402 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
403 {
405 {
407 }
408 else
409 {
410 EnterScriptedMenu(MENU_MAIN);
411 }
412 }
413
414 if (GetUApi().GetInputByID(UAUICredits).LocalPress())
415 OpenCredits();
416 #endif
417 }
418
419 #ifdef PLATFORM_XBOX
420 if (GetUApi().GetInputByID(UAUICtrlY).LocalPress())
422 #endif
423
424 if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
425 {
426 if (CanStoreBeOpened())
427 m_DisplayedDlcHandler.GetModInfo().GoToStore();
428 }
429
430 if (GetUApi().GetInputByID(UAUIThumbRight).LocalPress())
431 {
433 }
434 }
435
436 protected void ToggleFeedbackDialog()
437 {
438 bool dialogVisible = FeedbackDialogVisible();
439 m_DialogPanel.Show(!dialogVisible);
440 m_MainMenuPanel.Show(dialogVisible);
441
442 if (!dialogVisible)
443 {
444 PPERequesterBank.GetRequester(PPERequester_FeedbackBlur).Start();
445 }
446 else
447 {
448 PPERequesterBank.GetRequester(PPERequester_FeedbackBlur).Stop();
449 }
450
453 }
454
456 {
457 return m_DialogPanel.IsVisible();
458 }
459
461 {
462 return m_DisplayedDlcHandler != null;
463 }
464
466 {
467 EnterScriptedMenu(MENU_SERVER_BROWSER);
468 }
469
471 {
472 EnterScriptedMenu(MENU_XBOX_CONTROLS);
473 }
474
476 {
477 EnterScriptedMenu(MENU_OPTIONS);
478 }
479
481 {
482 EnterScriptedMenu(MENU_VIDEO);
483 }
484
486 {
487 EnterScriptedMenu(MENU_TUTORIAL);
488 }
489
491 {
492 EnterScriptedMenu(MENU_CHARACTER);
493 }
494
496 {
497 EnterScriptedMenu(MENU_CREDITS);
498 m_Mission.OnMenuEnter(MENU_CREDITS);
499 }
500
502 {
503 BiosUserManager user_manager = GetGame().GetUserManager();
504 if (user_manager)
505 {
506 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
507 #ifndef PLATFORM_WINDOWS
508 user_manager.SelectUserEx(null);
509 #endif
511 }
512 }
513
514 void Exit()
515 {
516 GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_MAIN_QUIT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
517 }
518
519 //Coloring functions (Until WidgetStyles are useful)
521 {
522 if (!w)
523 return;
524
525 int color_pnl = ARGB(255, 200, 0, 0);
526 int color_lbl = ARGB(255, 255, 255, 255);
527
528 ButtonSetColor(w, color_pnl);
530 ButtonSetTextColor(w, color_lbl);
531 }
532
534 {
535 if (!w)
536 return;
537
538 int color_pnl = ARGB(0, 0, 0, 0);
539 int color_lbl = ARGB(255, 255, 255, 255);
540
541 ButtonSetColor(w, color_pnl);
542 ButtonSetAlphaAnim(null);
543 ButtonSetTextColor(w, color_lbl);
544 }
545
546 override bool OnModalResult(Widget w, int x, int y, int code, int result)
547 {
548 if (code == IDC_MAIN_QUIT)
549 {
550 if (result == 2)
551 {
553 }
554
555 return true;
556 }
557 else if (code == 555)
558 {
559 if (result == 2)
560 {
562 }
563 }
564 return false;
565 }
566
567 void ButtonSetText(Widget w, string text)
568 {
569 if (!w)
570 return;
571
572 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
573
574 if (label)
575 {
576 label.SetText(text);
577 }
578
579 }
580
581 void ButtonSetColor(Widget w, int color)
582 {
583 if (!w)
584 return;
585
586 Widget panel = w.FindWidget(w.GetName() + "_panel");
587
588 if (panel)
589 {
590 panel.SetColor(color);
591 }
592 }
593
595 {
596 if (!w)
597 return;
598
599 Widget panel = w.FindWidget(w.GetName() + "_panel");
600
601 if (panel)
602 {
603 SetWidgetAnimAlpha(panel);
604 }
605 }
606
607 void ButtonSetTextColor(Widget w, int color)
608 {
609 if (!w)
610 return;
611
612 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
613 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
614 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
615
616 if (label)
617 {
618 label.SetColor(color);
619 }
620
621 if (text)
622 {
623 text.SetColor(color);
624 }
625
626 if (text2)
627 {
628 text2.SetColor(color);
629 }
630 }
631
632 protected void UpdateControlsElements()
633 {
634 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
635 string context;
637 {
638 context = InputUtils.GetRichtextButtonIconFromInputAction("UAUICredits", "#menu_credits", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR);
639 #ifndef PLATFORM_PS4
640 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "#layout_xbox_main_menu_toolbar_account", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
641 #endif
642 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#layout_xbox_main_menu_toolbar_select", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
643 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUIThumbRight", "#layout_main_menu_feedback", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
644 }
645 else
646 {
647 context = InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#close", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR);
648 }
649
650 toolbar_text.SetText(context);
651 }
652
654 {
655 bool toolbarShow = false;
656 #ifdef PLATFORM_CONSOLE
658 #endif
659
660 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
661 }
662}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
EDLCId
Определения ContentDLC.c:4
map
Определения ControlsXboxNew.c:4
DayZGame g_Game
Определения DayZGame.c:3868
DayZGame GetDayZGame()
Определения DayZGame.c:3870
Mission m_Mission
Icon x
Icon y
proto native UAInputAPI GetUApi()
proto native owned string GetName()
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
bool SelectUserEx(BiosUser user)
Определения BiosUserManager.c:90
proto native UIManager GetUIManager()
proto native void SetProfileString(string name, string value)
Sets string to profile variable.
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
proto native BiosUserManager GetUserManager()
proto native void GetModInfos(notnull out array< ref ModInfo > modArray)
proto native WorkspaceWidget GetWorkspace()
proto native void SaveProfile()
Saves profile on disk.
proto void GetVersion(out string version)
proto native Input GetInput()
proto native ContentDLC GetContentDLCService()
Return DLC service (service for entitlement keys for unlock content)
proto native Mission GetMission()
ref ScriptInvoker m_OnChange
void(EDLCId dlcId)
Определения ContentDLC.c:13
static JsonDataDLCList GetData()
Определения DLCDataLoader.c:5
Определения DLCDataLoader.c:2
proto native EInputDeviceType GetCurrentInputDevice()
proto native bool IsEnabledMouseAndKeyboard()
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
ScriptInvoker GetOnInputDeviceChanged()
Определения gameplay.c:851
ScriptInvoker GetOnInputPresetChanged()
Определения gameplay.c:859
proto bool GetIsDLC()
proto owned string GetName()
Определения ModInfo.c:2
Определения gameplay.c:317
proto void Call(func fn, 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)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
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
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native void ScreenFadeOut(float duration)
void ShowUICursor(bool visible)
Определения UIManager.c:244
bool Back()
Close top window on windows stack, returns true when any window is closed.
Определения UIManager.c:62
void UpdateControlsElementVisibility()
Определения ControlsXboxNew.c:540
void OpenMenuOptions()
Определения MainMenuConsoles.c:475
Widget m_Tutorials
Определения MainMenu.c:19
override bool OnMouseEnter(Widget w, int x, int y)
Определения MainMenuConsoles.c:316
override void OnShow()
Определения MainMenuConsoles.c:359
bool FeedbackDialogVisible()
Определения InGameMenuXbox.c:369
bool CanStoreBeOpened()
Определения MainMenuConsoles.c:460
Widget m_ChangeAccount
Определения MainMenuConsoles.c:13
ImageWidget m_FeedbackPlatformIcon
Определения InGameMenuXbox.c:37
ImageWidget m_FeedbackQRCode
Определения InGameMenuXbox.c:36
Widget m_DialogPanel
Определения InGameMenuXbox.c:23
ref JsonDataDLCList m_DlcData
Определения MainMenu.c:46
void ChangeAccount()
Определения MainMenuConsoles.c:501
override bool OnFocus(Widget w, int x, int y)
Определения MainMenuConsoles.c:300
ref Widget m_LastFocusedButton
Определения MainMenu.c:37
override void Update(float timeslice)
Определения MainMenuConsoles.c:389
ref map< string, ref ModInfo > m_AllDlcsMap
Определения MainMenu.c:45
void OpenMenuControls()
Определения MainMenuConsoles.c:470
void OnDLCChange(EDLCId dlcId)
Определения MainMenuConsoles.c:110
override void Refresh()
Определения ChatInputMenu.c:70
RichTextWidget m_FeedbackCloseLabel
Определения InGameMenuXbox.c:39
Widget m_MessageButton
Определения MainMenu.c:21
ref array< ref ModInfo > m_AllDLCs
Определения MainMenuConsoles.c:29
TextWidget m_Version
Определения InGameMenuXbox.c:33
void OpenMenuServerBrowser()
Определения MainMenu.c:454
void OpenMenuCustomizeCharacter()
Определения MainMenu.c:459
void ColorHighlight(Widget w)
Определения ControlsXboxNew.c:446
void OpenMenuPlayVideo()
Определения MainMenuConsoles.c:480
ButtonWidget m_ShowFeedback
Определения InGameMenuXbox.c:35
void OpenCredits()
Определения MainMenu.c:559
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
Определения ControlsXboxNew.c:71
Widget m_PlayVideo
Определения MainMenu.c:17
Widget m_DlcFrame
Определения MainMenu.c:44
void ButtonSetText(Widget w, string text)
Определения MainMenuConsoles.c:567
void LoadMods()
Определения MainMenu.c:129
void ButtonSetAlphaAnim(Widget w)
Определения MainMenuConsoles.c:594
override void OnHide()
Определения MainMenuConsoles.c:382
Widget m_Controls
Определения MainMenuConsoles.c:18
MissionMainMenu m_Mission
Определения MainMenu.c:6
override bool OnFocusLost(Widget w, int x, int y)
Определения MainMenuConsoles.c:310
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Определения MainMenuConsoles.c:326
Widget m_Options
Определения MainMenuConsoles.c:17
ButtonWidget m_Play
Определения CameraToolsMenu.c:41
void FilterDLCs(inout array< ref ModInfo > modArray)
leaves ONLY DLCs
Определения MainMenuConsoles.c:137
void UpdateControlsElements()
Определения ControlsXboxNew.c:527
Widget m_CustomizeCharacter
Определения MainMenu.c:16
ref MainMenuDlcHandlerBase m_DisplayedDlcHandler
Определения MainMenu.c:48
Widget m_MainMenuPanel
Определения MainMenuConsoles.c:11
ref array< ref MainMenuDlcHandlerBase > m_DlcHandlers
Определения MainMenu.c:47
void ~MainMenuConsole()
Определения MainMenuConsoles.c:98
void ButtonSetTextColor(Widget w, int color)
Определения ControlsXboxNew.c:502
void OpenMenuTutorials()
Определения MainMenuConsoles.c:485
TextWidget m_PlayerName
Определения MainMenu.c:9
ButtonWidget m_FeedbackClose
Определения InGameMenuXbox.c:38
override Widget Init()
Определения MainMenuConsoles.c:36
override bool OnClick(Widget w, int x, int y, int button)
Определения MainMenuConsoles.c:238
void ButtonSetColor(Widget w, int color)
Определения ControlsXboxNew.c:489
override bool OnModalResult(Widget w, int x, int y, int code, int result)
Определения MainMenuConsoles.c:546
void ColorNormal(Widget w)
Определения ControlsXboxNew.c:463
void ToggleFeedbackDialog()
Определения InGameMenuXbox.c:350
void PopulateDlcFrame()
Определения MainMenu.c:186
DayZIntroScenePC m_ScenePC
Определения MainMenu.c:7
void Exit()
Определения LogoutMenu.c:179
void OnInputPresetChanged()
Определения ControlsXboxNew.c:63
Определения DayZGame.c:64
Определения EnWidgets.c:190
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
const int MENU_TUTORIAL
Определения constants.c:204
const int MENU_XBOX_CONTROLS
Определения constants.c:197
const int MENU_MAIN
Определения constants.c:182
const int MENU_SERVER_BROWSER
Определения constants.c:200
const int MENU_OPTIONS
Определения constants.c:183
const int MENU_CREDITS
Определения constants.c:205
const int MENU_CHARACTER
Определения constants.c:174
const int MENU_VIDEO
Определения constants.c:202
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
Определения tools.c:9
const int IDC_MAIN_QUIT
Определения constants.c:144
proto native external Widget CreateWidgets(string layout, Widget parentWidget=NULL, bool immedUpdate=true)
Create widgets from *.layout file.
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