mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 20:44:24 +00:00
In recall dialog, for level, use same increasing brightness as in unit list.
This commit is contained in:
parent
058f106945
commit
07b5cd9998
@ -277,7 +277,7 @@ void menu_handler::unit_list()
|
||||
row << font::NORMAL_TEXT;
|
||||
} else if(level == 2) {
|
||||
row << font::BOLD_TEXT;
|
||||
} if(i->second.level() > 2 ) {
|
||||
} else if(level > 2 ) {
|
||||
row << font::BOLD_TEXT << "<255,255,255>";
|
||||
}
|
||||
row << level << COLUMN_SEPARATOR;
|
||||
@ -864,9 +864,22 @@ void menu_handler::recall(int side_num, const map_location &last_hex)
|
||||
#endif
|
||||
option << COLUMN_SEPARATOR
|
||||
<< u.type_name() << COLUMN_SEPARATOR
|
||||
<< name << COLUMN_SEPARATOR
|
||||
<< u.level() << COLUMN_SEPARATOR
|
||||
<< font::color2markup(u.xp_color()) << u.experience() << "/";
|
||||
<< name << COLUMN_SEPARATOR;
|
||||
|
||||
// Show units of level (0=gray, 1 normal, 2 bold, 2+ bold&wbright)
|
||||
const int level = u.level();
|
||||
if(level < 1) {
|
||||
option << "<150,150,150>";
|
||||
} else if(level == 1) {
|
||||
option << font::NORMAL_TEXT;
|
||||
} else if(level == 2) {
|
||||
option << font::BOLD_TEXT;
|
||||
} else if(level > 2 ) {
|
||||
option << font::BOLD_TEXT << "<255,255,255>";
|
||||
}
|
||||
option << level << COLUMN_SEPARATOR;
|
||||
|
||||
option << font::color2markup(u.xp_color()) << u.experience() << "/";
|
||||
if (u.can_advance())
|
||||
option << u.max_experience();
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user