diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-18 02:43:38 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-18 02:43:38 +0200 |
commit | e86f83ed987461adabcbc02508107366b8c65558 (patch) | |
tree | d78016f0512788a21cc321d6d1f6d7947105fbae /src/gui/equipmentwindow.h | |
parent | f8551d9ef4a745327bccb9e4cb54a22f6a28cf80 (diff) | |
download | mana-e86f83ed987461adabcbc02508107366b8c65558.tar.gz mana-e86f83ed987461adabcbc02508107366b8c65558.tar.bz2 mana-e86f83ed987461adabcbc02508107366b8c65558.tar.xz mana-e86f83ed987461adabcbc02508107366b8c65558.zip |
Made the equipment window not use server specific code again.
I also made the number of slots displayed
taken from the equip.xml file for manaserv.
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r-- | src/gui/equipmentwindow.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h index 5ba15ae3..0001dd4e 100644 --- a/src/gui/equipmentwindow.h +++ b/src/gui/equipmentwindow.h @@ -53,6 +53,11 @@ class EquipmentWindow : public Window, public gcn::ActionListener void mousePressed(gcn::MouseEvent& mouseEvent); + /** + * Loads the correct amount of displayed equip boxes. + */ + void loadEquipBoxes(); + protected: /** * Equipment box. @@ -67,6 +72,7 @@ class EquipmentWindow : public Window, public gcn::ActionListener int mSelected; /**< Index of selected item. */ Equipment *mEquipment; + int mBoxesNumber; /**< Number of equipment boxes to display */ private: void mouseExited(gcn::MouseEvent &event); @@ -80,22 +86,6 @@ class EquipmentWindow : public Window, public gcn::ActionListener gcn::Button *mUnequip; }; -namespace TmwAthena { - -class TaEquipmentWindow : public EquipmentWindow -{ - public: - TaEquipmentWindow(Equipment *equipment); - ~TaEquipmentWindow(); - - /** - * Draws the equipment window using TmwAthena routine. - */ - void draw(gcn::Graphics *graphics); -}; - -} // namespace TmwAthena - extern EquipmentWindow *equipmentWindow; #endif // EQUIPMENTWINDOW_H |