summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-20 23:00:42 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-20 23:05:09 +0300
commit52f78717dae3cb02eb1539841dd2a6bd351f74c1 (patch)
tree78b6bb12fcbb5e1624a76531ef43a25d263b3c79 /src/client.cpp
parente50c6b9fbcd7713b990012f17665efeb2a284dd2 (diff)
downloadmv-52f78717dae3cb02eb1539841dd2a6bd351f74c1.tar.gz
mv-52f78717dae3cb02eb1539841dd2a6bd351f74c1.tar.bz2
mv-52f78717dae3cb02eb1539841dd2a6bd351f74c1.tar.xz
mv-52f78717dae3cb02eb1539841dd2a6bd351f74c1.zip
add support for GIMP palettes for dye colors.
Palette file must be named palette.gpl and contain colors with correct names. To use it in dye string can be used character @. Example: <color id="2" name="black" value="@Untitled7,Untitled8,Untitled6"/> in all dye string it not tested.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 265054e18..45d8ff2e3 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -82,6 +82,7 @@
#include "resources/emotedb.h"
#include "resources/imagehelper.h"
#include "resources/openglimagehelper.h"
+#include "resources/palettedb.h"
#include "resources/sdlimagehelper.h"
#include "resources/sounddb.h"
#include "resources/itemdb.h"
@@ -756,6 +757,7 @@ void Client::gameClear()
ItemDB::unload();
MonsterDB::unload();
NPCDB::unload();
+ PaletteDB::unload();
PETDB::unload();
StatusEffect::unload();
@@ -1382,6 +1384,7 @@ int Client::gameExec()
// Load XML databases
CharDB::load();
+ PaletteDB::load();
ColorDB::load();
SoundDB::load();
MapDB::load();