Download
(14Kb)
Download
Updated: 06-30-11 01:19 PM
Pictures
File Info
Updated:06-30-11 01:19 PM
Created:06-02-09 02:13 PM
Downloads:27,956
Favorites:173
MD5:

LitePanels  Popular! (More than 5000 hits)

Version: 40200.1
by: Katae [More]

LitePanels is a UI panel art framework aimed for use by both UI authors and advanced users. There is no in-game config. Configuration is done through editing a layout file. Complete documentation is provided in the layout file.

Copy layout_example.lua to layout.lua before use!

Special features:
» Quickly build modular, self-contained, easily sharable, fully customizable UI "panels". Complete with optional text objects and scripts.
» Full scripting capabilities!
» Built-in class coloring; Class Colors supported.
» Automatic panel to parent resizing with height and width percentages.
» Simple viewport functionality.


Enjoy.

Feel free to discuss this addon and/or share your own layouts, scripts, or show off your LitePanels UI in the LitePanels Layout Discussion thread. Please, however, use the addon comments page for bug reporting and feature requests.

40200.1 - 2011-06-30
- 4.2 toc update.

40100.1 - 2011-06-12
- 4.1 toc update.

40000.1 - 2010-10-13
- 4.0 toc update.

30300.2 - 2010-03-24
- Texture method SetTexCoordModifiesRect was removed with 3.3.3 patch. Commented line out to prevent errors.

1.5.2 - 2009-12-08
- 3.3 toc update.
- Some optimizations.

1.5.1 - 2009-11-11
- Error handling added for invalid fonts.

1.5a - 2009-10-11
- Fixed pre-1.5 backwards compatibility.

1.5 - 2009-10-07
- Plugin-like support added.
- New profiles system, see included example layout for info. Although old layouts will continue to work, it is advised that old layouts are converted to the new system.
- Panel borders can now be set to "SOLID" to create a pixel border.
- Panels with a % height/width will now resize based on its anchor_frame; parent secondary.
- New text attribute: outline - (1) thin outline, (2) thick outline. Setting an outline disables the default shadow effect, may be enabled manually.
- New text attribute: mono - True sets font's monochrome flag.
- Misc bug fixes and optimizations.

1.4.1 - 2009-08-17
- CreateFrame hook will load sooner, this should (hopefully) fix many problems with panels not being set to the right parent frame.
- The anchor_frame setting will now recognize existing panels as intended.
- Added support for Class Colors by Phanx.

1.4 - 2009-08-10
- Changed supplied layout filename to layout_example.lua.
- Border support added. See documentation for syntax.
- Percentage width/height rescaling is now on by default, attribute is obsolete.
- Throttling variable created for OnUpdate scripts (self.elapsed)
- Text object references will now be sent through to their string function.
- Layout "character - realm" names are no longer case-sensitive.
- New attribute: anchor_frame (defaults to parent). Sets the panel anchor frame if you'd like to anchor a panel to a frame other than parent while keeping parent's visibility, scale, alpha, etc.
- New script handlers: OnResize, OnDoubleClick, OnMouseDown, OnMouseUp

1.3.2 - 2009-08-04
- TOC updated to 3.2

1.3.1 - 2009-08-03
- Fixed a bug with texture rotate.
- Changed attribute 'active_scale' to 'resize'.
- Added missing attribute 'scale' to documentation.

1.3 - 2009-08-01
- Super duper code optimizations.
- The default value for bg_alpha will no longer be set to 0.0 when tex_file has a value.
- Function text object panels will now correctly adjust its height and width when changed.
- Panels with parents that don't exist will now be attached to the parent when it's created.
- Text shadows will now default to 1. Set shadow to 0 to turn it off.
- New attribute: active_scale (off by default). Panels with a height or width percentage will automatically adjust themselves when the parent's height or width is changed. Usage: `active_scale = true`
- New attribute: inset (defaults to 0). Creates an inset on the panel. Usage: for all sides use `inset=5` or specific `inset={top=5,bottom=5}`. Negative values create a padding effect.

1.2 - 2009-07-08
- Full text object support added, see docs.
- Changed default profile to always load.
- A few code optimizations.

1.1a - 2009-06-30
- DK class coloring fixed.

1.1 - 2009-06-30
- Complete overhaul. Many layout modifications, your old layout will not work without some changes (see documentation).
- Viewport, gradients, and texture art support added.
- Player class color panel setting added.
- User scripting support.
- Better parent handling with other panels.
- May now use height or width as a percentage in reference to its parent frame.

1.0a - 2009-06-02
- Suppressed "LPanels" error when the variable doesn't exist (when layout file is still layout.lua.txt)

1.0 - 2009-06-02
- Initial release.
Optional Files (1)
File Name
Version
Size
Author
Date
Type
40200.1
60kB
06-30-11 01:16 PM
Addon


Post A Reply Comment Options
Unread 03-25-10, 04:29 PM  
Fiercy
A Cyclonian
 
Fiercy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 40
File comments: 142
Uploads: 7
So, I've been as this for a while. I'd love you long time if you can tell me what I'm doing wrong :P

