Extended the unit tool's tooltip.
This commit is contained in:
parent
553ab064a8
commit
73d9465783
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue