Added: AS3 Document class is underlined and has different icon

This commit is contained in:
Jindra Petřík
2025-10-05 19:00:51 +02:00
parent 5db66ae32b
commit bd47698c1a
9 changed files with 47 additions and 7 deletions

View File

@@ -17,6 +17,7 @@
package com.jpexs.decompiler.flash.gui;
import com.jpexs.decompiler.flash.IdentifiersDeobfuscation;
import com.jpexs.decompiler.flash.abc.ScriptPack;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.tagtree.AbstractTagTree;
import com.jpexs.decompiler.flash.tags.DoInitActionTag;
@@ -251,6 +252,14 @@ public class FolderListPanel extends JPanel {
}
Icon icon = ICONS.get(type);
if (treeItem instanceof ScriptPack) {
ScriptPack sp = (ScriptPack) treeItem;
if (sp.isDocumentClass()) {
icon = View.getIcon("asclassmain32");
}
}
icon.paintIcon(l, g, x * CELL_WIDTH + BORDER_SIZE + PREVIEW_SIZE / 2 - icon.getIconWidth() / 2, y * CELL_HEIGHT + BORDER_SIZE + PREVIEW_SIZE / 2 - icon.getIconHeight() / 2);
String s = null;
if (treeItem instanceof DoInitActionTag) {