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:
Ignacio R. Morelle 2009-08-02 16:41:58 +00:00
parent affa9bfdc8
commit 3f1112b06c
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -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"]);