View Single Post
06-16-14, 11:23 AM   #1
ImportedDj
A Deviate Faerie Dragon
Join Date: Jun 2014
Posts: 10
Having issues loading images with Lua..

I'm trying to load the current Image:


However when it loads up in WoW it comes up as a Green box.. From what i know that's caused by the image not being a power of 2.. However the Images Dimensions are 256x64 so they are a power of 2.. I cant see why else the green box would be appearing.. this is the current code I'm using..

Code:
--Create a Frame for UI to be placed in

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

local ufTexture = frame:CreateTexture()
ufTexture:SetPoint("CENTER", "UIParent")
ufTexture:SetSize(256,64)
ufTexture:SetTexture("Interface\\AddOns\\WoWUI\\Background\\NaTUI")
frame.texture = ufTexture


frame:SetSize(256,64)
frame:Show()
  Reply With Quote