WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (http://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to draw an horizontal line? (http://www.wowinterface.com/forums/showthread.php?t=45500)

Spyro 12-23-12 12:58 PM

How to draw an horizontal line?
 
Hi, I want to make a header like the ones on this image, but I have no idea on how to draw that horizontal line:

It's an small addon so I'm using no libs, just XML and default API.
Anybody knows how to do it? :)

Haleth 12-23-12 01:01 PM

Use CreateTexture(). Example:

Lua Code:
  1. local line = f:CreateTexture()
  2. line:SetTexture(.6 ,.6, .6, .2)
  3. line:SetSize(100, 1)
  4. line:SetPoint("CENTER", f)

Where f is the name of your frame.

Spyro 12-23-12 01:10 PM

Thx for the instant response :) :banana:


All times are GMT -6. The time now is 12:13 AM.

vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC