Extended the unit tool's tooltip.

This commit is contained in:
fendrin 2013-05-29 09:57:19 +02:00
parent 553ab064a8
commit 73d9465783

View file

@ -57,7 +57,9 @@ void mouse_action_unit::move(editor_display& disp, const map_location& hex)
std::stringstream str;
str << N_("ID: ") << unit_it->id() << "\n"
<< N_("Name: ") << unit_it->name() << "\n"
<< N_("Type: ") << unit_it->type_name();
<< N_("Type: ") << unit_it->type_name() << "\n"
<< N_("Level: ") << unit_it->level() << "\n"
<< N_("Cost: ") << unit_it->cost();
tooltips::clear_tooltips();
tooltips::add_tooltip(rect, str.str());
}