Code:
lpanels:CreateLayout("ProtoTYP3", {
    -- Create a global layout right here
    {   name = "BottomBar",
        parent = "UIParent",
        anchor_to = "BOTTOM",
        y_off = 0,
        width = "100%",
        height = 125,
        tex_file ="Interface\\AddOns\\Ferous Media\\StatusBars\\fer25",
        bg_color = "0.47 0.53 0.6",
        bg_alpha = .82,
        level=0,
    },
    -- A class colored border anchored to the top of the viewport
    {    name = "TopBorder", parent = "BottomBar", 
        anchor_to = "TOP", y_off = 1,
        width = "100%", height = 1,
        bg_color = "CLASS", bg_alpha = 0.5,
    },
    
}) lpanels:ApplyLayout(nil, "ProtoTYP3")
__________________
There are countless ingredients that make up the human body and mind, like all the components that make up me as an individual with my own personality. Sure, I have a face and voice to distinguish myself from others, but my thoughts and memories are unique only to me, and I carry a sense of my own destiny. Each of those things are just a small part of it. I collect information to use in my own way. All of that blends to create a mixture that forms me and gives rise to my conscience.
Report comment to moderator  
Reply With Quote
Unread 03-24-10, 08:23 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by vlakarados
EDIT:
ok, I've edited core.lua and commented out line 182
Code:
panel.bg:SetTexCoordModifiesRect(false)
everything works now and it seems everything is displayed correctly..
So far, this is all that the patch has seem to have broken... I'll push an update soonish, but the above edit is all that is needed.
Report comment to moderator  
Reply With Quote
Unread 03-24-10, 07:49 AM  
vlakarados
An Aku'mai Servant
 
vlakarados's Avatar
AddOn Author - Click to view AddOns

