Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(14 Kb)
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:23,322
Favorites:182
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


Archived Files (16)
File Name
Version
Size
Author
Date
40100.1
13kB
Katae
06-12-11 02:13 PM
40000.1
13kB
Katae
10-13-10 08:30 PM
30300.2
13kB
Katae
03-25-10 05:12 PM
1.5.1
13kB
Katae
11-11-09 08:39 AM
1.5a
13kB
Katae
10-12-09 02:06 AM
1.5
13kB
Katae
10-07-09 07:31 PM
1.4.1
10kB
Katae
08-18-09 03:57 AM
1.4
10kB
Katae
08-10-09 07:58 AM
1.3.2
9kB
Katae
08-04-09 04:47 PM
1.3.1
9kB
Katae
08-03-09 02:50 AM
1.3
9kB
Katae
08-01-09 07:00 AM
1.2
8kB
Katae
07-08-09 10:39 AM
1.1a
6kB
Katae
06-30-09 09:41 PM
1.1
6kB
Katae
06-30-09 06:36 PM
1.0a
2kB
Katae
06-02-09 11:16 PM
1.0
3kB
Katae
06-02-09 02:39 PM


Post A Reply Comment Options
Unread 09-15-12, 05:15 AM  
Chrajsian
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hey there

Since the new patch, my panels aren't showing anymore.
Anything I need to change?
Chrajsian is offline Report comment to moderator  
Reply With Quote
Unread 09-08-12, 01:08 PM  
Unkn
Premium Member
 
Unkn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 258
File comments: 165
Uploads: 3
It is still fully functioning in MoP. Just check "load out of date addons". There is nothing in LitePanels that would have broken.

I've extensively tested it, with multiple layouts.

Same with LiteStats... with the exception of "talents" module which if you turn it off in the config everything functions just fine.


Hi there!

I finished my left chat background and border. Now I want to continue making one for my right chat, but whener I start writing the code for the right chat background and border - They both disappear!

What am I missing?
Are you naming them differently?

Like this?

Code:
lpanels:CreateLayout("LeftChat", {
    -- Left Chat
    {   name = "LCBG",
        parent = "UIParent",
        anchor_to = "BOTTOMLEFT",
		x_off = 0,
        y_off = 0,
        width = 500,
        height = 200,
        bg_color = "0 0 0",
        bg_alpha = .5,
        level = 0,
		gradient = "HORIZONTAL",
		gradient_color = "0 0 0",
		gradient_alpha = 0,
    },
    -- ClassColored Border Top
    {   name = "LCTopBorder", parent = "LCBG", 
        anchor_to = "TOP",
		y_off = -1,  x_off = 0,
        width = 500, height = 1,
        bg_color = "CLASS", bg_alpha = 1,
		gradient = "HORIZONTAL", gradient_color = "CLASS",
		gradient_alpha = 0, level = 1,
    },
}) lpanels:ApplyLayout(nil, "LeftChat")

lpanels:CreateLayout("RightChat", {
    -- Left Chat
    {   name = "RCBG",
        parent = "UIParent",
        anchor_to = "BOTTOMRIGHT",
		x_off = 0,
        y_off = 0,
        width = 500,
        height = 200,
        bg_color = "0 0 0",
        bg_alpha = .5,
        level = 0,
		gradient = "HORIZONTAL",
		gradient_color = "0 0 0",
		gradient_alpha = 0,
    },
    -- ClassColored Border Top
    {   name = "RCTopBorder", parent = "RCBG", 
        anchor_to = "TOP",
		y_off = -1,  x_off = 0,
        width = 500, height = 1,
        bg_color = "CLASS", bg_alpha = 1,
		gradient = "HORIZONTAL", gradient_color = "CLASS",
		gradient_alpha = 0, level = 1,
    },
}) lpanels:ApplyLayout(nil, "RightChat")
__________________
"I'm very feminine. And I'll beat the crap out of ANYONE who disagrees!"
Last edited by Unkn : 09-08-12 at 01:13 PM.
Unkn is offline Report comment to moderator  
Reply With Quote
Unread 08-29-12, 11:40 PM  
Alexils
A Kobold Labourer

Forum posts: 0
File comments: 28
Uploads: 0
Make you up addon to MoP?
Alexils is offline Report comment to moderator  
Reply With Quote
Unread 08-16-12, 05:44 AM  
Chrajsian
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Made one panel, making new.

Hi there!

I finished my left chat background and border. Now I want to continue making one for my right chat, but whener I start writing the code for the right chat background and border - They both disappear!

What am I missing?

Code:
lpanels:CreateLayout("LeftChat", {
    -- Left Chat
    {   name = "LCBG",
        parent = "UIParent",
        anchor_to = "BOTTOMLEFT",
		x_off = 0,
        y_off = 0,
        width = 500,
        height = 200,
        bg_color = "0 0 0",
        bg_alpha = .5,
        level = 0,
		gradient = "HORIZONTAL",
		gradient_color = "0 0 0",
		gradient_alpha = 0,
    },
    -- ClassColored Border Top
    {   name = "TopBorder", parent = "LCBG", 
        anchor_to = "TOP",
		y_off = -1,  x_off = 0,
        width = 500, height = 1,
        bg_color = "CLASS", bg_alpha = 1,
		gradient = "HORIZONTAL", gradient_color = "CLASS",
		gradient_alpha = 0, level = 1,
    },
}) lpanels:ApplyLayout(nil, "LeftChat")
Chrajsian is offline Report comment to moderator  
Reply With Quote
Unread 01-25-12, 05:40 PM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 201
Uploads: 0
profession info

