DayZ 1.24
Loading...
Searching...
No Matches
LoadingMenu.c
Go to the documentation of this file.
1class LoadingMenu extends UIScriptedMenu
2{
4 {
5 }
6
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");
27 exp_notifiaction.Show(true);
28#endif
29#endif
30#endif
31
32 return layoutRoot;
33 }
34
38}
string GetRandomLoadingBackground()
Returns random loading background texture path.
Definition UIManager.c:241
ProgressBarWidget m_progressBar
Definition LoadingMenu.c:36
void ~LoadingMenu()
Definition LoadingMenu.c:7
TextWidget m_label
Definition LoadingMenu.c:35
void LoadingMenu()
Definition LoadingMenu.c:3
override Widget Init()
Definition LoadingMenu.c:11
ImageWidget m_image
Definition LoadingMenu.c:37
proto native CGame GetGame()