DayZ 1.24
Loading...
Searching...
No Matches
UIManager.c File Reference

Go to the source code of this file.

Classes

class  UIManager
 

Functions

string GetRandomLoadingBackground ()
 Returns random loading background texture path.
 

Function Documentation

◆ GetRandomLoadingBackground()

string GetRandomLoadingBackground ( )

Returns random loading background texture path.

Definition at line 241 of file UIManager.c.

242{
243 const string images[] = {"{655A1BF79F5B291}Gui/textures/loading_screens/loading_screen_1_co.edds", "{84BE5F7442BD4B}Gui/textures/loading_screens/loading_screen_2_co.edds"};
244 Math.Randomize(-1);
245 int index = Math.RandomInt(0, 100) % 2;
246 return images[index];
247}
Definition EnMath.c:7
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

References Math::RandomInt(), and Math::Randomize().

Referenced by UIScriptedMenu::Init().