mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-16 13:22:38 +00:00
Added #1460 Bulk importing images
This commit is contained in:
@@ -755,6 +755,10 @@ public final class Configuration {
|
||||
@ConfigurationDefaultBoolean(true)
|
||||
@ConfigurationCategory("ui")
|
||||
public static ConfigurationItem<Boolean> showImportXmlInfo = null;
|
||||
|
||||
@ConfigurationDefaultBoolean(true)
|
||||
@ConfigurationCategory("ui")
|
||||
public static ConfigurationItem<Boolean> showImportImageInfo = null;
|
||||
|
||||
private enum OSId {
|
||||
WINDOWS, OSX, UNIX
|
||||
|
||||
@@ -20,7 +20,7 @@ package com.jpexs.decompiler.flash.exporters.modes;
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public enum ImageExportMode {
|
||||
|
||||
public enum ImageExportMode {
|
||||
|
||||
PNG_GIF_JPEG, PNG, JPEG, BMP
|
||||
}
|
||||
|
||||
@@ -97,8 +97,9 @@ public class ImageImporter extends TagImporter {
|
||||
}
|
||||
|
||||
imageTag.setModified(true);
|
||||
swf.replaceTag(it, imageTag);
|
||||
it.getTimelined().replaceTag(it, imageTag);
|
||||
swf.updateCharacters();
|
||||
swf.resetTimelines(swf);
|
||||
return imageTag;
|
||||
}
|
||||
|
||||
|
||||
@@ -441,6 +441,14 @@ public class DefineSpriteTag extends DrawableTag implements Timelined {
|
||||
removeTag(index);
|
||||
addTag(index, newTag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void replaceTag(Tag oldTag, Tag newTag) {
|
||||
int index = indexOfTag(oldTag);
|
||||
if (index != -1) {
|
||||
replaceTag(index, newTag);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public RECT getRectWithStrokes() {
|
||||
|
||||
@@ -183,4 +183,13 @@ public abstract class ButtonTag extends DrawableTag implements Timelined {
|
||||
removeTag(index);
|
||||
addTag(index, newTag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void replaceTag(Tag oldTag, Tag newTag) {
|
||||
setModified(true);
|
||||
int index = indexOfTag(oldTag);
|
||||
if (index != -1) {
|
||||
replaceTag(index, newTag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,5 +44,7 @@ public interface Timelined extends BoundedTag {
|
||||
|
||||
public void replaceTag(int index, Tag newTag);
|
||||
|
||||
public void replaceTag(Tag oldTag, Tag newTag);
|
||||
|
||||
public int indexOfTag(Tag tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user