Reply
Thread Tools Display Modes
Unread 12-23-12, 01:58 PM   #1
Spyro
A Deviate Faerie Dragon
 
Spyro's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2011
Posts: 14
Question 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?
Spyro is offline   Reply With Quote
Unread 12-23-12, 02:01 PM   #2
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Mod
Featured
Join Date: Sep 2008
Posts: 1,170
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.
Haleth is offline   Reply With Quote
Unread 12-23-12, 02:10 PM   #3
Spyro
A Deviate Faerie Dragon
 
Spyro's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2011
Posts: 14
Thumbs up

Thx for the instant response
Spyro is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » How to draw an horizontal line?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off