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

WoWInterface » Developer Discussions » Lua/XML Help » Having issues loading images with Lua..


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