summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/gui/inventorywindow.cpp7
-rw-r--r--src/gui/popupmenu.cpp9
2 files changed, 12 insertions, 4 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 50465a50..e593bc1b 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -79,7 +79,7 @@ InventoryWindow::InventoryWindow(int invSize):
}
mUseButton = new Button(longestUseString, "use", this);
- mDropButton = new Button(_("Drop"), "drop", this);
+ mDropButton = new Button(_("Drop..."), "drop", this);
mSplitButton = new Button(_("Split"), "split", this);
mOutfitButton = new Button(_("Outfits"), "outfit", this);
mItems = new ItemContainer(player_node->getInventory());
@@ -289,6 +289,11 @@ void InventoryWindow::updateButtons()
mUseButton->setCaption(_("Use"));
}
+ if (selectedItem->getQuantity() > 1)
+ mDropButton->setCaption(_("Drop..."));
+ else
+ mDropButton->setCaption(_("Drop"));
+
if (Net::getInventoryHandler()->canSplit(selectedItem))
{
mSplitButton->setEnabled(true);
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())