Storyscreen controller (wrapper interface). More...
#include <string>#include "config.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | storyscreen |
Enumerations | |
| enum | storyscreen::START_POSITION { storyscreen::START_BEGINNING, storyscreen::START_END } |
Functions | |
| void | show_story (display &disp, const std::string &scenario_name, const config::const_child_itors &story) |
| Function to show an introduction sequence segment using story WML. | |
| void | show_endscreen (display &disp, const t_string &text, unsigned int duration) |
| Displays a simple fading screen with any user-provided text. | |
Storyscreen controller (wrapper interface).
Definition in file interface.hpp.
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 92 of file interface.cpp.
Referenced by the_end().

| void show_story | ( | display & | disp, | |
| const std::string & | scenario_name, | |||
| const config::const_child_itors & | story | |||
| ) |
Function to show an introduction sequence segment using story WML.
The WML config data (story_cfg) has a format similar to:
[part]
id='id'
story='story'
image='img'
[/part]
Where 'id' is a unique identifier, 'story' is text describing the storyline,and 'img' is a background image. Each part of the sequence will be displayed in turn, with the user able to go to the next part, or skip it entirely.
Definition at line 57 of file interface.cpp.
References storyscreen::BACK, storyscreen::NEXT, storyscreen::QUIT, and storyscreen::controller::show().
Referenced by playsingle_controller::play_scenario().


| Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:43 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |