MCPcopy Create free account
hub / github.com/TurningWheel/Barony / createLoadingScreen

Function createLoadingScreen

src/ui/LoadingScreen.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void createLoadingScreen(real_t progress) {
133 const char* image;
134 switch (local_rng.uniform(0, 3)) {
135 default:
136 case 0: image = "#images/ui/LoadingScreen/backdrop0.png"; break;
137 case 1: image = "#images/ui/LoadingScreen/backdrop1.png"; break;
138 case 2: image = "#images/ui/LoadingScreen/backdrop2.png"; break;
139 case 3: image = "#images/ui/LoadingScreen/backdrop4.png"; break;
140 //case 4: image = "#images/ui/LoadingScreen/backdrop3.png"; break;
141 }
142 baseCreateLoadingScreen(progress, image);
143}
144
145void createLevelLoadScreen(real_t progress) {
146 baseCreateLoadingScreen(progress, nullptr); // create loading screen with no background

Callers 4

unloadModsMethod · 0.85
loadModsMethod · 0.85
reloadModelsFunction · 0.85
initAppFunction · 0.85

Calls 2

baseCreateLoadingScreenFunction · 0.85
uniformMethod · 0.45

Tested by

no test coverage detected