Introduction sequence at start of a scenario, End-screen after end of campaign. More...
#include "global.hpp"
#include "intro.hpp"
#include "video.hpp"
#include "gettext.hpp"
#include "marked-up_text.hpp"
#include "sdl/rect.hpp"
#include "font.hpp"
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... | |
Introduction sequence at start of a scenario, End-screen after end of campaign.
Definition in file intro.cpp.
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().