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,985
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 08-14-09, 07:49 AM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by ckramme
Hey,
fantastic work you have done.
I am missing the ability to create a real border, but great that it is being worked on.
I am assuming that I will be able to use my own texture.
Thank you

Full border support is actually in the current version with complete docs in the example layout. I'm currently working on making Litepanels embeddable with a plugin-type interface.

I'd love to hear any more suggestions on how to improve the mod
Report comment to moderator  
Reply With Quote
Unread 08-14-09, 07:27 AM  
karmamuscle
A Cobalt Mageweaver
 
karmamuscle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 205
File comments: 173
Uploads: 1
Hey,
fantastic work you have done.
I am missing the ability to create a real border, but great that it is being worked on.
I am assuming that I will be able to use my own texture.
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 09:44 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by healdropper
But now i have another little problem, how to make a border for this panel?
Border support is working in the next version, just working out some kinks. Check back in the next couple days.

You may also make a psudo-border with 1 x 100% height/width panels anchored to the top/bottom/left/right parent panel. Like so.
Last edited by Katae : 08-11-09 at 07:50 AM.
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 09:13 PM  
healdropper
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
thanks! now works perfectly.

But now i have another little problem, how to make a border for this panel?


Code:
-- sThreatMeter2

    { name = "Threat",},
    { require = "sThreatMeter2", 
    OnLoad = function(self) 
    if not sThreatMeterBar1 then self:Hide() end -- hide panel when bars aren't shown on ui load
    self:RegisterEvent("PLAYER_REGEN_ENABLED")
    self:RegisterEvent("PLAYER_REGEN_DISABLED")
    end,
    OnEvent = function(self, event)
    if event == "PLAYER_REGEN_ENABLED" then
    self:Hide()
    elseif event == "PLAYER_REGEN_DISABLED" then
    self:Show()
    end
    end,
    height = 124, 
    width = 210, 
	bg_alpha = 0.2, 
	bg_color = "CLASS",
	anchor_to = "BOTTOMLEFT",
	x_off = 375,
	y_off = 30,
},
Last edited by healdropper : 08-09-09 at 09:15 PM.
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 08:41 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by healdropper
Now the pannel hides correctly, but dont appear when sThreatMeter2 show the aggro bars
Ok I can see the problem, sThreatMeter's frame is always shown and the bars aren't parented to it, so you could possibly hide/show on combat state. This worked for me:
Code:
{ require = "sThreatMeter2", 
  OnLoad = function(self) 
    if not sThreatMeterBar1 then self:Hide() end -- hide panel when bars aren't shown on ui load
    self:RegisterEvent("PLAYER_REGEN_ENABLED")
    self:RegisterEvent("PLAYER_REGEN_DISABLED")
  end,
  OnEvent = function(self, event)
    if event == "PLAYER_REGEN_ENABLED" then
      self:Hide()
    elseif event == "PLAYER_REGEN_DISABLED" then
      self:Show()
    end
  end,
  height = 10, width = 10,
}
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 08:03 PM  
healdropper
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
thank you for responding so fast.

Now the pannel hides correctly, but dont appear when sThreatMeter2 show the aggro bars

sorry if I cant explain better
Last edited by healdropper : 08-09-09 at 08:33 PM.
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 07:14 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Re: Hide panel

Originally posted by healdropper
i have a panel attached to sthreatmeter2, and I would like to hide this pannel when sthreatmeter2 is not running. but i dont know how to do.
Setting parent to the meter's frame should do the trick:

Code:
{ parent = "sThreatMeter", require = "sThreatMeter2", level = 0,
  width = "100%" height = "100%", inset = -10 }
Last edited by Katae : 08-11-09 at 07:52 AM.
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 06:39 PM  
healdropper
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Hide panel

Hi,

i have a panel attached to sthreatmeter2, and I would like to hide this pannel when sthreatmeter2 is not running. but i dont know how to do.

sorry for my english and thanks in advance
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 09:34 AM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by Silvanaa
Litepanels seems to not be recognizing ASCII symbols that people use in their names, is there a way to force it to recognize them or are they just sol?
I'll just repeat here for others what I said in PM. When using character accents, or any other unicode characters, you must save layout file encoding in UTF-8.
Report comment to moderator  
Reply With Quote
Unread 08-08-09, 06:29 PM  
Silvanaa
A Kobold Labourer

Forum posts: 0
File comments: 15
Uploads: 3
Litepanels seems to not be recognizing ASCII symbols that people use in their names, is there a way to force it to recognize them or are they just sol?
Report comment to moderator  
Reply With Quote
Unread 08-02-09, 04:46 PM  
Dajova
A Wyrmkin Dreamwalker
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 58
File comments: 787
Uploads: 5
hmm, thinking of going for this from Btex (since it only saved settings per character), but i wonder...
__________________
Livestream | Twitter | YouTube
Report comment to moderator  
Reply With Quote
Unread 07-30-09, 02:59 PM  
Unkn
Premium Member
 
Unkn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 258
File comments: 165
Uploads: 2
Newest version works great. I waited a while to download it till I had a couple things up and running perfectly on my UI but now I have and I can't quite figure out why I waited so long.

Thanks
Report comment to moderator  
Reply With Quote
Unread 07-27-09, 02:27 AM  
valygiarth
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Re: Re: Texture Art not showing anymore since 1.2

Originally posted by Katae

edit: This will be fixed to not set bg_alpha to 0.0 if "tex_file" is present... whether or not this functionality is indeed the cause of your problem.
Works like a charm now. Thank you.
Report comment to moderator  
Reply With Quote
Unread 07-23-09, 08:40 AM  
Rolzroyce
A Murloc Raider

Forum posts: 4
File comments: 9
Uploads: 0
Yay for this addon!

Literally took me less than 45 minutes to get the exact result I wanted. No importing, no bloat, nothing but pure awesomocity!

This is what you have done for me!!
Report comment to moderator  
Reply With Quote
Unread 07-12-09, 03:15 AM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by kimboslice
Hi, I'm trying to add a pseudo border to the Gladius class icon, but all I'm getting is a small box on my screen, which is not anchoring tho the gladius icon.
Thanks for posting, it seems the frame you're trying to parent to is created dynamically by Gladius, and not when Gladius is actually loaded. This is an error on my part, I'll get this fixed asap

Btw, tex_coord isn't for inset, there's no inset functionality as of yet.

edit: "Dynamic" panel loading and inset functionality are both working in the latest build, among other fixes.
Last edited by Katae : 08-01-09 at 05:34 AM.
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.