Exporting compound scripts

This commit is contained in:
Jindra Petřík
2023-09-28 10:51:59 +02:00
parent 9e2892eb33
commit 4b5c4e8af4
3 changed files with 14 additions and 1 deletions

View File

@@ -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);

View File

@@ -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) {

View File

@@ -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;
}