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

@@ -527,6 +527,8 @@
<addaction name="actionImport_Primary_Metatiles"/>
<addaction name="actionImport_Secondary_Metatiles"/>
<addaction name="actionChange_Metatiles_Count"/>
<addaction name="actionShow_Unused"/>
<addaction name="actionShow_Counts"/>
<addaction name="actionChange_Palettes"/>
<addaction name="separator"/>
<addaction name="actionExport_Primary_Tiles_Image"/>
@@ -572,6 +574,22 @@
<string>Palette Editor</string>
</property>
</action>
<action name="actionShow_Unused">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Display Unused Metatiles</string>
</property>
</action>
<action name="actionShow_Counts">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Display Metatile Usage Counts</string>
</property>
</action>
<action name="actionUndo">
<property name="text">
<string>Undo</string>