summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-24 15:21:11 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-24 15:51:39 -0700
commitd039422e70e47a762ef61de619e9e98780b12664 (patch)
treed0cb68147e6fe37a8c85e4907766976bf79547b4 /src/gui/inventorywindow.cpp
parent84cf9bcc38028696d02c03cd523b7997906b9f01 (diff)
downloadMana-d039422e70e47a762ef61de619e9e98780b12664.tar.gz
Mana-d039422e70e47a762ef61de619e9e98780b12664.tar.bz2
Mana-d039422e70e47a762ef61de619e9e98780b12664.tar.xz
Mana-d039422e70e47a762ef61de619e9e98780b12664.zip
Move StorageWindow to instancing intead of global
Also make storage under eAthena more flexible. Reviewed-by: Dennis Friis
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 9c5f138e..ed008e63 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -220,19 +220,20 @@ void InventoryWindow::mouseClicked(gcn::MouseEvent &event)
*/
const int mx = event.getX() + getX();
const int my = event.getY() + getY();
- viewport->showPopup(mx, my, item);
+ viewport->showPopup(this, mx, my, item);
}
if (event.getButton() == gcn::MouseEvent::LEFT)
{
- if (storageWindow && keyboard.isKeyActive(keyboard.KEY_EMOTE))
+ if (StorageWindow::isActive() &&
+ keyboard.isKeyActive(keyboard.KEY_EMOTE))
{
Item *item = mItems->getSelectedItem();
if(!item)
return;
- storageWindow->addStore(item, item->getQuantity());
+ StorageWindow::addStore(item, item->getQuantity());
}
}
}