diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-20 23:00:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-20 23:05:09 +0300 |
commit | 52f78717dae3cb02eb1539841dd2a6bd351f74c1 (patch) | |
tree | 78b6bb12fcbb5e1624a76531ef43a25d263b3c79 /src/resources/dye.h | |
parent | e50c6b9fbcd7713b990012f17665efeb2a284dd2 (diff) | |
download | plus-52f78717dae3cb02eb1539841dd2a6bd351f74c1.tar.gz plus-52f78717dae3cb02eb1539841dd2a6bd351f74c1.tar.bz2 plus-52f78717dae3cb02eb1539841dd2a6bd351f74c1.tar.xz plus-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/resources/dye.h')
-rw-r--r-- | src/resources/dye.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/resources/dye.h b/src/resources/dye.h index 442a514d7..efcf95420 100644 --- a/src/resources/dye.h +++ b/src/resources/dye.h @@ -23,11 +23,11 @@ #ifndef DYE_H #define DYE_H +#include "resources/dyecolor.h" + #include <string> #include <vector> -#include <SDL_stdinc.h> - #include "localconsts.h" const int dyePalateSize = 9; @@ -83,10 +83,7 @@ class DyePalette final static int hexDecode(const signed char c) A_WARN_UNUSED; private: - struct Color - { unsigned char value[4]; }; - - std::vector<Color> mColors; + std::vector<DyeColor> mColors; }; /** |