From bc27e1bc29ab07a8560db30355ca3aeb3cfb724f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Oct 2013 15:17:47 +0300 Subject: same outfits after each change into in memory configuration xml. --- src/gui/windows/outfitwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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(); } -- cgit v1.2.3-70-g09d2