31 , delay_(cfg[
"delay"])
32 , resize_with_background_(cfg[
"resize_with_background"].to_bool())
33 , centered_(cfg[
"centered"].to_bool())
38 : scale_horizontally_(true)
39 , scale_vertically_(true)
40 , tile_horizontally_(false)
41 , tile_vertically_(false)
42 , keep_aspect_ratio_(true)
43 , is_base_layer_(false)
100 , text_block_loc_(
part::BLOCK_BOTTOM)
101 , text_alignment_(
"left")
102 , title_alignment_(
"left")
105 , background_layers_()
113 if(s.empty() !=
true) {
116 }
else if(s ==
"middle") {
134 bl.
set_file(cfg[
"background"].str());
174 text_ = cfg[
"story"].str();
197 music_ = cfg[
"music"].str();
201 sound_ = cfg[
"sound"].str();
205 voice_ = cfg[
"voice"].str();
217 if(key ==
"background_layer") {
222 else if(key ==
"image") {
void set_keep_aspect_ratio(bool b)
Sets whether the aspect ratio should be preserved.
Storyscreen parts and floating images representation.
bool has_attribute(config_key_type key) const
bool has_attribute(const std::string &key) const
< Synonym for operator[]
std::string title_alignment_
Definitions for the interface to Wesnoth Markup Language (WML).
void set_tile_vertically(bool b)
Sets whether the layer should be tiled vertically.
virtual void resolve_wml(const vconfig &cfg)
Takes care of initializing and branching properties.
BLOCK_LOCATION text_block_loc_
void set_file(const std::string &str)
Sets the path to the image file.
void set_tile_horizontally(bool b)
Sets whether the layer should be tiled horizontally.
virtual bool resolve_wml_helper(const std::string &key, const vconfig &node) override
Inherited from story_parser.
config get_parsed_config() const
std::vector< background_layer > background_layers_
Represents and contains information about a single storyscreen part.
std::vector< floating_image > floating_images_
static BLOCK_LOCATION string_tblock_loc(const std::string &s)
static map_location::DIRECTION s
virtual void resolve_wml(const vconfig &cfg) override
Inherited from story_parser.
std::string text_alignment_
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.
void set_scale_horizontally(bool b)
Sets whether the layer should be scaled horizontally.
A config object defines a single node in a WML file, with access to child nodes.
void set_scale_vertically(bool b)
Sets whether the layer should be scaled vertically.
BLOCK_LOCATION
Currently used to indicate where the text block should be placed.