Editor: Added labels to the unit tooltip.

This commit is contained in:
fendrin 2013-05-16 05:32:47 +02:00
parent 54b0078086
commit 08a22a4ddb

View file

@ -20,6 +20,7 @@
#include "../../editor_display.hpp"
#include "gui/dialogs/unit_create.hpp"
#include "tooltips.hpp"
#include "gettext.hpp"
#include "map_location.hpp"
@ -54,7 +55,9 @@ void mouse_action_unit::move(editor_display& disp, const map_location& hex)
rect.h = 80;
rect.w = 80;
std::stringstream str;
str << unit_it->id() << "\n" << unit_it->name() << "\n" << unit_it->type_name();
str << N_("ID: ") << unit_it->id() << "\n"
<< N_("Name: ") << unit_it->name() << "\n"
<< N_("Type: ") << unit_it->type_name();
tooltips::clear_tooltips();
tooltips::add_tooltip(rect, str.str());
}