mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 12:21:04 +00:00
Byte array fixed in generic tag editor
This commit is contained in:
@@ -37,6 +37,7 @@ import com.jpexs.decompiler.flash.types.annotations.SWFType;
|
||||
import com.jpexs.decompiler.flash.types.annotations.Table;
|
||||
import com.jpexs.decompiler.flash.types.annotations.parser.AnnotationParseException;
|
||||
import com.jpexs.decompiler.flash.types.annotations.parser.ConditionEvaluator;
|
||||
import com.jpexs.helpers.ByteArrayRange;
|
||||
import com.jpexs.helpers.ConcreteClasses;
|
||||
import com.jpexs.helpers.ReflectionTools;
|
||||
import java.awt.BorderLayout;
|
||||
@@ -517,7 +518,11 @@ public class GenericTagTreePanel extends GenericTagPanel {
|
||||
colorAdd = "<cite style=\"color:rgb(" + color.getRed() + "," + color.getGreen() + "," + color.getBlue() + ");\">\u25cf</cite> ";
|
||||
}
|
||||
|
||||
valStr += " = " + colorAdd + val.toString();
|
||||
if (val instanceof ByteArrayRange) {
|
||||
valStr += " = " + ((ByteArrayRange) val).getLength() + " byte";
|
||||
} else {
|
||||
valStr += " = " + colorAdd + val.toString();
|
||||
}
|
||||
}
|
||||
return getNameType(fieldIndex) + valStr;
|
||||
}
|
||||
@@ -900,6 +905,8 @@ public class GenericTagTreePanel extends GenericTagPanel {
|
||||
return true;
|
||||
} else if (type.equals(RGB.class) || type.equals(RGBA.class) || type.equals(ARGB.class)) {
|
||||
return true;
|
||||
} else if (type.equals(ByteArrayRange.class)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user