From 52f78717dae3cb02eb1539841dd2a6bd351f74c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Apr 2013 23:00:42 +0300 Subject: 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: in all dye string it not tested. --- src/resources/palettedb.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/resources/palettedb.h (limited to 'src/resources/palettedb.h') diff --git a/src/resources/palettedb.h b/src/resources/palettedb.h new file mode 100644 index 000000000..28b901799 --- /dev/null +++ b/src/resources/palettedb.h @@ -0,0 +1,39 @@ +/* + * The ManaPlus Client + * Copyright (C) 2013 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef PALETTEDB_H +#define PALETTEDB_H + +#include "localconsts.h" + +#include + +struct DyeColor; + +namespace PaletteDB +{ + void load(); + void unload(); + void loadPalette(); + const DyeColor &getColor(const std::string &name); + +} // namespace PaletteDB + +#endif -- cgit v1.2.3-70-g09d2