All "mapped" tags have character id in parenthesis in the tag tree

This commit is contained in:
Jindra Petřík
2022-11-01 18:46:38 +01:00
parent f7e9d8b7c6
commit 149a2fbb90
7 changed files with 43 additions and 6 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
@@ -118,4 +119,9 @@ public class CSMTextSettingsTag extends Tag implements CharacterIdTag {
public void setCharacterId(int characterId) {
this.textID = characterId;
}
@Override
public String toString() {
return super.toString() + " (" + textID + ")";
}
}

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
@@ -91,4 +92,9 @@ public class DefineButtonCxformTag extends Tag implements CharacterIdTag {
public void setCharacterId(int characterId) {
this.buttonId = characterId;
}
@Override
public String toString() {
return super.toString() + " (" + buttonId + ")";
}
}

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
@@ -155,4 +156,9 @@ public class DefineButtonSoundTag extends Tag implements CharacterIdTag {
needed.add(buttonSoundChar3);
}
}
@Override
public String toString() {
return super.toString() + " (" + buttonId + ")";
}
}

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
@@ -110,4 +111,9 @@ public class DefineFontAlignZonesTag extends Tag implements CharacterIdTag {
public void setCharacterId(int characterId) {
this.fontID = characterId;
}
@Override
public String toString() {
return super.toString() + " (" + fontID + ")";
}
}

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
@@ -88,4 +89,9 @@ public class DefineFontNameTag extends Tag implements CharacterIdTag {
public void setCharacterId(int characterId) {
this.fontId = characterId;
}
@Override
public String toString() {
return super.toString() + " (" + fontId + ")";
}
}

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags.base;
import com.jpexs.decompiler.flash.SWF;
@@ -60,4 +61,9 @@ public abstract class FontInfoTag extends Tag implements CharacterIdTag {
public abstract boolean getFontFlagsItalic();
public abstract void setFontFlagsItalic(boolean value);
@Override
public String toString() {
return super.toString() + " (" + fontID + ")";
}
}