Show the sex of the unit in the bottom line of Dwarf Manipulator.

develop
Alexander Gavrilov 2012-11-04 18:03:02 +04:00
parent bd8c59462c
commit edf80ff748
1 changed files with 9 additions and 5 deletions

@ -1067,18 +1067,22 @@ void viewscreen_unitlaborsst::render()
if (cur != NULL) if (cur != NULL)
{ {
df::unit *unit = cur->unit; df::unit *unit = cur->unit;
int x = 1; int x = 1, y = 3 + num_rows + 2;
Screen::paintString(Screen::Pen(' ', 15, 0), x, 3 + num_rows + 2, cur->transname); Screen::Pen white_pen(' ', 15, 0);
Screen::paintString(white_pen, x, y, (cur->unit && cur->unit->sex) ? "\x0b" : "\x0c");
x += 2;
Screen::paintString(white_pen, x, y, cur->transname);
x += cur->transname.length(); x += cur->transname.length();
if (cur->transname.length()) if (cur->transname.length())
{ {
Screen::paintString(Screen::Pen(' ', 15, 0), x, 3 + num_rows + 2, ", "); Screen::paintString(white_pen, x, y, ", ");
x += 2; x += 2;
} }
Screen::paintString(Screen::Pen(' ', 15, 0), x, 3 + num_rows + 2, cur->profession); Screen::paintString(white_pen, x, y, cur->profession);
x += cur->profession.length(); x += cur->profession.length();
Screen::paintString(Screen::Pen(' ', 15, 0), x, 3 + num_rows + 2, ": "); Screen::paintString(white_pen, x, y, ": ");
x += 2; x += 2;
string str; string str;