can help make a layout or module to show like after push button "P" ingame what we can see profession info??
Last edited by shinchih2001 : 01-25-12 at 05:40 PM.
shinchih2001 is offline Report comment to moderator  
Reply With Quote
Unread 12-08-11, 10:25 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Re: OnEvent text display

Originally Posted by cormanthor
Any idea what I'm missing here?
Might be best to ask in the LitePanels forum post; I don't come around here often.

I don't know if you figured out the problem, but the issue is that you cannot set the configuration within a script. You'll have to code what you want to do with the Lua API.

For example,

self.text:SetText(UnitPower("player"))
Katae is offline Report comment to moderator  
Reply With Quote
Unread 11-13-11, 07:52 AM  
cormanthor
A Warpwood Thunder Caller
 
cormanthor's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 94
File comments: 49
Uploads: 1
OnEvent text display

I'm having a bit of an issue getting text to display in an OnEvent or OnUpdate function. This code should render a faded black box out of combat (good so far) with the text showing "testing" at the defaults (not showing). Combat recognition works (the panel goes opaque), but at no time is any text displayed.
Any idea what I'm missing here?
Code:
lpanels:CreateLayout("Death Knight", {
  {	-- extra Runic Power display
  name = "RunicPower", parent = "UIParent", anchor_to = "CENTER", anchor_from = "CENTER", y_off = 100, width = 200, height = 100, level = 0,
  OnLoad = function(self)
    self:RegisterEvent("PLAYER_ENTERING_WORLD")
    self:RegisterEvent("PLAYER_REGEN_ENABLED")
    self:RegisterEvent("PLAYER_REGEN_DISABLED")
    self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
  end,
  OnEvent = function(self)
    if UnitAffectingCombat("player") then
      self:SetAlpha(1.0)
      text = {
        font = "Interface\\AddOns\\ArkInventory\\Fonts\\zekton__.ttf", size = 24, color = "0, 0.5, 0.5",
        string = function(self)
          curPower = UnitPower("player")
          return curPower
        end,
      }
    else
      self:SetAlpha(0.5)
      text = {
        string = "testing"
      }
    end
  end,
  },
})
__________________
Some days it's just not worth chewing through the restraints...
cormanthor is offline Report comment to moderator  
Reply With Quote
Unread 09-23-11, 03:02 PM  
demodavzi
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Question Im maybe a litte newbie.

Hello How do i install it i cant find any where in my wow folder Layout ? .
i just try to copy to addon ( layout_example.lua) and it is not working.
I hope you can help me..
demodavzi is offline Report comment to moderator  
Reply With Quote
Unread 11-15-10, 09:23 PM  
elcapitan
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Originally posted by Katae
There's no panels being applied in the example file, you'll need to apply one of the example layouts to your character, for example:

lpanels:ApplyLayout("n:katae", "Simple Viewport", "Chat Background")
Thanks for clarifying. Worked like a charm!
elcapitan is offline Report comment to moderator  
Reply With Quote
Unread 11-15-10, 08:28 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by elcapitan
I'm having the same problem as Purity. I renamed the file "layout_example.lua" to "layout.lua" (making no changes to the contents of the file) and when the game loads I see nothing. Is there something else that needs to be done?
There's no panels being applied in the example file, you'll need to apply one of the example layouts to your character, for example:

lpanels:ApplyLayout("n:katae", "Simple Viewport", "Chat Background")
Katae is offline Report comment to moderator  
Reply With Quote
Unread 11-15-10, 08:52 AM  
elcapitan
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Originally posted by Katae
You probably have a syntax error somewhere, I could point the problem out if you pastebin it.
I'm having the same problem as Purity. I renamed the file "layout_example.lua" to "layout.lua" (making no changes to the contents of the file) and when the game loads I see nothing. Is there something else that needs to be done?
elcapitan is offline Report comment to moderator  
Reply With Quote
Unread 11-08-10, 04:58 PM  
Purity
A Deviate Faerie Dragon

Forum posts: 16
File comments: 172
Uploads: 0
Was relly excited to use this. I copied teh example and changed name to layout.lua, loaded game and nothing there. I thought there would be some panels for me to tweak or play with my text editor, but nothing shows up. I check to see if addon was loaded and it showing up on addon list.

Is there something extra I am suppose to do to the example to make it work? besides changing the name to layout.lua?
__________________
Purity is offline Report comment to moderator  
Reply With Quote
Unread 08-05-10, 12:06 PM  
Bandes
A Kobold Labourer

Forum posts: 0
File comments: 66
Uploads: 0
Originally posted by Katae
Set the level attribute of the panels to 0 (zero).
THANKS that is it
Bandes is offline Report comment to moderator  
Reply With Quote
Unread 08-04-10, 08:52 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by Bandes
since the update my chat is so dark
Set the level attribute of the panels to 0 (zero).
Katae is offline Report comment to moderator  
Reply With Quote
Unread 07-17-10, 01:12 PM  
Bandes
A Kobold Labourer

Forum posts: 0
File comments: 66
Uploads: 0
Hello
since the update my chat is so dark, (
I wonder what lies on the
Last edited by Bandes : 07-17-10 at 01:13 PM.
Bandes is offline 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.