diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-28 01:01:10 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-28 01:02:44 +0100 |
commit | b2df8047e6c2d1215ef7debf1a42e02188725471 (patch) | |
tree | 0d826f7d0fcd911ddcfd53eaf96afe6e5d585e5f /src/gui/inventorywindow.cpp | |
parent | a5ed5126e8498d53a5f843d591ff183951418d1f (diff) | |
download | mana-b2df8047e6c2d1215ef7debf1a42e02188725471.tar.gz mana-b2df8047e6c2d1215ef7debf1a42e02188725471.tar.bz2 mana-b2df8047e6c2d1215ef7debf1a42e02188725471.tar.xz mana-b2df8047e6c2d1215ef7debf1a42e02188725471.zip |
Make the full inventory accessible again
Was broken due to tmwserv having only 50 as opposed to 100 places in the
inventory at the moment.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 612c978a..51c1372c 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -57,7 +57,7 @@ InventoryWindow::InventoryWindow(int invSize): setResizable(false); setCloseButton(true); - setDefaultSize(375, 307, ImageRect::CENTER); + setDefaultSize(387, 307, ImageRect::CENTER); addKeyListener(this); std::string longestUseString = getFont()->getWidth(_("Equip")) > @@ -74,14 +74,13 @@ InventoryWindow::InventoryWindow(int invSize): mDropButton = new Button(_("Drop"), "drop", this); #ifdef TMWSERV_SUPPORT mSplitButton = new Button(_("Split"), "split", this); -#endif - mItems = new ItemContainer(player_node->getInventory(), 10, 5); +#else + mItems = new ItemContainer(player_node->getInventory(), 10, 10); +#endif mItems->addSelectionListener(this); - // The window is supposed to be exactly large enough for now mInvenScroll = new ScrollArea(mItems); - mInvenScroll->setVerticalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); mInvenScroll->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); mTotalWeight = -1; |