Quantcast
WoWInterface - View Single Post - How to use LineMixin?
View Single Post
05-02-18, 02:07 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,470
You could try this in your lua file..

Code:
    object.line = CreateFromMixins(LineMixin)
    object.line:SetStartPoint(10,10)
    object.line:SetEndPoint(20,20)
    object.line:SetThickness(100)
    object.line:Draw()
I haven't tested it yet but based on the function requiring a parent window I suspect the parent window is either a frame or the texture on a frame.

Obviously replace object with the appropriate parent window object.


EDIT: .. Hmm, not as easy as I thought .. Its now sounding like the line is the texture but not 100% sure
__________________

Last edited by Xrystal : 05-02-18 at 02:25 PM.
  Reply With Quote