write palette of region map image, fix ruby city map render

This commit is contained in:
garak
2019-04-06 18:11:56 -04:00
parent a475823fee
commit 5bfc32fb7f
8 changed files with 65 additions and 22 deletions

View File

@@ -1,15 +1,16 @@
#ifndef PALETTEPARSER_H
#define PALETTEPARSER_H
#ifndef PALETTEUTIL_H
#define PALETTEUTIL_H
#include <QList>
#include <QRgb>
#include <QString>
class PaletteParser
class PaletteUtil
{
public:
PaletteParser();
PaletteUtil();
QList<QRgb> parse(QString filepath, bool *error);
void writeJASC(QString filepath, QVector<QRgb> colors, int offset, int nColors);
private:
QList<QRgb> parsePal(QString filepath, bool *error);
QList<QRgb> parseJASC(QString filepath, bool *error);
@@ -20,4 +21,4 @@ private:
int clampColorValue(int value);
};
#endif // PALETTEPARSER_H
#endif // PALETTEUTIL_H

View File

@@ -21,7 +21,7 @@ public:
QString file;
QByteArray data;
void init();
void save();
void create(QString);