mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 13:32:20 +00:00
allow adding tag to main timeline
tagtree:remove unnecessary tree parameter binary export: use .swf extension for swf files export:select export types fixed when inner swf is selected debug menu:create new swf check all tags when debugcopy is enabled
This commit is contained in:
@@ -997,6 +997,17 @@ public abstract class MainFrameMenu implements MenuBuilder {
|
||||
sourceInfos[1] = new SWFSourceInfo(null, path, null);
|
||||
Main.openFile(sourceInfos);
|
||||
}, PRIORITY_MEDIUM, null, true, null, false);
|
||||
addMenuItem("/debug/createNewSwf", "Create new SWF", "update16", e -> {
|
||||
SWF swf = new SWF();
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
try {
|
||||
swf.saveTo(baos);
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(MainFrameMenu.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
|
||||
Main.openFile(new SWFSourceInfo(new ByteArrayInputStream(baos.toByteArray()), "New SWF", "New SWF"));
|
||||
}, PRIORITY_MEDIUM, null, true, null, false);
|
||||
finishMenu("/debug");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user