Skip to content
meeloo edited this page Jul 5, 2011 · 1 revision

If you need to export an atlas for nui out of zwoptex, use this custom format:

@TextureAtlas atlas =
{
  Path: "{{ metadata.name }}";
  {% for sprite in sprites %}
  ///////////////////////////////// Texture {{ sprite.name }}
  TextureName: "{{ sprite.name }}";
  Rect: "{ {{sprite.textureRectX}}, {{sprite.textureRectY}}, {{sprite.textureRectWidth}}, {{sprite.textureRectHeight}} }";
  {% for alias in sprite.aliases %}Alias: "{{ alias.name }}"; {% /for %}
  {% /for %}
}