| 62 | } |
| 63 | |
| 64 | void 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 | |
| 81 | void loading_screen_close() |
| 82 | { |
no test coverage detected