add options to count metatiles to tileset editor

- count the total number of usages across all maps of specific metatiles
- display the count and/or display unused metatiles
- this does not account for metatiles used in code (most of these are labeled)
This commit is contained in:
garak
2021-07-19 22:02:31 -04:00
parent 353a0b017f
commit 601e671fc8
10 changed files with 288 additions and 67 deletions

View File

@@ -95,7 +95,8 @@ public:
QMap<QString, QStringList> tilesetLabels;
Blockdata readBlockdata(QString);
bool loadBlockdata(Map*);
bool loadBlockdata(MapLayout*);
bool loadLayoutBorder(MapLayout*);
void saveTextFile(QString path, QString text);
void appendTextFile(QString path, QString text);
@@ -122,8 +123,9 @@ public:
QMap<QString, bool> getTopLevelMapFields();
bool loadMapData(Map*);
bool readMapLayouts();
bool loadLayout(MapLayout *);
bool loadMapLayout(Map*);
bool loadMapTilesets(Map*);
bool loadLayoutTilesets(MapLayout*);
void loadTilesetAssets(Tileset*);
void loadTilesetTiles(Tileset*, QImage);
void loadTilesetMetatiles(Tileset*);
@@ -182,8 +184,6 @@ public:
QStringList getEventScriptsFilePaths() const;
QCompleter *getEventScriptLabelCompleter(QStringList additionalScriptLabels);
bool loadMapBorder(Map *map);
void saveMapHealEvents(Map *map);
static int getNumTilesPrimary();