Editor: Added labels to the unit tooltip.
This commit is contained in:
parent
54b0078086
commit
08a22a4ddb
1 changed files with 4 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue