mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-01 03:02:10 +00:00
Show in Hex dump for BUTTONCONDACTION, BUTTONRECORD, CLIPACTIONRECORD
This commit is contained in:
@@ -23,6 +23,7 @@ import com.jpexs.decompiler.flash.action.ConstantPoolTooBigException;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.ScriptExportMode;
|
||||
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
|
||||
import com.jpexs.decompiler.flash.tags.Tag;
|
||||
import com.jpexs.decompiler.flash.types.HasSwfAndTag;
|
||||
import com.jpexs.helpers.ByteArrayRange;
|
||||
import java.util.List;
|
||||
|
||||
@@ -31,7 +32,7 @@ import java.util.List;
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public interface ASMSource extends Exportable {
|
||||
public interface ASMSource extends Exportable, HasSwfAndTag {
|
||||
|
||||
/**
|
||||
* Converts actions to ASM source
|
||||
|
||||
@@ -200,7 +200,7 @@ public abstract class ButtonTag extends DrawableTag implements Timelined {
|
||||
public void setSwf(SWF swf, boolean deep) {
|
||||
this.swf = swf;
|
||||
for(BUTTONRECORD record:getRecords()) {
|
||||
record.setSwfAndTag(swf, this);
|
||||
record.setSourceTag(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ import java.util.List;
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class BUTTONCONDACTION implements ASMSource, Serializable {
|
||||
public class BUTTONCONDACTION implements ASMSource, Serializable, HasSwfAndTag {
|
||||
|
||||
private SWF swf;
|
||||
|
||||
@@ -357,4 +357,9 @@ public class BUTTONCONDACTION implements ASMSource, Serializable {
|
||||
this.tag = t;
|
||||
this.swf = t.getSwf();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Tag getTag() {
|
||||
return tag;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,8 +153,8 @@ public class BUTTONRECORD implements Serializable, TreeItem, HasSwfAndTag, HasCh
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSwfAndTag(SWF swf, Tag tag) {
|
||||
this.swf = swf;
|
||||
public void setSourceTag(Tag tag) {
|
||||
this.swf = tag.getSwf();
|
||||
this.tag = (ButtonTag) tag;
|
||||
}
|
||||
|
||||
|
||||
@@ -145,8 +145,8 @@ public class CLIPACTIONRECORD implements ASMSource, Serializable, HasSwfAndTag {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSwfAndTag(SWF swf, Tag tag) {
|
||||
this.swf = swf;
|
||||
public void setSourceTag(Tag tag) {
|
||||
this.swf = tag.getSwf();
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
@@ -344,10 +344,4 @@ public class CLIPACTIONRECORD implements ASMSource, Serializable, HasSwfAndTag {
|
||||
public Tag getSourceTag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSourceTag(Tag t) {
|
||||
this.tag = t;
|
||||
this.swf = t.getSwf();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.jpexs.decompiler.flash.tags.Tag;
|
||||
* @author JPEXS
|
||||
*/
|
||||
public interface HasSwfAndTag {
|
||||
public void setSwfAndTag(SWF swf, Tag tag);
|
||||
public void setSourceTag(Tag tag);
|
||||
|
||||
public SWF getSwf();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user