View Single Post
01-02-16, 01:23 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
In lua your frame would be

Code:
local frame = CreateFrame("Frame", "MyAddon_Frame")
frame:SetSize(100, 100)
frame:ClearAllPoints()
frame:SetPoint("TOPLEFT")
If you want to see it (all "Frames" are transparent by default) add:

Code:
frame.texture = CreateTexture("$parent_Texture")
frame.texture:SetAllPoints(frame)
frame.texture:SetTexture(" ")
Will create a green square which is the default when the texture file can't be found.

If you go here you can find a list of all the widget type (start with "Frame" from the list on the right hand side) and their associated methods.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 01-02-16 at 01:30 PM.
  Reply With Quote