summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-16 22:30:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-16 22:33:53 +0300
commit66f684799ad742d6214a6e3e9107219bef48b3f0 (patch)
treee1bea633a5aac0666525d443e036b9f03e76c727 /src/gui/skilldialog.cpp
parent12a4de59d148ae3b912003dac715fd82ae6f0903 (diff)
downloadmanaplus-66f684799ad742d6214a6e3e9107219bef48b3f0.tar.gz
manaplus-66f684799ad742d6214a6e3e9107219bef48b3f0.tar.bz2
manaplus-66f684799ad742d6214a6e3e9107219bef48b3f0.tar.xz
manaplus-66f684799ad742d6214a6e3e9107219bef48b3f0.zip
Show in skill popup also description.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp6
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));