Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-12-14, 11:13 AM   #1
ImportedDj
A Deviate Faerie Dragon
Join Date: Jun 2014
Posts: 10
Getting a texture on the screen

Hi all, I am currently trying to populate the screen with a test image however it doesnt seem to appear on the screen.. i have tried the follow with buggrabber and bugsack.

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

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

local ufTexture = pFrame:CreateTexture()
ufTexture:SetPoint("BOTTOM")
ufTexture:SetTexture("Interface\\AddOns\\WoWUI\\Background\\BgIMG")
pFrame:texture = ufTexture - Line 8 regarding error


pFrame:SetSize(1920,490)
pFrame:Show()
however i get the following error
Code:
TestOne.lua:8: function arguments expected near "="
Removing the code that brings this error removes all errors in the code, however the image is still not being placed onto the screen.. if anyone is able to help i'd greatly appreciate it.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Getting a texture on the screen


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