diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-27 15:17:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-27 15:17:47 +0300 |
commit | bc27e1bc29ab07a8560db30355ca3aeb3cfb724f (patch) | |
tree | ae7db53e1a902a65536d77e694ef99ae361a02e6 | |
parent | ae4e8654915376857008dfc531de372e588ee924 (diff) | |
download | manaplus-bc27e1bc29ab07a8560db30355ca3aeb3cfb724f.tar.gz manaplus-bc27e1bc29ab07a8560db30355ca3aeb3cfb724f.tar.bz2 manaplus-bc27e1bc29ab07a8560db30355ca3aeb3cfb724f.tar.xz manaplus-bc27e1bc29ab07a8560db30355ca3aeb3cfb724f.zip |
same outfits after each change into in memory configuration xml.
-rw-r--r-- | src/gui/windows/outfitwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp index 306576475..704f3ce60 100644 --- a/src/gui/windows/outfitwindow.cpp +++ b/src/gui/windows/outfitwindow.cpp @@ -307,6 +307,7 @@ void OutfitWindow::copyOutfit(const int src, const int dst) for (unsigned int i = 0; i < OUTFIT_ITEM_COUNT; i++) mItems[dst][i] = mItems[src][i]; + save(); } void OutfitWindow::draw(gcn::Graphics *graphics) @@ -440,6 +441,7 @@ void OutfitWindow::mousePressed(gcn::MouseEvent &event) mItems[mCurrentOutfit][index] = dragDrop.getSelected(); mItemColors[mCurrentOutfit][index] = dragDrop.getSelectedColor(); dragDrop.deselect(); + save(); } } @@ -472,6 +474,7 @@ void OutfitWindow::mouseReleased(gcn::MouseEvent &event) mItemColors[mCurrentOutfit][index] = dragDrop.getItemColor(); dragDrop.clear(); dragDrop.deselect(); + save(); } } if (mItemClicked) @@ -629,6 +632,7 @@ void OutfitWindow::copyFromEquiped(const int dst) break; } } + save(); } void OutfitWindow::wearAwayOutfit() @@ -654,4 +658,5 @@ void OutfitWindow::clearCurrentOutfit() mItems[mCurrentOutfit][f] = -1; mItemColors[mCurrentOutfit][f] = 1; } + save(); } |