20 #ifndef STORYSCREEN_PART_HPP_INCLUDED
21 #define STORYSCREEN_PART_HPP_INCLUDED
107 render_input
get_render_input(
double xscale,
double yscale, SDL_Rect& dst_rect)
const;
void set_keep_aspect_ratio(bool b)
Sets whether the aspect ratio should be preserved.
Skip all story parts for this set.
bool tile_vertically() const
Whether the layer should be tiled vertically.
int ref_y() const
Returns the referential Y coordinate of the image.
bool keep_aspect_ratio() const
Whether the aspect ratio should be preserved while scaling.
SDL_Rect rect
Corrected rectangle for rendering surf.
BLOCK_LOCATION story_text_location() const
Retrieves the area of the screen on which the story text is displayed.
void set_title(const std::string &title)
Changes the story screen title.
floating_image & operator=(const floating_image &fi)
bool scale_vertically() const
Whether the layer should be scaled vertically.
Center on the topmost edge of the screen.
const std::string & title() const
Retrieves the story screen title.
const std::vector< background_layer > & get_background_layers() const
Retrieve background layers for this story screen.
bool scale_horizontally() const
Whether the layer should be scaled horizontally.
static TEXT_ALIGNMENT string_title_align(const std::string &s)
render_input get_render_input(double xscale, double yscale, SDL_Rect &dst_rect) const
Gets a render_input object for use by the rendering code after applying any geometric transformations...
void set_tile_vertically(bool b)
Sets whether the layer should be tiled vertically.
GLdouble GLdouble GLdouble b
const std::string & file() const
The path to the file to load the image from.
BLOCK_LOCATION text_block_loc_
void set_file(const std::string &str)
Sets the path to the image file.
RESULT
Used to signal user actions.
const std::string & music() const
Retrieves the background music.
Represents and contains information about image labels used in story screen parts.
void set_tile_horizontally(bool b)
Sets whether the layer should be tiled horizontally.
background_layer()
Constructor.
const std::string & text() const
Retrieves the story text itself.
TEXT_ALIGNMENT title_alignment_
bool centered() const
Whether the image coordinates specify the location of its center (true) or top-left corner (false)...
std::vector< background_layer > background_layers_
Represents and contains information about a single storyscreen part.
std::vector< floating_image > floating_images_
void resolve_wml(const vconfig &cfg)
Takes care of initializing and branching properties.
static BLOCK_LOCATION string_tblock_loc(const std::string &s)
bool is_base_layer() const
Whether is this layer the base layer.
const std::string & sound() const
Retrieves a one-time-only sound effect.
void assign(const floating_image &fi)
Copy constructor and operator=() implementation details.
Contains a wrapper class for the GPU_Image class.
int ref_x() const
Returns the referential X coordinate of the image.
int display_delay() const
Delay before displaying, in milliseconds.
Quit game and go back to main menu.
bool show_title() const
Whether the story screen title should be displayed or not.
void set_base_layer(bool b)
Sets whether is this layer a base layer.
floating_image(const config &cfg)
WML-based constructor.
part(const vconfig &part_cfg)
Constructs a storyscreen part from a managed WML node.
A variable-expanding proxy for the config class.
TEXT_ALIGNMENT title_text_alignment() const
Retrieves the alignment of the title text against the screen.
void set_text(const std::string &text)
Changes the story text.
void set_scale_horizontally(bool b)
Sets whether the layer should be scaled horizontally.
surface image
Surface, scaled if required.
A config object defines a single node in a WML file, with access to child nodes.
TEXT_ALIGNMENT
Currently used to indicate where the page title should be placed.
void set_scale_vertically(bool b)
Sets whether the layer should be scaled vertically.
bool tile_horizontally() const
Whether the layer should be tiled horizontally.
const std::vector< floating_image > & get_floating_images() const
Retrieve any associated floating images for this story screen.
GLsizei const GLcharARB ** string
BLOCK_LOCATION
Currently used to indicate where the text block should be placed.
bool autoscale() const
Whether the image should be automatically scaled as much as the storyscreen background is...