Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
loadingmenu.c
Go to the documentation of this file.
1class 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}
override Widget Init()
Definition bookmenu.c:11
proto native CGame GetGame()
string GetRandomLoadingBackground()
Returns random loading background texture path.
Definition uimanager.c:251