WoWInterface - View Single Post - Get the texture path from textureID?
View Single Post
03-23-19, 11:50 AM   #4
A Rage Talon Dragon Guard
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 328
Well, sometimes GetTexture() returns texture IDs, but other times it returns texture paths, whichever is available, I guess, you can't be 100% sure.

There's GetTextureFileID and GetTextureFilePath, however, they don't really work the way one'd expect them to work.

If you passed an ID to SetTexture, GetTextureFilePath will return the object itself O_o (I assume that's a bug, it should return nil, I'll report it on Monday), GetTextureFileID will return that ID, if you passed a path to SetTexture, GetTextureFileID will return nil, GetTextureFilePath will return that path.

There's this lovely thing though: https://www.townlong-yak.com/framexm...tTextureID.lua

Last edited by lightspark : 03-23-19 at 11:54 AM.
  Reply With Quote