Introduction sequence at start of a scenario, End-screen after end of campaign. More...
#include "global.hpp"#include "intro.hpp"#include "display.hpp"#include "gettext.hpp"#include "log.hpp"#include "marked-up_text.hpp"#include "storyscreen/interface.hpp"
Go to the source code of this file.
Defines | |
| #define | ERR_NG LOG_STREAM(err, log_engine) |
| #define | LOG_NG LOG_STREAM(info, log_engine) |
Functions | |
| static void | the_end_old (display &disp, std::string text, unsigned int duration) |
| void | set_new_storyscreen (bool enabled) |
| Enables/disables the new (work in progress) story screen code. | |
| void | the_end (display &disp, std::string text, unsigned int duration) |
| Displays a simple fading screen with any user-provided text. | |
Variables | |
| static lg::log_domain | log_engine ("engine") |
| static bool | use_shadowm_storyscreen = false |
Introduction sequence at start of a scenario, End-screen after end of campaign.
Definition in file intro.cpp.
| #define ERR_NG LOG_STREAM(err, log_engine) |
| #define LOG_NG LOG_STREAM(info, log_engine) |
Definition at line 34 of file intro.cpp.
Referenced by set_new_storyscreen().
| void set_new_storyscreen | ( | bool | enabled | ) |
Enables/disables the new (work in progress) story screen code.
Definition at line 91 of file intro.cpp.
References LOG_NG, and use_shadowm_storyscreen.
Referenced by game_controller::game_controller().

| void the_end | ( | display & | disp, | |
| 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 97 of file intro.cpp.
References show_endscreen(), the_end_old(), and use_shadowm_storyscreen.
Referenced by game_controller::launch_game().


| static void the_end_old | ( | display & | disp, | |
| std::string | text, | |||
| unsigned int | duration | |||
| ) | [static] |
Definition at line 38 of file intro.cpp.
References _, preferences::editor::TransitionUpdateMode::count, create_color(), display::delay(), font::draw_text(), display::flip(), gui::font_size, CVideo::getSurface(), events::pump(), events::raise_draw_event(), events::raise_process_event(), screen_area(), sdl_fill_rect(), font::SIZE_XLARGE, font::text_area(), update_rect(), update_whole_screen(), and display::video().
Referenced by the_end().


lg::log_domain log_engine("engine") [static] |
bool use_shadowm_storyscreen = false [static] |
Definition at line 36 of file intro.cpp.
Referenced by set_new_storyscreen(), and the_end().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:05:24 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |