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. :) |
I believe you will need something like (sorry only working with LUA not xml)
Lua Code:
to see methods of line http://wiki.esoui.com/Controls#LineControl |
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: Quote:
|
I have tried with:
Code:
<Line name="HeaderSeparator"> |
The default UI just uses a regular texture control.
|
There's a number of line textures. I'll post them tomorrow after work.
|
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. :)
|
Here's the line textures I found:
/esoui/art/miscellaneous/wide_divider_left.dds /esoui/art/miscellaneous/wide_divider_right.dds /esoui/art/progression/ability_line.dds /esoui/art/quest/questjournal_divider.dds So to create the line I do something like (assuming a top level control of MyAddonTLC: Lua Code:
|
Hi,
First of all, thank you very much for your answers. I'm trying with: Code:
<Line name="IFTESO_ResearchHeaderSeparator" textureFile="esoui/art/quest/questjournal_divider.dds"> Thanks in advance! ;) |
Could you post your code that creates the line, so we can see it? :)
|
Sorry I forgot to put the code, hehehehe. :p
|
I've not tried using the line control before, so can't offer advice on that.
When I needed a line, I just used the texture control. |
Quote:
|
Put a second anchor for the bottom right. That will help set the bounds for the textures height and width of you divider line.
--Halja |
You added two anchors in your XML. Remove the AnchorFill line.
|
When I remove the AnchorFill line, nothing is displayed.
However I'm going to remake my addon to create a better project and I will create the GUI in Lua. I'll post here if I find problems to implement the horizontal line in Lua. Regards and thank you very much for your answers! :) |
All times are GMT -6. The time now is 11:20 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI