summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r--src/gui/equipmentwindow.h46
1 files changed, 35 insertions, 11 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h
index a76fa689..a0fa6acb 100644
--- a/src/gui/equipmentwindow.h
+++ b/src/gui/equipmentwindow.h
@@ -59,16 +59,7 @@ class EquipmentWindow : public Window, public gcn::ActionListener
void mousePressed(gcn::MouseEvent& mouseEvent);
- private:
- void mouseExited(gcn::MouseEvent &event);
- void mouseMoved(gcn::MouseEvent &event);
-
- Item *getItem(int x, int y) const;
-
- void setSelected(int index);
-
- Equipment *mEquipment;
-
+ protected:
/**
* Equipment box.
*/
@@ -80,12 +71,45 @@ class EquipmentWindow : public Window, public gcn::ActionListener
EquipBox *mEquipBox; /**< Equipment Boxes. */
+ int mSelected; /**< Index of selected item. */
+ Equipment *mEquipment;
+
+ private:
+ void mouseExited(gcn::MouseEvent &event);
+ void mouseMoved(gcn::MouseEvent &event);
+
+ Item *getItem(int x, int y) const;
+
+ void setSelected(int index);
+
ItemPopup *mItemPopup;
gcn::Button *mUnequip;
+};
+
+namespace TmwAthena {
+
+class TaEquipmentWindow : public EquipmentWindow
+{
+ public:
+ /**
+ * Constructor.
+ */
+ TaEquipmentWindow(Equipment *equipment);
+
+ /**
+ * Destructor.
+ */
+ ~TaEquipmentWindow();
+
+ /**
+ * Draws the equipment window using TmwAthena routine.
+ */
+ void draw(gcn::Graphics *graphics);
- int mSelected; /**< Index of selected item. */
};
+}; // namespace TmwAthena
+
extern EquipmentWindow *equipmentWindow;
#endif