Added: #2534] Create new GFX tags of type DefineExternalGradient, DefineGradientMap, ExporterInfo, FontTextureInfo, DefineExternalStreamSound

This commit is contained in:
Jindra Petřík
2025-09-28 12:08:43 +02:00
parent 8afe8c29d5
commit fe469f0d82
4 changed files with 33 additions and 12 deletions

View File

@@ -49,7 +49,7 @@ public class FontTextureInfo extends Tag {
public int textureFormat;
public String fileName;
public String fileName = "";
public int textureWidth;
@@ -59,9 +59,9 @@ public class FontTextureInfo extends Tag {
public int nominalGlyphSz;
public TEXGLYPH[] texGlyphs;
public TEXGLYPH[] texGlyphs = new TEXGLYPH[0];
public FONTINFO[] fonts;
public FONTINFO[] fonts = new FONTINFO[0];
/**
* Gets data bytes
@@ -142,15 +142,15 @@ public class FontTextureInfo extends Tag {
@Override
public Map<String, String> getNameProperties() {
Map<String, String> ret = super.getNameProperties();
ret.put("chid", "" + getUniqueId());
ret.put("tid", "" + getUniqueId());
return ret;
}
@Override
public String getUniqueId() {
if (idType == IdType.IDTYPE_NONE) {
/*if (idType == IdType.IDTYPE_NONE) {
return super.getUniqueId();
}
}*/
return "ft" + textureID;
}