From 66f684799ad742d6214a6e3e9107219bef48b3f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Dec 2012 22:30:00 +0300 Subject: Show in skill popup also description. --- src/gui/skilldialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index a7f60244d..992877671 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -186,7 +186,7 @@ class SkillListBox final : public ListBox return; mPopup->show(viewport->getMouseX(), viewport->getMouseY(), - skill->data->dispName); + skill->data->dispName, skill->data->description); } void mouseExited(gcn::MouseEvent &event A_UNUSED) @@ -408,7 +408,7 @@ void SkillDialog::loadSkills() skill->id = 1; skill->data->name = _("basic"); skill->data->description = ""; - skill->data->dispName = _("Skill: basic, Id: 1"); + skill->data->dispName = _("basic, 1"); skill->data->shortName = "bas"; skill->data->setIcon(""); skill->modifiable = true; @@ -480,7 +480,7 @@ void SkillDialog::loadSkills() data->name = name; data->setIcon(icon); - data->dispName = strprintf(_("Skill: %s, Id: %d"), + data->dispName = strprintf("%s, %d", name.c_str(), skill->id); data->shortName = XML::langProperty(node, "shortName", name.substr(0, 3)); -- cgit v1.2.3-70-g09d2