mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 03:40:47 +00:00
Render text during text editing and show old text in background with lighter color
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.tags;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.SWFInputStream;
|
||||
import com.jpexs.decompiler.flash.SWFOutputStream;
|
||||
import com.jpexs.decompiler.flash.tags.base.Exportable;
|
||||
import com.jpexs.decompiler.flash.tags.base.NeedsCharacters;
|
||||
@@ -336,6 +337,14 @@ public abstract class Tag implements NeedsCharacters, Exportable, Serializable {
|
||||
sos.write(originalRange.getArray(), originalRange.getPos(), originalRange.getLength());
|
||||
}
|
||||
}
|
||||
|
||||
public Tag cloneTag() throws InterruptedException, IOException {
|
||||
byte[] data = getData();
|
||||
SWFInputStream tagDataStream = new SWFInputStream(swf, data, getDataPos(), data.length);
|
||||
TagStub copy = new TagStub(swf, getId(), "Unresolved", getOriginalRange(), tagDataStream);
|
||||
copy.forceWriteAsLong = forceWriteAsLong;
|
||||
return SWFInputStream.resolveTag(copy, 0, false, true, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns string representation of the object
|
||||
|
||||
Reference in New Issue
Block a user