View Single Post
03/14/15, 10:42 AM   #2
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Hi Skyndia,

there are two ways showing icons.
  1. Using a "Texture" control and control:SetTexture(path)
  2. Inline text (for all controls showing text)
    In this case the text inline part needs a special format "|twidth:height:path|t"
    The zo_iconFormat(path, width, height) would create such a string for you.

All you need is to know a valid path. But the WIKI list is a bit out-dated.
One way to find those paths is to scan the LUA scripts of the game for strings starting with "esoui/art/".
Look here: http://www.esoui.com/forums/showpost...2&postcount=56

For you own DDS files the path is "OurAddonFolder/OurOptionalSubPath/OurImage.dds"
It must be DDS (paint.net and gimp can save that format)
The image width and height must match 2^n (2,4,8,16,32,64,....)

I guess our masters can tell you more.

CU
Originally Posted by Skyndia View Post
Hello !
I am a begginer in addon building.
I found a tutorial for text or frame but I didnt find anything about icon.
I think I can use this http://wiki.esoui.com/Texture_List but it is all I found for help me :/

Can someone help me ?
Thanks !
  Reply With Quote