diff options
author | Ira Rice <irarice@gmail.com> | 2008-11-01 02:28:05 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-11-01 02:28:05 +0000 |
commit | d433f836a690199a89781a1c7f694620e7a1ad27 (patch) | |
tree | 11efd05bc8c283ccab13a0088e6a39a45a044685 /src/gui/inventorywindow.h | |
parent | 95b4c6fb0698aa7af06035495aca008bcf342fc3 (diff) | |
download | mana-d433f836a690199a89781a1c7f694620e7a1ad27.tar.gz mana-d433f836a690199a89781a1c7f694620e7a1ad27.tar.bz2 mana-d433f836a690199a89781a1c7f694620e7a1ad27.tar.xz mana-d433f836a690199a89781a1c7f694620e7a1ad27.zip |
Modified inventory window code to take advantage of the text wrapping
code.
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r-- | src/gui/inventorywindow.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 4793069c..e6170dac 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -27,6 +27,7 @@ #include <guichan/actionlistener.hpp> #include <guichan/selectionlistener.hpp> +#include "textbox.h" #include "window.h" #include "../guichanfwd.h" @@ -71,6 +72,11 @@ class InventoryWindow : public Window, gcn::ActionListener, void mouseClicked(gcn::MouseEvent &event); /** + * Updates window drawing. + */ + void draw(); + + /** * Called whenever the widget changes size. */ void widgetResized(const gcn::Event &event); @@ -80,12 +86,18 @@ class InventoryWindow : public Window, gcn::ActionListener, ItemContainer *mItems; + std::string mItemName; + std::string mItemDescription; + std::string mItemEffect; + std::string mWeight; + std::string mTotalWeight; + std::string mMaxWeight; gcn::Button *mUseButton, *mDropButton; gcn::ScrollArea *mInvenScroll; - gcn::Label *mItemNameLabel; - gcn::Label *mItemDescriptionLabel; - gcn::Label *mItemEffectLabel; - gcn::Label *mWeightLabel; + TextBox *mItemNameLabel; + TextBox *mItemDescriptionLabel; + TextBox *mItemEffectLabel; + TextBox *mWeightLabel; }; extern InventoryWindow *inventoryWindow; |