diff options
author | Blue Sans Douze <bluesansdouze@gmail.com> | 2011-03-26 13:44:08 +0100 |
---|---|---|
committer | Blue Sans Douze <bluesansdouze@gmail.com> | 2011-03-26 16:59:35 +0100 |
commit | c176ecada07af6235d6b65b839018e4e0bf07298 (patch) | |
tree | d49fdaf009c52e163b783c22b2105cf794ece068 /src/gui/inventorywindow.h | |
parent | e35b3bdd0a74464e4b4d3b931ca416f0c7864ba6 (diff) | |
download | mana-c176ecada07af6235d6b65b839018e4e0bf07298.tar.gz mana-c176ecada07af6235d6b65b839018e4e0bf07298.tar.bz2 mana-c176ecada07af6235d6b65b839018e4e0bf07298.tar.xz mana-c176ecada07af6235d6b65b839018e4e0bf07298.zip |
Add search bar to storage and inventory windows
Reviewed-by: thorbjorn
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r-- | src/gui/inventorywindow.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 0ddd13f7..2ea59001 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -26,6 +26,7 @@ #include "listener.h" #include "gui/widgets/window.h" +#include "gui/widgets/textfield.h" #include "net/inventoryhandler.h" @@ -107,6 +108,10 @@ class InventoryWindow : public Window, */ void updateButtons(); + bool isInputFocused() const; + + static bool isAnyInputFocused(); + void slotsChanged(Inventory* inventory); bool isMainInventory() { return mInventory->isMainInventory(); } @@ -126,12 +131,14 @@ class InventoryWindow : public Window, Inventory *mInventory; ItemContainer *mItems; + TextField *mFilterText; + std::string mWeight, mSlots; gcn::Button *mUseButton, *mEquipButton, *mDropButton, *mSplitButton, *mOutfitButton, *mStoreButton, *mRetrieveButton; - gcn::Label *mWeightLabel, *mSlotsLabel; + gcn::Label *mWeightLabel, *mSlotsLabel, *mFilterLabel; ProgressBar *mWeightBar, *mSlotsBar; |