-file gamestatus.hpp More...
#include <string>
Go to the source code of this file.
Functions | |
void | the_end (CVideo &video, std::string text, unsigned int duration) |
Displays a simple fading screen with any user-provided text. More... | |
-file gamestatus.hpp
Definition in file intro.hpp.
void the_end | ( | CVideo & | video, |
std::string | text, | ||
unsigned int | duration | ||
) |
Displays a simple fading screen with any user-provided text.
Used after the end of single-player campaigns.
text | Text to display, centered on the screen. |
duration | In milliseconds, for how much time the text will be displayed on screen. |
Definition at line 31 of file intro.cpp.
References _(), create_color(), CVideo::delay(), font::draw_text(), sdl::fill_rect(), CVideo::flip(), gui::font_size, CVideo::getSurface(), events::pump(), events::raise_draw_event(), events::raise_process_event(), screen_area(), font::SIZE_XLARGE, font::text_area(), and update_rect().
Referenced by game_launcher::launch_game().