Maintenance for the week of December 23:
· [COMPLETE] NA megaservers for maintenance – December 23, 4:00AM EST (9:00 UTC) - 9:00AM EST (14:00 UTC)
· [COMPLETE] EU megaservers for maintenance – December 23, 9:00 UTC (4:00AM EST) - 14:00 UTC (9:00AM EST)

How is a custom texture file referenced in the XML attributes?

Hav0ch
Hav0ch
Soul Shriven
I'm creating some custom images just to dress up my UI. Everything I have found says it must be a DDS (DTX5) file format so that's what I have created.
These files have been placed directly under my addon folder in a sub-folder titled "Textures".
I'm using the <Texture ... textureFile="subfolder/filename.dds" > attribute to try to locate the file.
All I get is black. Tried deleting shader.cooked file and reloading but that didn't work.
I guess I have 2 questions: 1) where do I place the custom textures, and 2) how do I reference them in the XML file.
  • votan73
    votan73
    ✭✭✭
    The path is relative to the "Addons" folder, not your addon.
    <Texture ... textureFile="Textures/subfolder/filename.dds" >

    Also make sure the width and height is dividable by 8.
  • Hav0ch
    Hav0ch
    Soul Shriven
    Thanks for the quick response.

    To clarify, the file path should be ... "addonFolder/subfolder/file.dds"?
  • votan73
    votan73
    ✭✭✭
    yes.
  • Hav0ch
    Hav0ch
    Soul Shriven
    Success!

    NOTE for anyone saving with Paint.net, the DXT5 option is not the correct choice. See the image below to get a working DDS file for ESO.

    3wluasmt1ix8.png
Sign In or Register to comment.