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

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"
Include dependency graph for intro.cpp:

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

Introduction sequence at start of a scenario, End-screen after end of campaign.

Definition in file intro.cpp.

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