mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 21:35:16 +00:00
#958 Remove and Replace character tag of items from CLI
This commit is contained in:
@@ -2854,6 +2854,20 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
}
|
||||
}
|
||||
|
||||
public void replaceCharacterTags(CharacterTag characterTag, int newCharacterId) {
|
||||
int characterId = characterTag.getCharacterId();
|
||||
CharacterTag newCharacter = getCharacter(newCharacterId);
|
||||
newCharacter.setCharacterId(characterId);
|
||||
characterTag.setCharacterId(newCharacterId);
|
||||
newCharacter.setModified(true);
|
||||
characterTag.setModified(true);
|
||||
|
||||
assignExportNamesToSymbols();
|
||||
assignClassesToSymbols();
|
||||
clearImageCache();
|
||||
updateCharacters();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getShortFileName();
|
||||
|
||||
Reference in New Issue
Block a user