mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:00:47 +00:00
Added: AS3 Document class is underlined and has different icon
This commit is contained in:
@@ -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) {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 4.9 KiB |
@@ -229,6 +229,13 @@ public abstract class AbstractTagTree extends JTree {
|
||||
type = TreeNodeType.FOLDER_OPEN;
|
||||
}
|
||||
|
||||
if (val instanceof ScriptPack) {
|
||||
ScriptPack sp = (ScriptPack) val;
|
||||
if (sp.isDocumentClass()) {
|
||||
return View.getIcon("asclassmain16");
|
||||
}
|
||||
}
|
||||
|
||||
if ((type == TreeNodeType.FOLDER || type == TreeNodeType.FOLDER_OPEN) && val instanceof FolderItem) {
|
||||
FolderItem si = (FolderItem) val;
|
||||
if (!TagTreeRoot.FOLDER_ROOT.equals(si.getName())) {
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.gui.tagtree;
|
||||
|
||||
import com.jpexs.decompiler.flash.IdentifiersDeobfuscation;
|
||||
import com.jpexs.decompiler.flash.abc.ScriptPack;
|
||||
import com.jpexs.decompiler.flash.gui.AppStrings;
|
||||
import com.jpexs.decompiler.flash.gui.MainPanel;
|
||||
import com.jpexs.decompiler.flash.gui.TreeNodeType;
|
||||
@@ -243,9 +244,20 @@ public class TagTree extends AbstractTagTree {
|
||||
semiTransparent = true;
|
||||
}
|
||||
int itemIndex = aTree.getFullModel().getItemIndex(val);
|
||||
|
||||
String txt = val.toString();
|
||||
if (itemIndex > 1) {
|
||||
setText(val.toString() + " [" + itemIndex + "]");
|
||||
txt = txt + " [" + itemIndex + "]";
|
||||
}
|
||||
|
||||
if (val instanceof ScriptPack) {
|
||||
ScriptPack sp = (ScriptPack) val;
|
||||
if (sp.isDocumentClass()) {
|
||||
txt = "<html><u>" + txt.replace("&", "&").replace("<", "<").replace(">", ">") + "</u></html>";
|
||||
}
|
||||
}
|
||||
|
||||
setText(txt);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user