mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 17:04:38 +00:00
Made it so using [story]part]title= automatically sets show_title...
...to a true value if it was not specified.
This commit is contained in:
parent
affa9bfdc8
commit
3f1112b06c
@ -25,8 +25,7 @@ Version 1.7.2+svn:
|
||||
* return 0 for length of arrays inside nonexistent containers (bug #13734)
|
||||
* [end_turn] now waits for the event to finish before ending the turn
|
||||
* it is now possible to use Pango markup in storyscreen text
|
||||
* it is now possible to specify a title= in [story] [part]s (hidden by
|
||||
default, use show_title=yes to display)
|
||||
* it is now possible to specify a custom title= in [story] [part]s
|
||||
* [story] [part]s' text placement may be changed with text_layout=; it
|
||||
currently supports "top", "middle" and "bottom" (default)
|
||||
* Miscellaneous and bugfixes:
|
||||
|
@ -181,6 +181,9 @@ void part::resolve_wml(const vconfig &cfg)
|
||||
}
|
||||
if(cfg.has_attribute("title")) {
|
||||
text_title_ = cfg["title"];
|
||||
if(!cfg.has_attribute("show_title")) {
|
||||
show_title_ = true;
|
||||
}
|
||||
}
|
||||
if(cfg.has_attribute("text_layout")) {
|
||||
text_block_loc_ = string_tblock_loc(cfg["text_layout"]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user