mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-02 08:24:20 +00:00
Exporting compound scripts
This commit is contained in:
@@ -137,7 +137,7 @@ public class ScriptPack extends AS3ClassTreeItem {
|
||||
}
|
||||
|
||||
public String getPathScriptName() {
|
||||
String scriptName = "";
|
||||
String scriptName = "script_" + scriptIndex;
|
||||
for (int t : traitIndices) {
|
||||
Multiname name = abc.script_info.get(scriptIndex).traits.traits.get(t).getName(abc);
|
||||
int nskind = name.getSimpleNamespaceKind(abc.constants);
|
||||
|
||||
@@ -1960,6 +1960,13 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
if (d instanceof ScriptPack) {
|
||||
as3scripts.add((ScriptPack) d);
|
||||
}
|
||||
|
||||
if (d instanceof AS3Package) {
|
||||
AS3Package p = (AS3Package) d;
|
||||
if (p.isCompoundScript()) {
|
||||
as3scripts.add(p.getCompoundInitializerPack());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (Tag sprite : sprites) {
|
||||
|
||||
@@ -651,6 +651,12 @@ public abstract class AbstractTagTree extends JTree {
|
||||
if (d instanceof ScriptPack) {
|
||||
ret.add(d);
|
||||
}
|
||||
if (d instanceof AS3Package) {
|
||||
AS3Package p = (AS3Package)d;
|
||||
if (p.isCompoundScript()) {
|
||||
ret.add(d);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user