DayZ 1.24
Loading...
Searching...
No Matches
InGameMenuXbox.c
Go to the documentation of this file.
1class InGameMenuXbox extends UIScriptedMenu
2{
3 // Widgets texts id
4 protected string m_MuteButtonTextID;
5 protected string m_UnmuteButtonTextID;
6 protected string m_BackButtonTextID;
7 protected string m_SelectButtonTextID;
8 protected string m_OpenGameCardButtonTextID;
9 protected string m_CurrentMuteButtonText;
10
11 protected bool m_SelectAvailable;
12 protected bool m_MuteAvailable;
13 protected bool m_BackAvailable;
14 protected bool m_GamercardAvailable;
15
16 protected bool m_PlayerAlive;
17
18 protected ref PlayerListScriptedWidget m_ServerInfoPanel;
19
21
30
32
33 const int BUTTON_XBOX_CONTROLS = 201;
34
36 {
37 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
38 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
39 }
40
42 {
43 ClientData.SyncEvent_OnPlayerListUpdate.Remove(SyncEvent_OnRecievedPlayerList);
44 OnlineServices.m_PermissionsAsyncInvoker.Remove(OnPermissionsUpdate);
45
46 Mission mission = GetGame().GetMission();
47 if (mission)
48 {
49 IngameHud hud = IngameHud.Cast(mission.GetHud());
50 if (hud)
51 {
52 hud.ShowHudUI(true);
53 hud.ShowQuickbarUI(true);
54 }
55
57 }
58
59 PPERequesterBank.GetRequester(PPERequester_MenuEffects).Stop();
60 }
61
62 protected void OnInputPresetChanged()
63 {
64#ifdef PLATFORM_CONSOLE
66#endif
67 }
68
73
74 override Widget Init()
75 {
76 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/day_z_ingamemenu_xbox.layout");
77
78 m_OnlineMenu = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/ingamemenu_xbox/online_info_menu.layout", layoutRoot);
79 m_OnlineMenu.Show(false);
80
81 m_ContinueButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("continuebtn"));
82 m_RestartDeadButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("restartbtn_dead"));
83 m_ExitButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("exitbtn"));
84 m_RestartButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("restartbtn"));
85 m_OptionsButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("optionsbtn"));
86 m_ControlsButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("controlsbtn"));
87 m_OnlineButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("onlinebtn"));
88 m_TutorialsButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("tutorialsbtn"));
89 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
90
91 m_SelectAvailable = true;
92 m_MuteAvailable = false;
93 m_GamercardAvailable = false;
94 m_BackAvailable = true;
95
96 Man player = GetGame().GetPlayer();
97 if (player)
98 {
99 int life_state = player.GetPlayerState();
100
101 if (life_state == EPlayerStates.ALIVE)
102 m_PlayerAlive = true;
103 }
104
106
107 string version;
108 GetGame().GetVersion(version);
109#ifdef PLATFORM_CONSOLE
110 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
111#else
112 version = "#main_menu_version" + " " + version;
113#endif
114 m_Version.SetText(version);
115
116 if (GetGame().IsMultiplayer())
117 {
118 m_OnlineButton.Show(true);
119
120 TextWidget w_text = TextWidget.Cast(m_OnlineMenu.FindAnyWidget("OnlineTextWidget"));
121 w_text.SetText(g_Game.GetHostName());
122
123 m_ServerInfoPanel = new PlayerListScriptedWidget(m_OnlineMenu.FindAnyWidget("ServerInfoPanel"));
124
125 OnlineServices.m_PermissionsAsyncInvoker.Insert(OnPermissionsUpdate);
126 ClientData.SyncEvent_OnPlayerListUpdate.Insert(SyncEvent_OnRecievedPlayerList);
127
128 m_ServerInfoPanel.Reload(ClientData.m_PlayerList);
129 m_ServerInfoPanel.ReloadLocal(OnlineServices.GetMuteList());
130
131 string uid = m_ServerInfoPanel.FindPlayerByWidget(GetFocus());
132 if (uid != "")
133 {
134 if (IsLocalPlayer(uid) || m_ServerInfoPanel.IsEmpty())
135 {
136 m_MuteAvailable = false;
137 m_GamercardAvailable = false;
138 }
139 else
140 {
141 m_MuteAvailable = !GetGame().GetWorld().IsDisabledReceivingVoN();
142#ifndef PLATFORM_PS4
143 m_GamercardAvailable = true;
144#endif
146 }
147
148 if (m_ServerInfoPanel.IsGloballyMuted(uid))
149 m_MuteAvailable = false;
150 }
151 }
152 else
153 {
154 layoutRoot.FindAnyWidget("onlinebtn").Show(false);
155 layoutRoot.FindAnyWidget("invitebtn").Show(false);
156 }
157
158 //RESPAWN & RESTART
159 ButtonWidget restart_btn = ButtonWidget.Cast(layoutRoot.FindAnyWidgetById(IDC_INT_RETRY));
160 if (GetGame().IsMultiplayer())
161 restart_btn.SetText("#main_menu_respawn");
162 else
163 restart_btn.SetText("#main_menu_restart");
164
165 if (GetGame().IsMultiplayer() && !(GetGame().CanRespawnPlayer() || (player && player.IsUnconscious())))
166 {
167 restart_btn.Enable(false);
168 restart_btn.Show(false);
169 }
170 //
171
172#ifdef BULDOZER
173 delete restart_btn;
174#endif
175
176 Mission mission = GetGame().GetMission();
177 if (mission)
178 {
179 IngameHud hud = IngameHud.Cast(mission.GetHud());
180 if (hud)
181 {
182 hud.ShowHudUI(false);
183 hud.ShowQuickbarUI(false);
184 }
185
186 mission.Pause();
187 }
188
191 requester.SetVignetteIntensity(0.6);
192
196
197 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
198
199 return layoutRoot;
200 }
201
202 override bool OnClick(Widget w, int x, int y, int button)
203 {
204 super.OnClick(w, x, y, button);
205
206 switch (w.GetUserID())
207 {
209 {
210 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().Continue);
211 return true;
212 }
213 case IDC_MAIN_OPTIONS:
214 {
215 EnterScriptedMenu(MENU_OPTIONS);
216 return true;
217 }
219 {
220 EnterScriptedMenu(MENU_XBOX_CONTROLS);
221 return true;
222 }
223 case IDC_MAIN_QUIT:
224 {
225 GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_INT_EXIT, DBT_YESNO, DBB_YES, DMT_QUESTION, NULL);
226 return true;
227 }
228 case IDC_INT_RETRY:
229 {
230 if (!GetGame().IsMultiplayer())
231 GetGame().GetUIManager().ShowDialog("#main_menu_restart", "Are you sure you want to restart?", IDC_INT_RETRY, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
232 else
233 GetGame().GetUIManager().ShowDialog("#main_menu_respawn", "#main_menu_respawn_question", IDC_INT_RETRY, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
234 return true;
235 }
236 case IDC_MAIN_ONLINE:
237 {
238 m_OnlineMenu.Show(true);
239 m_SelectAvailable = false;
240
242 m_ServerInfoPanel.FocusFirst();
243 return true;
244 }
245 case 117:
246 {
247 EnterScriptedMenu(MENU_TUTORIAL);
248 return true;
249 }
250 case IDC_MULTI_INVITE:
251 {
253 return true;
254 }
255 }
256
257 if (w == layoutRoot.FindAnyWidget("backbtn"))
258 CloseOnline();
259 else if (w == m_RestartDeadButton)
260 {
261 if (GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM)
262 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu, MENU_RESPAWN_DIALOGUE, this);
263 else
264 GameRetry(true);
265 return true;
266 }
267
268 return false;
269 }
270
271 override bool OnModalResult(Widget w, int x, int y, int code, int result)
272 {
273 super.OnModalResult(w, x, y, code, result);
274
275 if (code == IDC_INT_EXIT && result == DBB_YES)
276 {
277 if (GetGame().IsMultiplayer())
278 {
279 GetGame().LogoutRequestTime();
280 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().CreateLogoutMenu, this);
281 }
282 else
283 {
284 // skip logout screen in singleplayer
285 GetGame().GetMission().AbortMission();
286 }
287 g_Game.CancelLoginTimeCountdown();
288
289 return true;
290
291 }
292 else if (code == IDC_INT_EXIT && result == DBB_NO)
293 g_Game.CancelLoginTimeCountdown();
294 else if (code == IDC_INT_RETRY)
295 {
296 if (result == DBB_YES)
297 {
298 if (GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM)
299 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu, MENU_RESPAWN_DIALOGUE, this);
300 else
301 {
302 GameRetry(true);
303 return true;
304 }
305 }
306 else
308 }
309
310 return false;
311 }
312
313 void GameRetry(bool random)
314 {
315 if (GetGame().IsMultiplayer())
316 {
317 //GetGame().GetUIManager().CloseAll();
318 GetGame().GetMenuDefaultCharacterData(false).SetRandomCharacterForced(random);
319 GetGame().RespawnPlayer();
320
322 if (player)
323 {
324 player.SimulateDeath(true);
325 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(player.ShowDeadScreen, true, 0);
326 }
327
328 MissionGameplay missionGP = MissionGameplay.Cast(GetGame().GetMission());
329 missionGP.DestroyAllMenus();
330 missionGP.SetPlayerRespawning(true);
331 missionGP.Continue();
332
333 Close();
334 }
335 else
336 GetGame().RestartMission();
337 }
338
340 {
341 if (RespawnDialogue.Cast(menu))
343 }
344
345 bool IsLocalPlayer(string uid)
346 {
348 string local_uid;
349 if (GetGame().GetUserManager())
350 local_uid = GetGame().GetUserManager().GetSelectedUser().GetUid();
351 return (uid == local_uid);
352 }
353
355 {
357 player_list.m_PlayerList = new array<ref SyncPlayer>;
358 for (int i = 0; i < player_count; i++)
359 {
361 sync_player.m_UID = "uid" + i;
362 sync_player.m_PlayerName = "Player " + i;
363 player_list.m_PlayerList.Insert(sync_player);
364 }
365 return player_list;
366 }
367
368 override void Update(float timeslice)
369 {
370 UpdateGUI();
371
372 if (GetGame().IsMultiplayer() && layoutRoot.FindAnyWidget("OnlineInfo").IsVisible())
373 {
374 PlayerListEntryScriptedWidget selected;
375 if (m_ServerInfoPanel)
376 selected = m_ServerInfoPanel.GetSelectedPlayer();
377 if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
378 {
379 if (selected)
380 m_ServerInfoPanel.ToggleMute(selected.GetUID());
381 Refresh();
382 }
383
384#ifndef PLATFORM_PS4
385 if (GetUApi().GetInputByID(UAUICtrlY).LocalPress())
386 {
387 if (selected)
389 }
390#endif
391 }
392 }
393
395 {
397 }
398
399
401 {
402 Man player = GetGame().GetPlayer();
403 if (player)
404 {
405 int life_state = player.GetPlayerState();
406 m_PlayerAlive = life_state == EPlayerStates.ALIVE;
407 }
408
409 if (m_PlayerAlive)
410 m_RestartButton.Show(ShouldRestartBeVisible(player));
411 else
412 m_RestartButton.Show(false);
413
414 m_ContinueButton.Show(m_PlayerAlive);
415 m_RestartDeadButton.Show(!m_PlayerAlive);
416 }
417
419 {
420 return m_OnlineMenu.IsVisible();
421 }
422
424 {
425 m_OnlineMenu.Show(false);
426 m_SelectAvailable = true;
427 m_MuteAvailable = false;
428 m_GamercardAvailable = false;
430
431 SetFocus(m_OnlineButton);
432 }
433
435 {
436 if (m_ServerInfoPanel)
437 {
438 m_ServerInfoPanel.FocusFirst();
439
440 Refresh();
441 }
442 }
443
444 override bool OnItemSelected(Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
445 {
446 return false;
447 }
448
450 {
451 m_ServerInfoPanel.Reload(player_list);
452
453 Refresh();
454 }
455
457 {
458 m_ServerInfoPanel.Reload(result_list);
459
460 Refresh();
461 }
462
463 override void OnShow()
464 {
465 super.OnShow();
466 Man player = GetGame().GetPlayer();
467 if (player)
468 {
469 int life_state = player.GetPlayerState();
470
471 if (life_state == EPlayerStates.ALIVE)
472 m_PlayerAlive = true;
473 }
474
475 if (m_PlayerAlive)
476 {
477 if (player)
478 m_RestartButton.Show(player.IsUnconscious());
479 }
480 else
481 m_RestartButton.Show(false);
482 m_ContinueButton.Show(m_PlayerAlive);
483 m_RestartDeadButton.Show(!m_PlayerAlive);
484
486
487#ifdef PLATFORM_CONSOLE
488 bool mk = GetGame().GetInput().IsEnabledMouseAndKeyboard();
489 bool mk_server = GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
490 TextWidget warning = TextWidget.Cast(layoutRoot.FindAnyWidget("MouseAndKeyboardWarning"));
491 if (mk)
492 {
493 if (mk_server)
494 warning.SetText("#str_mouse_and_keyboard_server_warning");
495 else
496 warning.SetText("#str_controller_server_warning");
497 }
498
499 warning.Show(mk);
500#endif
502 }
503
504 override bool OnMouseEnter(Widget w, int x, int y)
505 {
506 if (IsFocusable(w))
507 {
509 return true;
510 }
511 return false;
512 }
513
514 override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
515 {
516 if (IsFocusable(w))
517 {
518 ColorNormal(w);
519 return true;
520 }
521 return false;
522 }
523
524 override bool OnFocus(Widget w, int x, int y)
525 {
526 if (IsFocusable(w))
527 {
529 return true;
530 }
531 return false;
532 }
533
534 override bool OnFocusLost(Widget w, int x, int y)
535 {
536 if (IsFocusable(w))
537 {
538 ColorNormal(w);
539 return true;
540 }
541 return false;
542 }
543
545 {
546 if (w)
547 {
548 if (w == m_ContinueButton || w == m_ExitButton || w == m_RestartButton || w == m_OptionsButton || w == m_ControlsButton || w == m_OnlineButton || w == m_TutorialsButton);
549 return true;
550 }
551 return false;
552 }
553
554 override void Refresh()
555 {
556 string version;
557 GetGame().GetVersion(version);
558#ifdef PLATFORM_CONSOLE
559 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
560#else
561 version = "#main_menu_version" + " " + version;
562#endif
563 m_Version.SetText(version);
564
565 m_MuteAvailable = false;
566 m_GamercardAvailable = false;
567
568 if (GetGame().IsMultiplayer() && layoutRoot.FindAnyWidget("OnlineInfo").IsVisible() && m_ServerInfoPanel)
569 {
570 PlayerListEntryScriptedWidget selected = m_ServerInfoPanel.GetSelectedPlayer();
571 if (selected && !selected.IsLocalPlayer())
572 {
573 m_MuteAvailable = !GetGame().GetWorld().IsDisabledReceivingVoN() && !selected.IsGloballyMuted();
574#ifndef PLATFORM_PS4
575 m_GamercardAvailable = true;
576#endif
577 SetMuteButtonText(selected.IsMuted());
578 }
579 }
580
582 }
583
585 {
586#ifdef PLATFORM_WINDOWS
587 SetFocus(null);
588#endif
589
591 if (button && button != m_ContinueButton)
592 button.SetTextColor(ARGB(255, 255, 255, 255));
593 ButtonSetColor(w, ARGB(0, 0, 0, 0));
594 ButtonSetTextColor(w, ARGB(60, 0, 0, 0));
595 }
596
598 {
599 if (!w)
600 return;
601
602 int color_pnl = ARGB(255, 0, 0, 0);
603 int color_lbl = ARGB(255, 255, 0, 0);
604
605#ifdef PLATFORM_CONSOLE
606 color_pnl = ARGB(255, 200, 0, 0);
607 color_lbl = ARGB(255, 255, 255, 255);
608#endif
609
612 }
613
615 {
616 if (!w)
617 return;
618
619 int color_pnl = ARGB(0, 0, 0, 0);
620 int color_lbl = ARGB(255, 255, 255, 255);
621
624 }
625
627 {
628 if (!w)
629 return;
630
631 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
632
633 if (label)
634 label.SetText(text);
635
636 }
637
639 {
640 if (!w)
641 return;
642
643 Widget panel = w.FindWidget(w.GetName() + "_panel");
644
645 if (panel)
646 panel.SetColor(color);
647 }
648
650 {
651 if (!w)
652 return;
653
654 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
655 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
656 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
657
658 if (label)
659 label.SetColor(color);
660
661 if (text)
662 text.SetColor(color);
663
664 if (text2)
665 text2.SetColor(color);
666 }
667
669 protected void SetMuteButtonText(bool isMuted)
670 {
671 if (isMuted)
672 m_CurrentMuteButtonText = m_UnmuteButtonTextID;
673 else
674 m_CurrentMuteButtonText = m_MuteButtonTextID;
675 }
676
678 protected void LoadTextStrings()
679 {
680#ifdef PLATFORM_PS4
681 m_MuteButtonTextID = "#ps4_ingame_menu_mute";
682 m_UnmuteButtonTextID = "#ps4_ingame_menu_unmute";
683 m_BackButtonTextID = "#ps4_ingame_menu_back";
684 m_SelectButtonTextID = "#ps4_ingame_menu_select";
685 m_OpenGameCardButtonTextID = "#ps4_ingame_menu_opencard";
686#else
687 m_MuteButtonTextID = "#xbox_ingame_menu_mute";
688 m_UnmuteButtonTextID = "#xbox_ingame_menu_unmute";
689 m_BackButtonTextID = "#STR_rootFrame_toolbar_bg_ConsoleToolbar_Back_BackText0";
690 m_SelectButtonTextID = "#layout_xbox_ingame_menu_select";
691 m_OpenGameCardButtonTextID = "#layout_xbox_ingame_menu_gamecard";
692#endif
693 }
694
696 protected void LoadFooterButtonTexts()
697 {
698 TextWidget uiGamecardText = TextWidget.Cast(layoutRoot.FindAnyWidget("GamercardText"));
699 TextWidget uiBackText = TextWidget.Cast(layoutRoot.FindAnyWidget("BackText"));
700 TextWidget uiSelectText = TextWidget.Cast(layoutRoot.FindAnyWidget("SelectText"));
701
702 if (uiGamecardText)
703 uiGamecardText.SetText(m_OpenGameCardButtonTextID);
704 if (uiBackText)
706 if (uiSelectText)
707 uiSelectText.SetText(m_SelectButtonTextID);
708 }
709
711 {
712 Man player = GetGame().GetPlayer();
713 if (m_PlayerAlive)
714 {
716 SetFocus(m_RestartButton);
717 else
718 SetFocus(m_ContinueButton);
719 }
720 else
721 SetFocus(m_RestartDeadButton);
722 }
723
724 protected void UpdateControlsElements()
725 {
726 bool toolbarShow = false;
727#ifdef PLATFORM_CONSOLE
728 toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
729#endif
730
731 if (toolbarShow)
732 {
733 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
734 string text = "";
735 if (m_SelectAvailable)
736 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", m_SelectButtonTextID, EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
737 if (m_MuteAvailable)
738 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", m_CurrentMuteButtonText, EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
739 if (m_BackAvailable)
741 if (m_GamercardAvailable)
742 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", m_OpenGameCardButtonTextID, EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
743
744 toolbar_text.SetText(text);
745 }
746
747 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
749
750 bool onlineOpen = IsOnlineOpen();
751 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
752 layoutRoot.FindAnyWidget("play_panel_root").Show(!onlineOpen);
753 layoutRoot.FindAnyWidget("play_panel_root2").Show(onlineOpen && !toolbarShow);
754 layoutRoot.FindAnyWidget("dayz_logo").Show(!onlineOpen);
755 }
756}
void OnInputPresetChanged()
Definition Inventory.c:160
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
Definition Inventory.c:167
ActionInput GetInput()
Definition ActionBase.c:989
class JsonControlMappingInfo m_BackButtonTextID
DayZGame g_Game
Definition DayZGame.c:3528
Mission mission
EPlayerStates
Icon x
Icon y
void Close()
PlayerBase GetPlayer()
proto native UAInputAPI GetUApi()
static bool GetDisableRespawnInUnconsciousness()
Super root of all classes in Enforce script.
Definition EnScript.c:11
static ref ScriptInvoker SyncEvent_OnPlayerListUpdate
Definition ClientData.c:3
static ref SyncPlayerList m_PlayerList
Definition ClientData.c:8
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Definition InputUtils.c:151
static const float ICON_SCALE_TOOLBAR
Definition InputUtils.c:15
Mission class.
Definition gameplay.c:668
void Pause()
Definition gameplay.c:748
void Continue()
Definition gameplay.c:749
Hud GetHud()
Definition gameplay.c:701
static ref ScriptInvoker m_PermissionsAsyncInvoker
static bool IsPlayerMuted(string id)
static void ShowInviteScreen()
static void ShowUserProfile(string uid)
static map< string, bool > GetMuteList()
void LoadFooterButtonTexts()
Initial texts load for the footer buttons.
void MenuRequestRespawn(UIScriptedMenu menu, bool random)
void SyncEvent_OnRecievedPlayerList(SyncPlayerList player_list)
override bool OnMouseEnter(Widget w, int x, int y)
override void OnShow()
void OnPermissionsUpdate(BiosPrivacyUidResultArray result_list)
void ColorDisable(Widget w)
override bool OnFocus(Widget w, int x, int y)
void SetMuteButtonText(bool isMuted)
Set mute text button text (mute / unmute)
override void Update(float timeslice)
override void Refresh()
TextWidget m_Version
string m_BackButtonTextID
ButtonWidget m_RestartButton
void ColorHighlight(Widget w)
bool IsFocusable(Widget w)
void LoadTextStrings()
Set correct bottom button texts based on platform (ps4 vs xbox texts)
ButtonWidget m_OnlineButton
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
void ButtonSetText(Widget w, string text)
string m_OpenGameCardButtonTextID
const int BUTTON_XBOX_CONTROLS
SyncPlayerList CreateFakePlayerList(int player_count)
ref PlayerListScriptedWidget m_ServerInfoPanel
ButtonWidget m_ContinueButton
override bool OnFocusLost(Widget w, int x, int y)
override bool OnItemSelected(Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
ButtonWidget m_ControlsButton
ButtonWidget m_RestartDeadButton
string m_SelectButtonTextID
bool IsLocalPlayer(string uid)
ButtonWidget m_OptionsButton
string m_MuteButtonTextID
void GameRetry(bool random)
string m_UnmuteButtonTextID
void UpdateControlsElements()
void ButtonSetTextColor(Widget w, int color)
override Widget Init()
override bool OnClick(Widget w, int x, int y, int button)
ButtonWidget m_ExitButton
ButtonWidget m_TutorialsButton
void ButtonSetColor(Widget w, int color)
override bool OnModalResult(Widget w, int x, int y, int code, int result)
void ColorNormal(Widget w)
string m_CurrentMuteButtonText
bool ShouldRestartBeVisible(Man player)
void OnInputPresetChanged()
proto native CGame GetGame()
const int RESPAWN_MODE_CUSTOM
Definition constants.c:901
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
const int MENU_TUTORIAL
Definition constants.c:194
const int MENU_XBOX_CONTROLS
Definition constants.c:187
const int MENU_RESPAWN_DIALOGUE
Definition constants.c:199
const int MENU_OPTIONS
Definition constants.c:173
void Continue()
Timer continue when it was paused.
Definition tools.c:235
const int CALL_CATEGORY_GUI
Definition tools.c:9
const int IDC_INT_EXIT
Definition constants.c:150
const int IDC_MAIN_OPTIONS
Definition constants.c:134
const int IDC_MULTI_INVITE
Definition constants.c:142
const int IDC_MAIN_QUIT
Definition constants.c:136
const int IDC_MAIN_CONTINUE
Definition constants.c:137
const int IDC_INT_RETRY
ingame menu
Definition constants.c:148
const int IDC_MAIN_ONLINE
Definition constants.c:140
proto native Widget GetFocus()
proto native void SetFocus(Widget w)
EInputDeviceType
Definition input.c:3
int ARGB(int a, int r, int g, int b)
Definition proto.c:322