Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Graphics Help » Is there a way to query if a texture is available?


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