mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 16:04:18 +00:00
Write unit's name in bold and uniformize level not in bold in sidebars.
Bold name because it acts as the "top title", and it accentuates the unit's unicity.
This commit is contained in:
parent
e55f210443
commit
f82f003ff9
@ -754,7 +754,7 @@ void unit_preview_pane::draw_contents()
|
||||
|
||||
if(det.name.empty() == false) {
|
||||
std::stringstream desc;
|
||||
desc << font::NORMAL_TEXT << det.name;
|
||||
desc << font::BOLD_TEXT << det.name;
|
||||
const std::string description = desc.str();
|
||||
description_rect = font::text_area(description, font::SIZE_NORMAL);
|
||||
description_rect = font::draw_text(&video(), area,
|
||||
@ -767,7 +767,7 @@ void unit_preview_pane::draw_contents()
|
||||
std::stringstream text;
|
||||
text << font::unit_type << det.type_name << "\n"
|
||||
<< font::race << " " << det.race << "\n"
|
||||
<< font::BOLD_TEXT << _("level") << " " << det.level << "\n"
|
||||
<< _("level") << " " << det.level << "\n"
|
||||
<< det.alignment << "\n"
|
||||
<< det.traits << "\n";
|
||||
|
||||
|
@ -63,7 +63,7 @@ report generate_report(TYPE type,
|
||||
|
||||
switch(type) {
|
||||
case UNIT_NAME:
|
||||
return report(u->name(), "", u->name());
|
||||
return report(std::string(1,font::BOLD_TEXT) + u->name(), "", u->name());
|
||||
case UNIT_TYPE:
|
||||
return report(font::unit_type + u->type_name(), "", u->unit_description());
|
||||
case UNIT_RACE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user