Category: Graphic UI Mods
Addon Information
Works with 3.3
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
1.5.2
Date:
12-08-2009 04:05 AM
Size:
13.37 Kb
Downloads:
7,866
Favorites:
122
MD5:
Pictures
Click to enlarge
pally alt + viewport + textures + stat scripts
Fully scriptable text objects
Gradients with built-in class coloring (priest)
Yay, panels!
LitePanels   Popular! (More than 5000 hits)
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:
» Easy and fast to create and share layouts
» Multiple text objects per panel
» Built-in class coloring
» Automatic panel/parent resizing
» Viewport functionality

Enjoy.

Feel free to discuss this addon or share your own layouts and scripts in the LitePanels Layout Discussion thread.
  Change Log - LitePanels
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 - LitePanels
File Name
Version
Size
Author
Date
Type
0.9.10a
59kB
01-29-2010 08:24 PM
Addon
  Archived Versions - LitePanels
File Name
Version
Size
Author
Date
1.5.1
13kB
Katae
11-11-2009 09:39 AM
1.5a
13kB
Katae
10-12-2009 04:06 AM
1.5
13kB
Katae
10-07-2009 09:31 PM
1.4.1
10kB
Katae
08-18-2009 05:57 AM
1.4
10kB
Katae
08-10-2009 09:58 AM
1.3.2
9kB
Katae
08-04-2009 06:47 PM
1.3.1
9kB
Katae
08-03-2009 04:50 AM
1.3
9kB
Katae
08-01-2009 09:00 AM
1.2
8kB
Katae
07-08-2009 12:39 PM
1.1a
6kB
Katae
06-30-2009 11:41 PM
1.1
6kB
Katae
06-30-2009 08:36 PM
1.0a
2kB
Katae
06-03-2009 01:16 AM
1.0
3kB
Katae
06-02-2009 04:39 PM
  Comments - LitePanels
Post A Reply Comment Options
Old 01-24-2010, 08:32 PM  
Katae
A Chromatic Dragonspawn
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 171
File comments: 184
Uploads: 5
Quote:
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
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-23-2010, 10:12 PM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 139
Uploads: 0
Quote:
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-2010 at 10:15 PM.
shinchih2001 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-23-2010, 04:54 PM  
Katae
A Chromatic Dragonspawn
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 171
File comments: 184
Uploads: 5
Quote:
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?
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-23-2010, 03:45 PM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 139
Uploads: 0
would you mind help to create a panellayout
to show "all" of player state tags
shinchih2001 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-18-2010, 03:10 AM  
Eckdahl
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Re: Re: Framing my buffs

Thank you! Figuring out how to actually get the buff count was catching me up.
Eckdahl is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-17-2010, 09:49 PM  
Katae
A Chromatic Dragonspawn
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 171
File comments: 184
Uploads: 5
Re: Framing my buffs

Quote:
Originally posted by Eckdahl
Is it possible to create a panel which would resize depending on how many buffs are on the player?

Here's the logic I'm looking for:
Here's what I got from your parameters, it's obviously not the whole panel config, but the scripts themselves should work:
Code:
OnLoad = function(self)
    self:RegisterEvent("UNIT_AURA")
end,
OnEvent = function(self, event, ...)
    local unit = "player"
    if unit ~= ... then return end

    -- define aura dimensions here
    local columns, height, width = 12, 32, 32

    local count = 0
    while UnitBuff(unit, count+1) do count = count+1 end

    -- horizontally oriented resizing algorithms
    self:SetHeight(ceil(count/columns)*height)
    self:SetWidth(count<=columns and count*width or columns*width)
end

Last edited by Katae : 01-18-2010 at 11:54 AM.
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-16-2010, 09:28 PM  
Eckdahl
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Framing my buffs

Is it possible to create a panel which would resize depending on how many buffs are on the player?

Here's the logic I'm looking for:

height = 32
width = 32
numbuffs = 0

if (numbuffs < 12 ) {
height = 32,
width = numbuffs * 32} else
{
height = 64
width =12*32}

