diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-16 22:30:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-16 22:33:53 +0300 |
commit | 66f684799ad742d6214a6e3e9107219bef48b3f0 (patch) | |
tree | e1bea633a5aac0666525d443e036b9f03e76c727 | |
parent | 12a4de59d148ae3b912003dac715fd82ae6f0903 (diff) | |
download | manaverse-66f684799ad742d6214a6e3e9107219bef48b3f0.tar.gz manaverse-66f684799ad742d6214a6e3e9107219bef48b3f0.tar.bz2 manaverse-66f684799ad742d6214a6e3e9107219bef48b3f0.tar.xz manaverse-66f684799ad742d6214a6e3e9107219bef48b3f0.zip |
Show in skill popup also description.
-rw-r--r-- | src/gui/skilldialog.cpp | 6 |
1 files 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)); |