View Single Post
06-16-14, 12:02 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
If the texture is a power of 2 in size then showing a green box usually means that WoW can't find the texture in the location you provided or, you have placed the texture in the right place but you need to exit wow (all the way out) and re-start as WoW caches file locations only when it loads. Also it needs to be a .blp or a .tga with an alpha layer.

Code:
local frame = CreateFrame("Frame",ShowUF,UIParent)

frame.ufTexture = frame:CreateTexture()
frame.ufTexture:SetTexture("Interface\\AddOns\\WoWUI\\Background\\NaTUI")
frame.ufTexture:SetPoint("CENTER", UIParent)
frame.ufTexture:SetSize(256,64)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 06-16-14 at 12:06 PM.
  Reply With Quote