MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / begin

Method begin

game/ui/general/loadingscreen.cpp:30–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void LoadingScreen::begin()
31{
32 // FIXME: This is now useless, as it doesn't actually load anything interesting here
33 if (showRotatingImage)
34 {
35 loadingimage = fw().data->loadImage("ui/loading.png");
36 }
37 if (!backgroundimage)
38 {
39 backgroundimage = fw().data->loadImage("ui/logo.png");
40 }
41 fw().displaySetIcon(std::dynamic_pointer_cast<RGBImage>(backgroundimage));
42 loadingimageangle = 0;
43 if (Options::asyncLoading.get() == false)
44 {
45 loadingTask.wait();
46 }
47}
48
49void LoadingScreen::pause() {}
50

Callers

nothing calls this directly

Calls 3

displaySetIconMethod · 0.80
loadImageMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected