diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-05 14:38:14 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-05 14:38:14 +0000 |
commit | fed29d9ddc3b8372b9c3fe8bffe221a5a55e5ce9 (patch) | |
tree | 659096f4412e6ad9a0f47e70a620da327195e67a /src/client/inventory.h | |
parent | 312b9bcb81748032ff21e3d3f1d5fd36405fb713 (diff) |
updated inventory window, listview seletion sounds, modelview zoom factor
Diffstat (limited to 'src/client/inventory.h')
-rw-r--r-- | src/client/inventory.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/client/inventory.h b/src/client/inventory.h index f66ec56..00b3b51 100644 --- a/src/client/inventory.h +++ b/src/client/inventory.h @@ -9,7 +9,10 @@ #include "core/info.h" #include "core/inventory.h" +#include "ui/iconbutton.h" #include "ui/listview.h" +#include "ui/modelview.h" +#include "ui/scrollpane.h" #include "ui/plaintext.h" #include "ui/window.h" @@ -25,6 +28,8 @@ public: ~Inventory(); void toggle(); + + virtual void show(); protected: /// resize event handler virtual void resize(); @@ -41,15 +46,26 @@ protected: private: void update_inventory(); - void update_selection(); + void set_info(const core::Info *info, const int amount); bool verify() const; unsigned long menu_inventorytimestamp; unsigned long menu_infotimestamp; - ui::ListView *menu_listview; + + int menu_amount; + + ui::Text menu_infotext; + + const core::Info *menu_inforecord; + + ui::ModelView *menu_modelview; + ui::Label *menu_namelabel; + ui::ListView *menu_listview; ui::PlainText *menu_inventorytext; + ui::ScrollPane *menu_scrollpane; + ui::IconButton *menu_shipbutton; }; // class Inventory |