The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
intro.hpp File Reference

-file gamestatus.hpp More...

#include <string>
Include dependency graph for intro.hpp:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

-file gamestatus.hpp

Definition in file intro.hpp.

Function Documentation

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.

Parameters
textText to display, centered on the screen.
durationIn 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().