Use full-size portraits in unit help pages (experimental)
This commit is contained in:
parent
af7fb25217
commit
75d125d070
1 changed files with 6 additions and 4 deletions
|
@ -256,16 +256,18 @@ std::string unit_topic_generator::operator()() const {
|
|||
ss << "<img>src='" << female_type.image() << "~RC(" << female_type.flag_rgb() << ">red)~XBRZ(2)' box='no'</img> ";
|
||||
#endif
|
||||
|
||||
const std::string &male_portrait = male_type.small_profile();
|
||||
const std::string &female_portrait = female_type.small_profile();
|
||||
const std::string &male_portrait = male_type.big_profile();
|
||||
const std::string &female_portrait = female_type.big_profile();
|
||||
|
||||
// TODO: figure out why the second checks don't match but the last does
|
||||
if (!male_portrait.empty() && male_portrait != male_type.image() && male_portrait != "unit_image") {
|
||||
ss << "<img>src='" << male_portrait << "~SCALE(205,205)~BG()' align='right'</img> ";
|
||||
ss << "<img>src='" << male_portrait << "' box='no' align='right' float='yes'</img> ";
|
||||
}
|
||||
|
||||
ss << "\n\n";
|
||||
|
||||
if (!female_portrait.empty() && female_portrait != male_portrait && female_portrait != female_type.image() && female_portrait != "unit_image") {
|
||||
ss << "<img>src='" << female_portrait << "~SCALE(205,205)~BG()' align='right'</img> ";
|
||||
ss << "<img>src='" << female_portrait << "' box='no' align='right' float='yes'</img> ";
|
||||
}
|
||||
|
||||
ss << "\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue