Quantcast
WoWInterface - View Single Post - How to use LineMixin?
View Single Post
05-02-18, 05:45 PM   #5
thomasjohnshannon
A Theradrim Guardian
 
thomasjohnshannon's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 65
Finally got a working version.

Lua Code:
  1. <UI>
  2.     <Frame name="DrawFrame" parent="UIParent" frameStrata="LOW">
  3.         <Size x="300" y="300"/>
  4.         <Anchors>
  5.             <Anchor point="CENTER" />
  6.         </Anchors>
  7.         <Layers>
  8.             <Layer level="BACKGROUND">
  9.                 <Texture parentKey="Background" setAllPoints="true">
  10.                     <Color r="0" g="0" b="0" a=".70"/>
  11.                 </Texture>
  12.             </Layer>
  13.             <Layer level="OVERLAY" textureSubLevel="7">
  14.                 <Texture parentKey="Fill" file="Interface\TAXIFRAME\UI-Taxi-Line" alpha="1" mixin="LineMixin">
  15.                     <Color r="1" g="0" b="0"/>
  16.                 </Texture>
  17.             </Layer>
  18.         </Layers>
  19.         <Scripts>
  20.             <OnLoad>
  21.                 local x, y = self:GetCenter()
  22.                 self.Fill:SetThickness(64)
  23.                 self.Fill:SetStartPoint(x,y)
  24.                 self.Fill:SetEndPoint(x-300,y+300)
  25.                 self.Fill:Draw()
  26.             </OnLoad>
  27.        </Scripts>
  28.     </Frame>
  29. </UI>
__________________
Thomas aka Urnn
  Reply With Quote