![]() |
Wowpedia is no longer updated, go away. |
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