summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-10 16:13:40 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-10 16:13:40 +0200
commitcab1abe41887d8b3ab426fbb56716ce99a3a1807 (patch)
treea9c3a2b08dbcbb7ca91879eb18b550e7b3b7daa2 /src/gui/equipmentwindow.h
parent4a6cd2bb9168348a7f9521678bd71b72de755405 (diff)
downloadmana-client-cab1abe41887d8b3ab426fbb56716ce99a3a1807.tar.gz
mana-client-cab1abe41887d8b3ab426fbb56716ce99a3a1807.tar.bz2
mana-client-cab1abe41887d8b3ab426fbb56716ce99a3a1807.tar.xz
mana-client-cab1abe41887d8b3ab426fbb56716ce99a3a1807.zip
Make sure Unequip button is disabled when appropriate
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r--src/gui/equipmentwindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h
index f6ba19f8..8bc350a4 100644
--- a/src/gui/equipmentwindow.h
+++ b/src/gui/equipmentwindow.h
@@ -24,6 +24,8 @@
#include "gui/widgets/window.h"
+#include "guichanfwd.h"
+
#include <guichan/actionlistener.hpp>
class Equipment;
@@ -102,6 +104,8 @@ class EquipmentWindow : public Window, public gcn::ActionListener
Item *getItem(int x, int y) const;
+ void setSelected(int index);
+
Equipment *mEquipment;
#ifdef EATHENA_SUPPORT
Inventory *mInventory;
@@ -119,6 +123,7 @@ class EquipmentWindow : public Window, public gcn::ActionListener
EquipBox mEquipBox[EQUIP_VECTOREND]; /**< Equipment Boxes. */
ItemPopup *mItemPopup;
+ gcn::Button *mUnequip;
int mSelected; /**< Index of selected item. */
};