summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-04 14:43:01 -0700
committerIra Rice <irarice@gmail.com>2009-02-04 14:43:01 -0700
commit35c4cb970f14989445828aefa4cf17f3260f9281 (patch)
treedfb79ca9626955cf0411b5053ef7fff97c205b3c /src/gui/equipmentwindow.h
parent15d15965978d5ce73252e840c3da8ac15b48d858 (diff)
downloadmana-35c4cb970f14989445828aefa4cf17f3260f9281.tar.gz
mana-35c4cb970f14989445828aefa4cf17f3260f9281.tar.bz2
mana-35c4cb970f14989445828aefa4cf17f3260f9281.tar.xz
mana-35c4cb970f14989445828aefa4cf17f3260f9281.zip
Added a right click popup menu, and item popups to the equipment window.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r--src/gui/equipmentwindow.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h
index 8e9b22eb..b64c768b 100644
--- a/src/gui/equipmentwindow.h
+++ b/src/gui/equipmentwindow.h
@@ -28,6 +28,8 @@
class Equipment;
class Inventory;
+class Item;
+class ItemPopup;
class PlayerBox;
/**
@@ -66,6 +68,8 @@ class EquipmentWindow : public Window, public gcn::ActionListener
void mousePressed(gcn::MouseEvent& mouseEvent);
+ Item* getItem(const int &x, const int &y);
+
enum {
// Equipment rules:
EQUIP_LEGS_SLOT = 0,
@@ -84,11 +88,16 @@ class EquipmentWindow : public Window, public gcn::ActionListener
private:
+ void mouseExited(gcn::MouseEvent &event);
+ void mouseMoved(gcn::MouseEvent &event);
+
Equipment *mEquipment;
Inventory *mInventory;
gcn::Button *mUnequip; /**< Button for unequipping. */
EquipBox mEquipBox[EQUIP_VECTOREND]; /**< Equipment Boxes. */
+ ItemPopup *mItemPopup;
+
PlayerBox *mPlayerBox;
int mSelected; /**< Index of selected item. */