Skip to content

Commit

Permalink
#1529 commandline selection of tag ids now applies to sprites and but…
Browse files Browse the repository at this point in the history
…tons
  • Loading branch information
jindrapetrik committed Apr 25, 2020
1 parent 317308a commit ca0c093
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
- #1503 NullPointer Exception on commandline FLA export
- AS3 direct editation - invalid generation of lookupswitch
- AS3 direct editation - fix access to protected members with super
- #1529 commandline selection of tag ids now applies to sprites and buttons

### Changed
- #1378 Transparent background on PNG/GIF sprite export
Expand Down
Expand Up @@ -2293,19 +2293,19 @@ public void handleEvent(String event, Object data) {
if (exportAll || exportFormats.contains("sprite")) {
System.out.println("Exporting sprite...");
SpriteExportSettings ses = new SpriteExportSettings(enumFromStr(formats.get("sprite"), SpriteExportMode.class), zoom);
for (CharacterTag c : swf.getCharacters().values()) {
if (c instanceof DefineSpriteTag) {
frameExporter.exportSpriteFrames(handler, outDir + (multipleExportTypes ? File.separator + SpriteExportSettings.EXPORT_FOLDER_NAME : ""), swf, c.getCharacterId(), null, ses, evl);
for (Tag t : extags) {
if (t instanceof DefineSpriteTag) {
frameExporter.exportSpriteFrames(handler, outDir + (multipleExportTypes ? File.separator + SpriteExportSettings.EXPORT_FOLDER_NAME : ""), swf, ((DefineSpriteTag) t).getCharacterId(), null, ses, evl);
}
}
}

if (exportAll || exportFormats.contains("button")) {
System.out.println("Exporting buttons...");
ButtonExportSettings bes = new ButtonExportSettings(enumFromStr(formats.get("button"), ButtonExportMode.class), zoom);
for (CharacterTag c : swf.getCharacters().values()) {
if (c instanceof ButtonTag) {
frameExporter.exportButtonFrames(handler, outDir + (multipleExportTypes ? File.separator + ButtonExportSettings.EXPORT_FOLDER_NAME : ""), swf, c.getCharacterId(), null, bes, evl);
for (Tag t : extags) {
if (t instanceof ButtonTag) {
frameExporter.exportButtonFrames(handler, outDir + (multipleExportTypes ? File.separator + ButtonExportSettings.EXPORT_FOLDER_NAME : ""), swf, ((ButtonTag) t).getCharacterId(), null, bes, evl);
}
}
}
Expand Down

0 comments on commit ca0c093

Please sign in to comment.