summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.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/inventorywindow.cpp
parente964d4e6c3aae2773fb82e3273d148f8bb9a2c48 (diff)
downloadmana-client-c5e7ba2e373466fcbe884c1579acd6ea5a8f5222.tar.gz
mana-client-c5e7ba2e373466fcbe884c1579acd6ea5a8f5222.tar.bz2
mana-client-c5e7ba2e373466fcbe884c1579acd6ea5a8f5222.tar.xz
mana-client-c5e7ba2e373466fcbe884c1579acd6ea5a8f5222.zip
Add ellipsis (...) to some options requiring further input
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp7
1 files changed, 6 insertions, 1 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);