133 return scale_horizontally_;
139 scale_horizontally_ =
b;
145 return scale_vertically_;
151 scale_vertically_ =
b;
157 return tile_horizontally_;
163 tile_horizontally_ =
b;
169 return tile_vertically_;
175 tile_vertically_ =
b;
181 return keep_aspect_ratio_;
187 keep_aspect_ratio_ =
b;
193 return is_base_layer_;
203 const std::string&
file()
const 263 const std::string&
text()
const 307 return text_block_loc_;
313 return text_alignment_;
319 return title_alignment_;
325 return floating_images_;
331 return background_layers_;
336 virtual void resolve_wml(
const vconfig& cfg)
override;
339 virtual bool resolve_wml_helper(
const std::string& key,
const vconfig& node)
override;
bool resize_with_background_
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_x() const
Returns the referential X coordinate of the image.
bool keep_aspect_ratio() const
Whether the aspect ratio should be preserved while scaling.
const std::string & title_text_alignment() const
Retrieves the alignment of the title text against the screen.
void set_title(const std::string &title)
Changes the story screen title.
const std::string & music() const
Retrieves the background music.
floating_image & operator=(const floating_image &fi)
bool show_title() const
Whether the story screen title should be displayed or not.
std::string title_alignment_
bool centered() const
Whether the image coordinates specify the location of its center (true) or top-left corner (false)...
bool scale_vertically() const
Whether the layer should be scaled vertically.
const std::string & text() const
Retrieves the story text itself.
void set_tile_vertically(bool b)
Sets whether the layer should be tiled vertically.
bool resize_with_background() const
If true, the size of the image is changed in the same way that the ref_x and ref_y are mapped to use ...
Small helper class to encapsulate the common logic for parsing storyscreen WML.
bool tile_horizontally() const
Whether the layer should be tiled horizontally.
bool is_base_layer() const
Whether is this layer the base layer.
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.
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.
int display_delay() const
Delay after displaying this image and before displaying the next image, in milliseconds.
const std::string & story_text_alignment() const
Retrieves the alignment of the story text within the text area.
const std::vector< background_layer > & get_background_layers() const
Retrieve background layers for this story screen.
std::vector< background_layer > background_layers_
BLOCK_LOCATION story_text_location() const
Retrieves the area of the screen on which the story text is displayed.
Represents and contains information about a single storyscreen part.
std::vector< floating_image > floating_images_
int ref_y() const
Returns the referential Y coordinate of the image.
const std::string & voice() const
Retrieves a voice track.
const std::string & sound() const
Retrieves a one-time-only sound effect.
void assign(const floating_image &fi)
Copy constructor and operator=() implementation details.
const std::string & file() const
The path to the file to load the image from.
static map_location::DIRECTION s
const std::vector< floating_image > & get_floating_images() const
Retrieve any associated floating images for this story screen.
bool scale_horizontally() const
Whether the layer should be scaled horizontally.
const std::string & title() const
Retrieves the story screen title.
std::string text_alignment_
void set_base_layer(bool b)
Sets whether is this layer a base layer.
floating_image(const config &cfg)
WML-based constructor.
A variable-expanding proxy for the config class.
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.
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.