Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Line Example

Line

ADDON:ImportObject(48) -- Line
-- ADDON:ImportObject(OBJECT.Line)

local lineExample = UIParent:CreateWidget("line", "lineExample", "UIParent")
lineExample:SetExtent(400, 400)
lineExample:AddAnchor("CENTER", "UIParent", 0, 0)

lineExample:SetPoints({
  { beginX = 0,   beginY = 0,   endX = 200, endY = 0, },
  { beginX = 200, beginY = 0,   endX = 100, endY = 200, },
  { beginX = 100, beginY = 200, endX = 0,   endY = 0, },
})

lineExample:Show(true)

Line Example