Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
loadingmenu.c
Go to the documentation of this file.
1 class LoadingMenu extends UIScriptedMenu
2 {
3  void LoadingMenu()
4  {
5  }
6 
7  void ~LoadingMenu()
8  {
9  }
10 
11  override Widget Init()
12  {
13  layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/loading.layout");
14 
15  m_label = TextWidget.Cast( layoutRoot.FindAnyWidget("TextWidget") );
16  m_progressBar = ProgressBarWidget.Cast( layoutRoot.FindAnyWidget("ProgressBarWidget") );
17  m_image = ImageWidget.Cast( layoutRoot.FindAnyWidget("ImageBackground") );
18 
19  m_image.LoadImageFile( 0, GetRandomLoadingBackground() );
20  layoutRoot.FindAnyWidget("notification_root").Show(false);
21 
22  #ifdef PLATFORM_CONSOLE
23  #ifdef PLATFORM_XBOX
24  #ifdef BUILD_EXPERIMENTAL
25  Widget exp_notifiaction = layoutRoot.FindAnyWidget("notification_root");
26  if (exp_notifiaction)
27  {
28  exp_notifiaction.Show(true);
29  }
30  #endif
31  #endif
32  #endif
33 
34  return layoutRoot;
35  }
36 
37  TextWidget m_label;
38  ProgressBarWidget m_progressBar;
39  ImageWidget m_image;
40 }
GetGame
proto native CGame GetGame()
UIScriptedMenu
Definition: dayzgame.c:63
Init
class InventoryGridController extends ScriptedWidgetEventHandler Init
Definition: uihintpanel.c:46
TextWidget
Definition: enwidgets.c:219
GetRandomLoadingBackground
string GetRandomLoadingBackground()
Returns random loading background texture path.
Definition: uimanager.c:249
Widget
Definition: enwidgets.c:189