Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-11-09, 07:28 PM   #1
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
.lua frame not appearing

Used to XML, trying to get the hang of doing it all .lua

Code:
function CFM_CreateConfig()
	-- Create config frame
	local f = CreateFrame("Frame", "CFM_Config", UIParent)
	f:SetWidth(100)
	f:SetHeight(100)
	f:SetPoint("Center")
	f:SetBackdrop({
		bgFile = "Interface\DialogFrame\UI-DialogBox-Background",
		edgeFile = "Interface\DialogFrame\UI-DialogBox-Border",
		tile = "true",
		tileSize = 32,
		edgeSize = 32,
		insets = {left = 11, right = 12, top = 12, bottom = 11}
		})
	f:SetBackdropColor(0,0,0,1)
end
Results in no frame, either mod called or /script called.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » .lua frame not appearing


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