diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-06 12:10:19 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-06 12:10:19 -0600 |
commit | ef48d3556d4b1dc416c8cf5198c0e0af0f768e9e (patch) | |
tree | d04011e9686899f4a0245393d5e41306620bd5a6 /src/gui | |
parent | 429e82f91487d48ecb5a1742ec6fb6987a2bc9bd (diff) | |
download | mana-ef48d3556d4b1dc416c8cf5198c0e0af0f768e9e.tar.gz mana-ef48d3556d4b1dc416c8cf5198c0e0af0f768e9e.tar.bz2 mana-ef48d3556d4b1dc416c8cf5198c0e0af0f768e9e.tar.xz mana-ef48d3556d4b1dc416c8cf5198c0e0af0f768e9e.zip |
Don't show the split button for eAthena
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/inventorywindow.cpp | 5 | ||||
-rw-r--r-- | src/gui/inventorywindow.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 8a18cd0d..372e94d3 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -253,6 +253,11 @@ void InventoryWindow::valueChanged(const gcn::SelectionEvent &event) } } +void InventoryWindow::setSplitAllowed(bool allowed) +{ + mSplitButton->setVisible(allowed); +} + void InventoryWindow::updateButtons() { const Item *selectedItem = mItems->getSelectedItem(); diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 1c8db89c..6e34666d 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -91,6 +91,11 @@ class InventoryWindow : public Window, */ void valueChanged(const gcn::SelectionEvent &event); + /** + * Sets whether the split button should be shown. + */ + void setSplitAllowed(bool allowed); + private: void updateButtons(); /**< Updates button states. */ |