diff options
author | Kess Vargavind <vargavind@gmail.com> | 2009-09-13 11:42:49 +0200 |
---|---|---|
committer | Kess Vargavind <vargavind@gmail.com> | 2009-09-13 11:42:49 +0200 |
commit | c5e7ba2e373466fcbe884c1579acd6ea5a8f5222 (patch) | |
tree | daccf89d8e900bcbbd370d179a30c379a3dfaf56 /src/gui/inventorywindow.cpp | |
parent | e964d4e6c3aae2773fb82e3273d148f8bb9a2c48 (diff) | |
download | mana-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.cpp | 7 |
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); |