Added #1232 Needed/dependent characters list in basic tag info can be expanded to show tag names

This commit is contained in:
Jindra Petřík
2022-11-06 21:29:33 +01:00
parent e33ea7f2eb
commit 79027e085c
6 changed files with 55 additions and 14 deletions

View File

@@ -603,6 +603,9 @@ public abstract class Tag implements NeedsCharacters, Exportable, Serializable {
return needed;
}
Timelined tim = getTimelined();
if (tim == null) {
return needed;
}
ReadOnlyTagList tags = tim.getTags();
for (int i = tags.indexOf(this) - 1; i >= -1; i--) {
if (i == -1) {

View File

@@ -16,6 +16,7 @@
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
@@ -27,8 +28,17 @@ import java.util.Map;
*/
public class TagInfo {
private SWF swf;
private final Map<String, List<TagInfoItem>> infos = new LinkedHashMap<>();
public TagInfo(SWF swf) {
this.swf = swf;
}
public SWF getSwf() {
return swf;
}
public void addInfo(String categoryName, String name, Object value) {
categoryName = "general"; // temporary add everything to general catagory
List<TagInfoItem> category = infos.get(categoryName);