Thread Tools Display Modes
04/25/14, 12:05 PM   #1
Artajörn
Join Date: Apr 2014
Posts: 19
Question How can I add an horizontal line?

Hi,

I would like to add an horizontal line under the header in the window of my addon (like those which appears in the windows of the main menu). Does anyone know how can I do it?

Regards and thanks in advance.
  Reply With Quote
04/25/14, 12:28 PM   #2
Fathis Ules
Thief Guild Master
 
Fathis Ules's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 42
I believe you will need something like (sorry only working with LUA not xml)

Lua Code:
  1. local line  = CreateControl(nil, <youraddonwindowobject>,  CT_LINE)
  2. line:SetAnchor(TOPLEFT, <youraddonwindowobject>, TOPLEFT, 0, 10)
  3. line:SetAnchor(TOPRIGHT, <youraddonwindowobject>, TOPRIGHT, 0, 10)

to see methods of line http://wiki.esoui.com/Controls#LineControl
  Reply With Quote
04/25/14, 12:38 PM   #3
mra4nii
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 42
If is about menu window LibAddonMenu have this, you should use it and make your live easier
If not for menu, try this for header control of your window:
control.controlType = OPTIONS_SECTION_TITLE

Last edited by mra4nii : 04/25/14 at 12:46 PM.
  Reply With Quote
04/27/14, 01:05 PM   #4
Artajörn
Join Date: Apr 2014
Posts: 19
I have tried with:

Code:
<Line name="HeaderSeparator">
	<Anchor offsetY="77" point="CENTER" relativeTo="$(parent)"/>
	<Dimensions x="780" y="10"/>
</Line>
But it's useless.
  Reply With Quote
04/27/14, 01:52 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
The default UI just uses a regular texture control.
  Reply With Quote
04/27/14, 02:56 PM   #6
Stormknight
 
Stormknight's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 128
There's a number of line textures. I'll post them tomorrow after work.
  Reply With Quote
04/27/14, 04:15 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
Or, if you just want a solid color, don't set a texture path and just change the color to what you want it to be.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » How can I add an horizontal line?


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