mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-12 10:09:00 +00:00
DoInitAction to string without spriteid when exportedname exists
This commit is contained in:
@@ -224,7 +224,7 @@ public class DoInitActionTag extends Tag implements CharacterIdTag, ASMSource {
|
||||
public String getName() {
|
||||
String expName = swf == null ? "" : swf.getExportName(spriteId);
|
||||
if (expName == null || expName.isEmpty()) {
|
||||
return super.getName();
|
||||
return super.getName() + " (" + spriteId + ")";
|
||||
}
|
||||
String[] pathParts = expName.contains(".") ? expName.split("\\.") : new String[]{expName};
|
||||
return pathParts[pathParts.length - 1];
|
||||
@@ -259,11 +259,4 @@ public class DoInitActionTag extends Tag implements CharacterIdTag, ASMSource {
|
||||
public void setSourceTag(Tag t) {
|
||||
//nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getName() + " (" + spriteId + ")";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user