From 805edb864a489b8af91db18c7b53bd80b60b0fe0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 29 Sep 2009 21:09:13 +0300 Subject: Outfits update Increased outfits count to 15 Changed unequip outfits feature Added copy outfits feature --- src/gui/outfitwindow.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/gui/outfitwindow.h') diff --git a/src/gui/outfitwindow.h b/src/gui/outfitwindow.h index 3e70815c..5132abee 100644 --- a/src/gui/outfitwindow.h +++ b/src/gui/outfitwindow.h @@ -26,6 +26,9 @@ #include +#define OUTFITS_COUNT 15 +#define OUTFIT_ITEM_COUNT 9 + class Button; class CheckBox; class Item; @@ -63,6 +66,9 @@ class OutfitWindow : public Window, gcn::ActionListener { return mItemSelected > -1; } void wearOutfit(int outfit); + void copyOutfit(int outfit); + + void unequipNotInOutfit(int outfit); private: Button *mPreviousButton; @@ -81,7 +87,8 @@ class OutfitWindow : public Window, gcn::ActionListener void save(); - int mItems[10][9]; + int mItems[OUTFITS_COUNT][OUTFIT_ITEM_COUNT]; + bool mItemsUnequip[OUTFITS_COUNT]; int mItemSelected; int mCurrentOutfit; -- cgit v1.2.3-70-g09d2