mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-28 03:00:59 +00:00
export fixes
This commit is contained in:
@@ -21,6 +21,7 @@ import com.jpexs.decompiler.flash.tags.DoActionTag;
|
||||
import com.jpexs.decompiler.flash.tags.ShowFrameTag;
|
||||
import com.jpexs.decompiler.flash.tags.Tag;
|
||||
import com.jpexs.decompiler.flash.tags.base.ASMSourceContainer;
|
||||
import com.jpexs.decompiler.flash.tags.base.Exportable;
|
||||
import com.jpexs.decompiler.flash.treeitems.TreeItem;
|
||||
import com.jpexs.decompiler.flash.types.RGB;
|
||||
import com.jpexs.decompiler.flash.types.RGBA;
|
||||
@@ -32,7 +33,7 @@ import java.util.TreeMap;
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class Frame implements TreeItem {
|
||||
public class Frame implements TreeItem, Exportable {
|
||||
|
||||
public final int frame;
|
||||
|
||||
@@ -81,4 +82,9 @@ public class Frame implements TreeItem {
|
||||
public String toString() {
|
||||
return "frame " + (frame + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getExportFileName() {
|
||||
return "frame_" + (frame + 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,13 +17,14 @@
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.tags.base.Exportable;
|
||||
import com.jpexs.decompiler.flash.treeitems.TreeItem;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class FrameScript implements TreeItem {
|
||||
public class FrameScript implements TreeItem, Exportable {
|
||||
|
||||
private final SWF swf;
|
||||
|
||||
@@ -47,4 +48,9 @@ public class FrameScript implements TreeItem {
|
||||
public String toString() {
|
||||
return frame.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getExportFileName() {
|
||||
return frame.getExportFileName();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.tags.Tag;
|
||||
import com.jpexs.decompiler.flash.tags.base.Exportable;
|
||||
import com.jpexs.decompiler.flash.treeitems.TreeItem;
|
||||
import java.util.List;
|
||||
|
||||
@@ -25,7 +26,7 @@ import java.util.List;
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TagScript implements TreeItem {
|
||||
public class TagScript implements TreeItem, Exportable {
|
||||
|
||||
private final SWF swf;
|
||||
|
||||
@@ -56,4 +57,23 @@ public class TagScript implements TreeItem {
|
||||
public String toString() {
|
||||
return tag.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getExportFileName() {
|
||||
return tag.getExportFileName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof TagScript) {
|
||||
return tag.equals(((TagScript) obj).getTag());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return tag.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user