Forum posts: 36
File comments: 145
Uploads: 5
new patch brought me this:
Code:
[2010/03/24 15:48:46-3336-x1]: LitePanels-1.5.2\core.lua:182: attempt to call method 'SetTexCoordModifiesRect' (a nil value)
LitePanels-1.5.2\core.lua:345: in function `Init'
LitePanels-1.5.2\core.lua:364: in function <Interface\AddOns\LitePanels\core.lua:354>

  ---
any suggestions?


EDIT:
ok, I've edited core.lua and commented out line 182
Code:
panel.bg:SetTexCoordModifiesRect(false)
everything works now and it seems everything is displayed correctly..
Last edited by vlakarados : 03-24-10 at 08:13 AM.
Report comment to moderator  
Reply With Quote
Unread 03-18-10, 11:02 PM  
zohar101
A Cyclonian
 
zohar101's Avatar

Forum posts: 43
File comments: 188
Uploads: 0
Originally posted by Katae
I don't personally know of any events or checks that can be done to see if there's no text being displayed. If it can be done, though, it likely can be coded into the panel. So maybe help on doing so can be found in the forums

Sorry I couldn't be of more assistance.
No no that's exactly what I wanted to know. I'll ask around to see if there's an event it can be linked to of course but it saves me a lot of confusion to know it's not something simple and easy to do and I'm just missing it
Report comment to moderator  
Reply With Quote
Unread 03-18-10, 09:52 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by zohar101
Is it possible to create a chat border in litepanels that would fade out when there is no text?
I don't personally know of any events or checks that can be done to see if there's no text being displayed. If it can be done, though, it likely can be coded into the panel. So maybe help on doing so can be found in the forums

Sorry I couldn't be of more assistance.
Report comment to moderator  
Reply With Quote
Unread 03-18-10, 08:02 PM  
zohar101
A Cyclonian
 
zohar101's Avatar

Forum posts: 43
File comments: 188
Uploads: 0
Is it possible to create a chat border in litepanels that would fade out when there is no text?
I have text in my chat set to fade out after a time by default blizz options, and I have set the chat background to completely transparent. Basically once the text fades, it's just an empty space and I wouldn't want a black border encompassing nothing in that case. Is it possibble to link the border fade out to an event in the chat window? Someone recommended litepanels to me but I'm unsure whether to check chat addons for this or graphic mods like this one?
I am currently using Low Memory Chat and it removes all the chat buttons so a simple black frame that fades out when there is no text on the screen would be ideal.
Last edited by zohar101 : 03-18-10 at 08:08 PM.
Report comment to moderator  
Reply With Quote
Unread 03-12-10, 01:16 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by Rolzroyce
I have it set up to create a Vertical gradient on this panel, but the gradient is going the wrong direction. Any way to change this?

Thanks in advance. =]
You can change the direction (up or down) by switching the bg_alpha and gradient_alpha (or color) values.

For example, if you have gradient_alpha=1 and bg_alpha=0, you can change the direction by making bg_alpha=1 and gradient_alpha=0.
Report comment to moderator  
Reply With Quote
Unread 03-12-10, 09:32 AM  
Rolzroyce
A Murloc Raider

Forum posts: 4
File comments: 9
Uploads: 0
Hey Katae,

Love the addon, having a small issue. 99% chance its my fault.

Code:
{    name = "Container4",
	anchor_to = "BOTTOM", 
	y_off = 0,
	x_off = 683,
	width = "28%", 
	height = 200,
        bg_alpha = 0,
    },
    -- Left mid-section of the box
    {    name = "BoxL4", parent = "Container4",
        anchor_to = "LEFT",
        width = "50%", height = "100%",
        gradient = "V",
        bg_color = {0,0,0}, gradient_color = {0,0,0},
        bg_alpha = 0, gradient_alpha = 1,
    },
    -- Top Left gradient line
    {    name = "LineTL4",
        parent = "BoxL4", anchor_to = "LEFT",
        width = 1, height = 200,
        gradient = "V",
        bg_color = {255,255,255}, gradient_color = {255,255,255},
        bg_alpha = 0, gradient_alpha = 1,
    },
    -- Bottom left line
    {    name = "LineBL4",
        parent = "BoxL4", anchor_to = "RIGHT",
        width = 1, height = 200,
        gradient = "V",
        bg_color = {255,255,255}, gradient_color = {255,255,255},
        bg_alpha = 0, gradient_alpha = 1,
    },
It may be a little sloppy, but it works, for the most part. The issue I am having is this:

I have it set up to create a Vertical gradient on this panel, but the gradient is going the wrong direction. Any way to change this?

Thanks in advance. =]
Report comment to moderator  
Reply With Quote
Unread 02-22-10, 09:27 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by dc_roenfanz
Each panel builds off the same basic idea, a semi-trans box, bordered with 1px black, 2px class-color, 1px black (so the whole black-class-black border is 4px wide)

Is there now a cleaner, easier way to do this? Perhaps the panels now support borders?
That's correct, there's four panel attributes to create a border. There's a few uses for the border attribute, but I assume you'll want to use "SOLID" for a solid border. There's border_size which changes the thickness of the border on the inside of the panel, so the edges of the border should stay within the set panel width. Then there's border_color and border_alpha which are obvious.

So yeah, you can get rid of all those 1-2px border panels and use the simple border attribute. EDIT: Although, for multiple borders as you have, you'll need to do some parenting trickery (i.e. 100%-2 w/h, 0.0 bg_alpha, etc), which would still be a lot cleaner than individual border panels.

EDIT2: Here's an example that I made from your main panel. Didn't test it, so it may or may not be perfect.
Last edited by Katae : 02-22-10 at 10:00 PM.
Report comment to moderator  
Reply With Quote
Unread 02-22-10, 08:31 PM  
dc_roenfanz
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 38
Uploads: 3
Jumped back into WoW again, and of course, needed to update my AddOns. I was able to modify some 6 months old code to use the new(er) LitePanels config, without too much trouble, but I still feel it's a bit hefty.

Each panel builds off the same basic idea, a semi-trans box, bordered with 1px black, 2px class-color, 1px black (so the whole black-class-black border is 4px wide)

Is there now a cleaner, easier way to do this? Perhaps the panels now support borders?

It's rather long, so instead I'll just post a link to a paste of it: MistUI LitePanels config
Report comment to moderator  
Reply With Quote
Unread 02-22-10, 04:39 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by xandora
What am I missing? :S
All panel tables belong in one parent table:
Code:
lpanels:CreateLayout(nil, "Viewport", {
    { panel stuff }, { more panel stuff }, { etc. }
},
{ viewport vars })
Report comment to moderator  
Reply With Quote
Unread 02-22-10, 06:43 AM  
xandora
A Chromatic Dragonspawn
 
xandora's Avatar

Forum posts: 188
File comments: 51
Uploads: 0
Been a while since I've played with Litepanels, so I'm running into trouble with getting a viewport + gradient working.

I want to create a viewport of about 50 high, that then runs into a gradient of another 50.

This is what I've got so far. The viewport works fine, and I know it's NOT gonna give me that 50 + 50, but I'm having trouble getting the gradient to show at all.

What am I missing? :S

Code:
lpanels:CreateLayout("Viewport", 
	{
	anchor_to = "BOTTOM",
	width = "100%", height = 50,
	x_off = 0, y_off = 50,
	gradient = "V",
	bg_color = "CLASS", gradient_color = "CLASS",
        bg_alpha = 0, gradient_alpha = 0.2,
	}, 
	{ bottom = 50, top = 15})
__________________
Report comment to moderator  
Reply With Quote
Unread 01-24-10, 07:32 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by shinchih2001
e.g. attack power,Melee Hit%,Spell Crit%..........etc
PanelLayout can show all of character's stats??
or "litestats" can show tags??
Right, Litestats has the capacity for player stat tags. You could use that or take what you need from the addon
Report comment to moderator  
Reply With Quote
Unread 01-23-10, 09:12 PM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 198
Uploads: 0
Originally posted by Katae
I don't exactly follow here, what is it that you need?
e.g. attack power,Melee Hit%,Spell Crit%..........etc
PanelLayout can show all of character's stats??
or "litestats" can show tags??
Last edited by shinchih2001 : 01-23-10 at 09:15 PM.
Report comment to moderator  
Reply With Quote
Unread 01-23-10, 03:54 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by shinchih2001
would you mind help to create a panellayout
to show "all" of player state tags
I don't exactly follow here, what is it that you need?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.