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/itemcontainer.h | |
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/itemcontainer.h')
-rw-r--r-- | src/gui/itemcontainer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/itemcontainer.h b/src/gui/itemcontainer.h index a28ca392..b2857563 100644 --- a/src/gui/itemcontainer.h +++ b/src/gui/itemcontainer.h @@ -69,9 +69,12 @@ class ItemContainer : public gcn::Widget, void keyPressed(gcn::KeyEvent &event); void keyReleased(gcn::KeyEvent &event); + void mousePressed(gcn::MouseEvent &event); void mouseDragged(gcn::MouseEvent &event); void mouseReleased(gcn::MouseEvent &event); + void mouseMoved(gcn::MouseEvent &event); + void mouseExited(gcn::MouseEvent &event); /** * Returns the selected item. @@ -125,9 +128,6 @@ class ItemContainer : public gcn::Widget, */ void keyAction(); - void mouseExited(gcn::MouseEvent &event); - void mouseMoved(gcn::MouseEvent &event); - /** * Moves the highlight in the direction specified. * @@ -158,11 +158,11 @@ class ItemContainer : public gcn::Widget, /** * Gets the slot index based on the cursor position. * - * @param posX The X Coordinate position. - * @param posY The Y Coordinate position. + * @param x The X coordinate position. + * @param y The Y coordinate position. * @return The slot index on success, -1 on failure. */ - int getSlotIndex(int posX, int posY) const; + int getSlotIndex(int x, int y) const; Inventory *mInventory; int mGridColumns, mGridRows; |