Quantcast
WoWInterface - View Single Post - Is there a way to query if a texture is available?
View Single Post
11-17-20, 11:00 PM   #8
TeHypno
A Defias Bandit
Join Date: Jan 2010
Posts: 2
Method I'm using in 9.0.2
Lua Code:
  1. local f = CreateFrame('frame')
  2. local t = f:CreateTexture()
  3. function TextureExists(path)
  4.     t:SetTexture("?")
  5.     t:SetTexture(path)
  6.     return (t:GetTexture() ~= "?")
  7. end
  Reply With Quote