mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-01 04:01:26 +00:00
Added: #2467 Show ImportAssets name/characterId in the title when there is only single one item
This commit is contained in:
@@ -84,6 +84,7 @@ public class ImportAssets2Tag extends Tag implements ImportTag {
|
||||
super(swf, ID, NAME, null);
|
||||
url = "";
|
||||
tags = new ArrayList<>();
|
||||
names = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -154,4 +155,14 @@ public class ImportAssets2Tag extends Tag implements ImportTag {
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> getNameProperties() {
|
||||
Map<String, String> ret = super.getNameProperties();
|
||||
if (names.size() == 1) {
|
||||
ret.put("chid", "" + tags.get(0));
|
||||
ret.put("im", "" + names.get(0));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ public class ImportAssetsTag extends Tag implements ImportTag {
|
||||
super(swf, ID, NAME, null);
|
||||
url = "";
|
||||
tags = new ArrayList<>();
|
||||
names = new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -130,4 +131,14 @@ public class ImportAssetsTag extends Tag implements ImportTag {
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> getNameProperties() {
|
||||
Map<String, String> ret = super.getNameProperties();
|
||||
if (names.size() == 1) {
|
||||
ret.put("chid", "" + tags.get(0));
|
||||
ret.put("im", "" + names.get(0));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user