Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Draws a line.

line = Frame:CreateLine([name, drawLayer, templateName, subLevel])

Arguments[]

name
string?
drawLayer
string? : DrawLayer
templateName
string?
subLevel
number? [-8, 7] = 0 - The level of the sublayer if anything else overlaps.

Returns[]

line
Line🔗 - The new line object as a child of this frame.

Example[]

Draws a diagonal red line with a default thickness of 4.

local l = UIParent:CreateLine()
l:SetColorTexture(1, 0, 0)
l:SetStartPoint("CENTER", -50, 50) -- start topleft
l:SetEndPoint("CENTER", 50, -50)   -- end bottomright
Advertisement