summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorKess Vargavind <vargavind@gmail.com>2009-09-13 11:42:49 +0200
committerKess Vargavind <vargavind@gmail.com>2009-09-13 11:42:49 +0200
commitc5e7ba2e373466fcbe884c1579acd6ea5a8f5222 (patch)
treedaccf89d8e900bcbbd370d179a30c379a3dfaf56 /src/gui/popupmenu.cpp
parente964d4e6c3aae2773fb82e3273d148f8bb9a2c48 (diff)
downloadmana-c5e7ba2e373466fcbe884c1579acd6ea5a8f5222.tar.gz
mana-c5e7ba2e373466fcbe884c1579acd6ea5a8f5222.tar.bz2
mana-c5e7ba2e373466fcbe884c1579acd6ea5a8f5222.tar.xz
mana-c5e7ba2e373466fcbe884c1579acd6ea5a8f5222.zip
Add ellipsis (...) to some options requiring further input
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 6795f29d..31a8ddcb 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -82,7 +82,7 @@ void PopupMenu::showPopup(int x, int y, Being *being)
// Players can be traded with. Later also follow and
// add as buddy will be options in this menu.
mBrowserBox->addRow(strprintf("@@trade|%s@@",
- strprintf(_("Trade with %s"),
+ strprintf(_("Trade with %s..."),
name.c_str()).c_str()));
// TRANSLATORS: Attacking a player.
mBrowserBox->addRow(strprintf("@@attack|%s@@",
@@ -384,11 +384,14 @@ void PopupMenu::showPopup(int x, int y, Item *item, bool isInventory)
else
mBrowserBox->addRow(strprintf("@@use|%s@@", _("Use")));
- mBrowserBox->addRow(strprintf("@@drop|%s@@", _("Drop")));
+ if (item->getQuantity() > 1)
+ mBrowserBox->addRow(strprintf("@@drop|%s@@", _("Drop...")));
+ else
+ mBrowserBox->addRow(strprintf("@@drop|%s@@", _("Drop")));
if (Net::getInventoryHandler()->canSplit(item))
{
- mBrowserBox->addRow(strprintf("@@split|%s@@", _("Split")));
+ mBrowserBox->addRow(strprintf("@@split|%s@@", _("Split")));
}
if (player_node->getInStorage())