summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorLloyd Bryant <lloyd_bryant@netzero.net>2008-09-12 17:12:24 +0000
committerLloyd Bryant <lloyd_bryant@netzero.net>2008-09-12 17:12:24 +0000
commit8551f4a5c5e1feddc4f2868488bdefeae85aa26d (patch)
tree39b91c9d7124c1c03e954ceb9b3434adcaf022ce /src/gui/inventorywindow.cpp
parenta9595f435664df56948ae70e954cf72143ddcfa1 (diff)
downloadmana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.gz
mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.bz2
mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.xz
mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.zip
Fixed /where, added /cast for heal and gather, some changes to inventory to support storage
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index b53fa43b..8866515f 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -57,7 +57,7 @@ InventoryWindow::InventoryWindow():
mUseButton = new Button("Use", "use", this);
mDropButton = new Button("Drop", "drop", this);
- mItems = new ItemContainer(player_node->getInventory());
+ mItems = new ItemContainer(player_node->getInventory(), 2);
mItems->addSelectionListener(this);
mInvenScroll = new ScrollArea(mItems);
@@ -94,8 +94,8 @@ void InventoryWindow::logic()
// Update weight information
mWeightLabel->setCaption(
- "Total Weight: " + toString(player_node->mTotalWeight) + " - "
- "Maximum Weight: " + toString(player_node->mMaxWeight));
+ "Total Weight: " + toString(player_node->mTotalWeight) + " - " +
+ "Maximum Weight: " + toString(player_node->mMaxWeight));
}
void InventoryWindow::action(const gcn::ActionEvent &event)