]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/InventoryMenu.h
hooked Inventory::Sort into InventoryMenu
[l2e.git] / src / menu / InventoryMenu.h
index 20cbe17f54ef388786488f9d98941f9b46e3c01c..c1d458b18cdaf906370e7f24797567cd75069552 100644 (file)
@@ -38,12 +38,19 @@ private:
 
        virtual void OnResize(int width, int height);
 
+       void LoadInventory();
+
        void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
        void RenderInventory(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
 
 private:
        PartyMenu *parent;
-       graphics::Menu<int> menu;
+       enum Choice {
+               CHOICE_USE,
+               CHOICE_SORT,
+               CHOICE_DROP,
+       };
+       graphics::Menu<Choice> menu;
        graphics::Menu<const common::Item *> itemMenu;
 
 };