View Single Post
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