Last edited by Eckdahl : 01-16-2010 at 09:32 PM.
Eckdahl is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-02-2010, 11:10 AM  
Gylindor
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Quote:
Originally posted by Katae
It should only be showing on Politig on that realm, that's a little odd...
I had a similar problem, running 2 profiles, everything was fine before Christmas, then all went pear shaped after. How I had them set up, was that one profile loaded on my main server, another loaded on other servers or for shaman:

lpanels:ApplyLayout("-r:turalyon -c:shaman","layout2")
lpanels:ApplyLayout("r:turalyon c:shaman","layout1")

To fix this little problem I've changed the above to:

lpanels:ApplyLayout("-r:turalyon -c:shaman","layout2")
lpanels:ApplyLayout("r:turalyon","layout1")
lpanels:ApplyLayout("c:shaman","layout1")

What was happening prior to me making this change, was that on my main server (turalyon) both layouts would load, while on other servers it worked how it was ment to. The weird thing is that this problem only started happening after I had a 4 day break over Christmas....I hadn't updated/changed anything since then.

Last edited by Gylindor : 01-02-2010 at 11:15 AM.
Gylindor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-22-2009, 02:34 AM  
Katae
A Chromatic Dragonspawn
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 171
File comments: 184
Uploads: 5
Quote:
Originally posted by Politig
Thanks! I was a little confused on the use of commas in the coding, as well as character specificity. Using that code, it should only appear on Politig, right? It shows up on all of my alts as well. It's not a problem, I'm just curious.
It should only be showing on Politig on that realm, that's a little odd...
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-20-2009, 11:45 AM  
Politig
A Murloc Raider

Forum posts: 6
File comments: 267
Uploads: 0
Quote:
Originally posted by Katae
Comma missing, I edited my post.
Thanks! I was a little confused on the use of commas in the coding, as well as character specificity. Using that code, it should only appear on Politig, right? It shows up on all of my alts as well. It's not a problem, I'm just curious.
Politig is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-20-2009, 02:24 AM  
Katae
A Chromatic Dragonspawn
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 171
File comments: 184
Uploads: 5
Quote:
Originally posted by Politig
I copied and pasted that, and got:
Comma missing, I edited my post.
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-19-2009, 11:55 PM  
Politig
A Murloc Raider

Forum posts: 6
File comments: 267
Uploads: 0
Quote:
Originally posted by Katae
I copied and pasted that, and got:
Code:
Message: Interface\AddOns\LitePanels\layout.lua:12: '}' expected (to close '{' at line 10) near 'bg_color'
Time: 12/19/09 23:53:01
Count: 1
Stack: 
Locals:
Politig is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-19-2009, 08:21 PM  
Katae
A Chromatic Dragonspawn
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 171
File comments: 184
Uploads: 5
Quote:
Originally posted by Politig
Code:
lpanels:CreateLayout("Test", {
    {    name = "testbar",
         anchor_to = "BOTTOM",
         y_off = 20,
         width = "100%",
         height = 30,
         bg_color = "0 0 0",
         bg_alpha = 0.5,
    },
    {    name = "testbartop", parent = "testbar",
         anchor_to = "TOP",    width = "100%", height = 1,
         bg_color = "CLASS", bg_alpha = 0.75
    }
})
lpanels:ApplyLayout("n:Politig r:Sargeras", "Test")

Last edited by Katae : 12-20-2009 at 02:23 AM.
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-19-2009, 01:01 PM  
Politig
A Murloc Raider

Forum posts: 6
File comments: 267
Uploads: 0
lpanels:CreateLayout("Test")
lpanels:ApplyLayout("n:Politig r:Sargeras", "Test")
{ Name = "testbar",
anchor_to = "BOTTOM",
y_off = 20,
width = "100%",
height = 30,
bg_color = "0 0 0",
bg_alpha = 0.5,
},
{ name = "testbartop", parent = "testbar",
anchor_to = "TOP", width = "100%", height = 1
bg_color = "CLASS", bg_alpha = 0.75
},


That's what I have in my layout.lua just to test out the programming, but it doesn't show anything when I enter the game. After doing a /rl, I get an error message. Please help
Politig is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-15-2009, 09:45 PM  
Tastyfrog
A Deviate Faerie Dragon

Forum posts: 12
File comments: 10
Uploads: 0
i fooled around with it a little and now it works
Tastyfrog is offline Report comment to moderator   Edit/Delete Message 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.




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.