MCPcopy Create free account
hub / github.com/crawl/crawl / loading_screen_open

Function loading_screen_open

crawl-ref/source/loading-screen.cc:64–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void loading_screen_open()
65{
66 if (!crawl_state.title_screen || in_headless_mode())
67 return;
68 auto splash = make_shared<UIShrinkableImage>(_get_title_image());
69 loading_text = make_shared<Text>();
70 loading_text->set_margin_for_sdl(15, 0, 0, 0);
71 auto vbox = make_shared<Box>(Widget::VERT);
72 vbox->set_cross_alignment(Widget::CENTER);
73 vbox->add_child(std::move(splash));
74 vbox->add_child(loading_text);
75 FontWrapper *font = tiles.get_crt_font();
76 vbox->min_size().width = font->string_width(load_complete_msg.c_str());
77 popup = make_shared<ui::Popup>(std::move(vbox));
78 ui::push_layout(popup);
79}
80
81void loading_screen_close()
82{

Callers 1

_initializeFunction · 0.85

Calls 8

_get_title_imageFunction · 0.85
push_layoutFunction · 0.85
set_margin_for_sdlMethod · 0.80
set_cross_alignmentMethod · 0.80
add_childMethod · 0.80
get_crt_fontMethod · 0.80
string_widthMethod · 0.80
in_headless_modeFunction · 0.70

Tested by

no test coverage detected