diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 18:54:04 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 18:57:04 +0100 |
commit | 4b70908a529317ce4e57448fe4f4a59e75416537 (patch) | |
tree | a041eeed198708bf5f558f595f716c7814961daf /src/gui/storagewindow.cpp | |
parent | 372f6493d07cbffb601ecb775ebecd51267725cf (diff) | |
download | Mana-4b70908a529317ce4e57448fe4f4a59e75416537.tar.gz Mana-4b70908a529317ce4e57448fe4f4a59e75416537.tar.bz2 Mana-4b70908a529317ce4e57448fe4f4a59e75416537.tar.xz Mana-4b70908a529317ce4e57448fe4f4a59e75416537.zip |
Fixed inventory window. Not resizable though.
Resizing of the inventory window may come back later. Also did some more
code cleanups, moving defines to enums, getting rid of eAthena-specific
offset handling (to be done in the network layer), etc.
Mantis-issue: 666
Diffstat (limited to 'src/gui/storagewindow.cpp')
-rw-r--r-- | src/gui/storagewindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/storagewindow.cpp b/src/gui/storagewindow.cpp index 479348aa..1289a4e7 100644 --- a/src/gui/storagewindow.cpp +++ b/src/gui/storagewindow.cpp @@ -67,7 +67,7 @@ StorageWindow::StorageWindow(Network *network, int invSize): mStoreButton = new Button(_("Store"), "store", this); mRetrieveButton = new Button(_("Retrieve"), "retrieve", this); - mItems = new ItemContainer(player_node->getStorage(), 10, 5, 1); + mItems = new ItemContainer(player_node->getStorage(), 10, 5); mItems->addSelectionListener(this); mInvenScroll = new ScrollArea(mItems); @@ -136,7 +136,7 @@ void StorageWindow::action(const gcn::ActionEvent &event) else { // Choose amount of items to trade - new ItemAmountWindow(AMOUNT_STORE_ADD, this, item); + new ItemAmountWindow(ItemAmountWindow::StoreAdd, this, item); } } else if (event.getId() == "retrieve") @@ -153,7 +153,7 @@ void StorageWindow::action(const gcn::ActionEvent &event) else { // Choose amount of items to trade - new ItemAmountWindow(AMOUNT_STORE_REMOVE, this, item); + new ItemAmountWindow(ItemAmountWindow::StoreRemove, this, item); } } } |