summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-27 15:17:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-27 15:17:47 +0300
commitbc27e1bc29ab07a8560db30355ca3aeb3cfb724f (patch)
treeae7db53e1a902a65536d77e694ef99ae361a02e6 /src/gui/windows
parentae4e8654915376857008dfc531de372e588ee924 (diff)
downloadManaVerse-bc27e1bc29ab07a8560db30355ca3aeb3cfb724f.tar.gz
ManaVerse-bc27e1bc29ab07a8560db30355ca3aeb3cfb724f.tar.bz2
ManaVerse-bc27e1bc29ab07a8560db30355ca3aeb3cfb724f.tar.xz
ManaVerse-bc27e1bc29ab07a8560db30355ca3aeb3cfb724f.zip
same outfits after each change into in memory configuration xml.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/outfitwindow.cpp5
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();
}