summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-14 20:06:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-14 20:06:21 +0300
commit6a763f58ad8ab52b9b444b096a8f298d440e0a65 (patch)
treea97c3e1dd41ce629e1a7e2fcc5d83b4515806bdf /src/gui/popups/popupmenu.cpp
parent461eb3a21a6872cf9a639ecbd6f9f21c8ff751b5 (diff)
downloadmanaplus-6a763f58ad8ab52b9b444b096a8f298d440e0a65.tar.gz
manaplus-6a763f58ad8ab52b9b444b096a8f298d440e0a65.tar.bz2
manaplus-6a763f58ad8ab52b9b444b096a8f298d440e0a65.tar.xz
manaplus-6a763f58ad8ab52b9b444b096a8f298d440e0a65.zip
Show header in skill level selection menu.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index c3bd94087..b7a7a282e 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -2414,15 +2414,13 @@ void PopupMenu::showSkillLevelPopup(const SkillInfo *const info)
mItemId = info->id;
// using mItemIndex as skill level
mItemIndex = info->level;
- showSkillLevelMenu();
-}
-void PopupMenu::showSkillLevelMenu()
-{
for (int f = 0; f < maxCards; f ++)
mItemCards[f] = 0;
mBrowserBox->clearRows();
- // mItemIndex as skill level
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: skill level header
+ mBrowserBox->addRow(_("Select skill level"));
for (int f = 1; f <= mItemIndex; f ++)
{
mBrowserBox->addRow(strprintf("/selectskilllevel %d %d", mItemId, f),