isnorden
Amnesiac Modder
Please forgive my cluelessness, but...this is the first time one of my mods has included new font icons. I've written the "plain" XML that locates the atlas and gives its size --
Unfortunately, I have no idea of how to write the matching .ggxml file; could someone with more experience please post a code snippet here? (I'm attaching a GIF of the font-icon atlas as a guide.) Thank you very much!
Spoiler :
Code:
<!-- Font icon data for new resources -->
<GameData>
<IconFontTextures>
<Row>
<IconFontTexture>ICON_FONT_TEXTURE_NEWGEMS</IconFontTexture>
<IconFontTextureFile>NewGemsFontIcons</IconFontTextureFile>
</Row>
</IconFontTextures>
<IconFontMapping>
<!-- Delete any font icons with the same name so there's no conflict. -->
<Delete IconName="ICON_RES_AMBER" />
<Delete IconName="ICON_RES_JADE" />
<Delete IconName="ICON_RES_LAPIS" />
<Row>
<IconName>ICON_RES_AMBER</IconName>
<IconFontTexture>ICON_FONT_TEXTURE_NEWGEMS</IconFontTexture>
<IconMapping>1</IconMapping>
</Row>
<Row>
<IconName>ICON_RES_JADE</IconName>
<IconFontTexture>ICON_FONT_TEXTURE_NEWGEMS</IconFontTexture>
<IconMapping>2</IconMapping>
</Row>
<Row>
<IconName>ICON_RES_LAPIS</IconName>
<IconFontTexture>ICON_FONT_TEXTURE_NEWGEMS</IconFontTexture>
<IconMapping>3</IconMapping>
</Row>
</IconFontMapping>
</GameData>
Unfortunately, I have no idea of how to write the matching .ggxml file; could someone with more experience please post a code snippet here? (I'm attaching a GIF of the font-icon atlas as a guide.) Thank you very much!