Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-22-19, 09:05 AM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Get the texture path from textureID?

I've been searching all over, knowing I missed something basic. I know the following returns the path to the texture, but only if you already know the texture's name, ie: it's a string.
Code:
local ActionBar1:GetTexture() -- should work
local 23571:GetTexture() -- (made up fileID) will this work?
What if the texture is a textureID, a number? How do you get its name and path? I'm going from Wowpedia's docs, so maybe GetTexture() works on numerical textureIDs, but I doubt it.

Last edited by myrroddin : 03-22-19 at 09:22 AM. Reason: better example
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Get the texture path from textureID?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off