diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-12-26 23:44:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-12-26 23:44:13 +0300 |
commit | c322175764a915968f136d86fb038e2ace057d45 (patch) | |
tree | d949f3c2e662e61ff5f2eade1f1d94f20224b5ef /src/gui/outfitwindow.cpp | |
parent | cf542c3602eae931066d8b6e46d90109c8b2c13e (diff) | |
download | plus-c322175764a915968f136d86fb038e2ace057d45.tar.gz plus-c322175764a915968f136d86fb038e2ace057d45.tar.bz2 plus-c322175764a915968f136d86fb038e2ace057d45.tar.xz plus-c322175764a915968f136d86fb038e2ace057d45.zip |
Add clear current outfit option to outfits context menu.
Removed load old outfits option.
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r-- | src/gui/outfitwindow.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp index c33c753bc..6e68fad17 100644 --- a/src/gui/outfitwindow.cpp +++ b/src/gui/outfitwindow.cpp @@ -985,3 +985,12 @@ void OutfitWindow::setItemSelected(Item *item) mItemColorSelected = 1; } } + +void OutfitWindow::clearCurrentOutfit() +{ + for (unsigned f = 0; f < OUTFIT_ITEM_COUNT; f++) + { + mItems[mCurrentOutfit][f] = -1; + mItemColors[mCurrentOutfit][f] = 1; + } +} |