summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-18 01:50:40 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-18 01:50:40 +0300
commitd4e2ffacb744f76c84c94cb16b2cc0e0e49153f7 (patch)
tree54eed938bbe068b08d5099b47546ff4b79d11e28 /src/gui/equipmentwindow.h
parent4a0c7b37814792f774ba288e28fa63cf12b3244f (diff)
downloadmanaplus-d4e2ffacb744f76c84c94cb16b2cc0e0e49153f7.tar.gz
manaplus-d4e2ffacb744f76c84c94cb16b2cc0e0e49153f7.tar.bz2
manaplus-d4e2ffacb744f76c84c94cb16b2cc0e0e49153f7.tar.xz
manaplus-d4e2ffacb744f76c84c94cb16b2cc0e0e49153f7.zip
Create boxes in equipment window on the fly.
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r--src/gui/equipmentwindow.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h
index 84353dfd2..91ee44253 100644
--- a/src/gui/equipmentwindow.h
+++ b/src/gui/equipmentwindow.h
@@ -81,24 +81,18 @@ class EquipmentWindow : public Window, public gcn::ActionListener
private:
void mouseExited(gcn::MouseEvent &event);
+
void mouseMoved(gcn::MouseEvent &event);
Item *getItem(int x, int y) const;
void setSelected(int index);
- Equipment *mEquipment;
+ void fillBoxes();
- /**
- * Equipment box.
- */
- struct EquipBox
- {
- int posX;
- int posY;
- };
+ void addBox(int x, int y);
- EquipBox mEquipBox[Equipment::EQUIP_VECTOREND]; /**<Equipment Boxes. */
+ Equipment *mEquipment;
ItemPopup *mItemPopup;
PlayerBox *mPlayerBox;
@@ -107,6 +101,7 @@ class EquipmentWindow : public Window, public gcn::ActionListener
int mSelected; /**< Index of selected item. */
bool mForing;
Being *mBeing;
+ std::vector<std::pair<int, int>*> mBoxes;
};
extern EquipmentWindow *equipmentWindow;