LitePanels
This is the official discussion thread for LitePanels. Feel free to submit your own scripts, layouts, or general questions here. Please use the addon's comments for bug reporting and feature requests. What is LitePanels exactly? It's basically a framework for quickly building and editing panel art and scripts from a layout file. LitePanels has no GUI configuration. Full documentation is provided in the default layout.lua file. Who should use it? UI compilation authors, anyone who wants a more open way to edit layouts, or anyone with a slight programming background or willing to learn. There's a slight learning curve, but once understood what a layout should look like, panels can be created quickly and shared easily. Tutorials » Getting Started » Using Art Textures and Viewport » Gradients, Text, and Script Examples Plugins » LiteStats - Conceptual data text addon. User Scripts, UIs » Skarj: Skaarj UI » bluenjoy: BluenJoyUI » Aesh: NeoClassic » Minerv: KUI » Dajova: Dajova UI mini » Katae: Buff Watch Please notify me to add your link to this list. Development by myself has ceased, any interested individuals may fork me @ github to fix bugs or update patch compatibility. |
Gradients with a stats display
I'll start with some scripts I've been using. This is the same layout code I used for the stats display, copy and paste this into the default or your character's profile. This also demonstrates the built-in class coloring. If you want to only use the gradient box, you could remove the stats panel (name = "Stats") and tweak the dimensions, locations, and colors. (Font in the screenshot is 04B_03) Code:
lpanels:CreateLayout("Stats", { If you're like me and you have auto-clear afk turned off, you may sometimes unintentionally spam your friends. This functionality is much like LazyAFK. Whether this is useful for you or not, I'm hoping to demonstrate how simple addons can be created with relative ease using this framework. Also note that you may create multiple text objects per frame. Code:
lpanels:CreateLayout("Afker", { |
Nice addon here.
Your AFK example looks a lot like my LazyAFK. I like it! :D |
Quote:
|
I guess i'm too new to messing around with the UI to know how exactly to make this work. I have read the documentation but still am very lost.
Would it be possible for you to post your complete lua file so I may see what you did where. That way I have something to go one instead of being completely in the dark. |
Quote:
Code:
lpanels:CreateLayout("LayoutName", { Code:
lpanels:ApplyLayout("n:yourchar r:yourrealm", "LayoutName", "AnotherLayout") Next, you'll want to start making your panels. Lets say, for example, you want to make a black bar at the bottom of your UI. You would use something like this panel code inside of your layout, between the first set of {curly braces}: Code:
{ name = "BlackBar", -- names your panel "BlackBar" Code:
-- Your original black bar panel If all was done correctly, you should now have a bar with 2 borders that looks like this. You'll use other attributes from the documentation such as gradients and textures much the same way. You should also note that every single panel attribute has a default value, which are noted in the docs. Hope this has cleared up some things for you! |
Quote:
|
Quote:
Thanks :) Working like a charm now. I will post my layouts when I finish converting them from KG. This is SO much easier to deal with than KG.... Again, thanks a ton for the quick reply. :) /cbuck |
Intercept mouse clicks
Ive been searching for hours to find out how to get the panels to intercept mouse clicks to no avail. the code I'm using doesn't give any errors but doesn't intercept the mouse clicks either, its like its not even there. this is the part im trying to get to work:
{ name = "Right", anchor_to = "BOTTOM", y_off = 300, x_off = 546.5, mouse = false, width = "272", height = 195, bg_color = {0,0,0}, bg_alpha = 1, }, am i using the right code is it in the right place? thanks in advance for any information anyone can give me. Mugs ps: im trying to learn how to write the addons. ive found this a great learning experience. i would prefer for someone to point me in the right direction for finding the information myself through forums, etc instead of just "handing" to me, so to speak. thanks again |
When you set `mouse = true`, this will set the frame to intercept clicks. The same behavior will be default if you give the frame an OnClick, OnEnter, or OnLeave script.
|
Thank you
That was fast. thank you. works like a charm
|
I need some help, cause i can't get this to work >.<
I am trying to switch from Btex to LitePanels, but i'm stuck with the fact that i don't know how to use artwork to make it work with it. I wanna make it look like THIS. Have a idea of how to do it and maybe even supply with the code (i'm a UI supplier, yes, will release this UI when it's done)? |
Quote:
Code:
["Default"] = { Placing art with 3 sections +Viewport The left and right images can both be set to a static width, and the middle image will be stretched to fit any resolution. Code:
lpanels:CreateLayout("Viewport Art x3", { This was a bit easier than 3 since they can all be 25% width. Code:
lpanels:CreateLayout("Art x4", { Only want a simple viewport? This is all you need. Code:
lpanels:CreateLayout("Viewport", nil, {bottom=20, top=20}) |
thx for the fast reply, but actually, it's 4 separated images provided from Btex.
Gonna test the code tomorrow, i'll give ya a shout if it works ;) EDIT: Did a quick testing, but no success... you know any program to merge those 4 images into 1? I have tried paint, but no luck xD |
Great Addon!
|
If you want to put a panel behind its parent frame, you need to set 'level' to 0.
|
... nope, it doesnt work :/
Quote:
|
Katae,
Can you example doing an onupdate resize? One that follows the size of the ChatFrame. Thanks either way! :) :banana: |
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
|
I am having trouble with just a simple black bar on the bottom of the screen showing up. This is the only text in the layout.lua file:
LPanels = { ["Default"] = { }, ["RYUGEN - KORGATH"] = { { name = "BlackBar", anchor_to = "BOTTOM", y_off = 20, width = "100%", height = 30, bg_color = {0,0,0}, bg_alpha = 0.4, }, { name = "BorderTop", parent = "BlackBar", anchor_to = "TOP", -- Anchoring to the TOP of "BlackBar" width = "100%", height = 1, bg_color = "CLASS", bg_alpha = 0.75, }, { name = "BorderBottom", parent = "BlackBar", anchor_to = "BOTTOM", -- Anchoring to the BOTTOM of "BlackBar" width = "100%", height = 1, bg_color = "CLASS", bg_alpha = 0.75, }, }, } This is the code that Katae had posted. The only thing I changed was my Character and Realm (the Name and Realm are spelled correctly). Any suggestions? |
Quote:
It's case sensitive. I suppose I'll change it to not matter in the next update :) |
I tried both upper case as well as just the first letter capitalized. Neither would work.
|
Quote:
|
I went one simpler, and am having the same issue, even with the latest release. Instead of by character, it's defualted.
Here's my pastebin: http://pastebin.com/m6a7d1a1 |
Quote:
http://imgur.com/fgTck.jpg |
It will load the green panel, but not the black one, and I restarted the client several times to be sure.
Resolution: 1920x1200 UI Scale: 0.64 |
Just found your mod. I love what I can do with it.
I just wanted to know if there was a way to create a frame with a curve to the border, and if i can specify only a certain side or sides to curve and where that curve occurs. |
Quote:
|
Another question has occurred to me. When making an image, does it have to be square?
|
Quote:
|
Lovely addon. I like it so far, especially the builtin class coloring.
However, I've got some questions. First, I should include a screenshot so y'all can follow what I'm talking about. As you can see, if you enlarge the image, each panel has the same borders, meaning each whole panel, complete with borders, is about .. 13 different individual panels. Does anyone know of a way to duplicate each "border" without having to replicate all 12 border panels for each parent panel?? Secondly, is it possible to "hook" a panel to another frame, such as the bag frame from Bagnon, so that the panels show up whenever the bags do? |
Quote:
Quote:
|
Gradient Stat Display
Hi. I'm trying to get the gradient stat display working. For some reason it doesn't show up. Could someone tell me what I did wrong or what is missing?
Here is the code http://pastebin.ca/1530171 |
Quote:
|
Gotta say this is one of my favorites. I was having issues with parenting to a couple addons that show up only in combat but I'm hoping the newest push fixed it. Thanks again :)
|
Not strictly related to Litepanels, but it should fit in with a few of the layouts I've seen posted here...
How do I get my chat panels to be completely transparent? Currently have chatter installed if it helps. EDIT: I am using litepanels as my frames/backgrounds. |
Quote:
|
Quote:
|
Actually, it cannot be "disabled" but you can hide it. But I don't know if it is possible with chatter since I'm not using this addon.
I used Prat to change the alpha of the chat frame to 0. Then I locked the chat frames with the default social interface. It's not "disabled" but you won't see it anymore (and be able to click on names, links, etc). ;) |
Katae,
I see that you can add shadows to text, however, you dont allow for changing the shadows text size to generate essentially an outline. Can you add this or is there a way to do it already? |
Quote:
I see that you don't have the support for this so i quickly hacked in support, maybe you can add something like it to the codebase? Would be awesome: Code:
if t.outline == 1 then Then to activate it in your text { } block just do Outline = 1 |
Quote:
|
1 Attachment(s)
I just to start off by saying how much this addon saves in efficiency and time, I love it.
However, I do come with a question (multi-part, unfortunately). The first UI that I ever fell in love with was MazzleUI, and I have been attempting to get the "Target Cave" (img attached at bottom, it's the panel behind the target, center of the bottom frames 'kinda', and on top of minimap). I can't figure out which frame to parent the target cave frame to, and my update script (frame is -supposed to- only be there when a target is selected) is bogus. There was a discussion in the old MazzleUI forums on how to do this with kgpanels, but I can't find it after a few hours of searching (the forums were disbanded a few months ago after Mazzlefizz gave up featured artist status). Hopefully someone who knows what I'm talking about can help (because honestly, I don't have a clue how to describe it). |
Yhor
I'll do my best here, since I don't know what your unitframes are. To accomplish this, you could set the parent frame to your target unitframe, this will make the cave graphic inherit the visibility of your target unitframe. Then set anchor_frame to the frame you want it anchored to. This would remove the need for a script. Alternatively, you can keep it parented where it is and use this OnUpdate: Code:
function(self) |
Thank you, I'll give that a try :). I think my problem was anchoring and parenting to the same object (STUF target frame). I'll edit this post if it works (read, if I do it right).
Edit: Bleh, been at it for a few, I'm sure I'm missing something, but whatever it is I fail to see it. Code:
["Default"] = { |
Quote:
|
2 Attachment(s)
Jeez do I feel lame! Thanks a ton, now to get it sized and updating properly :).
I'm sure I'm all set, and once again, I'm loving this over the alternatives. Edit: Figured I'd at least show the result, so far. SS in attachment :o. |
Hi, im trying to make a bar @ the bottom like on your pic up there.
but it seems like it wont work, here's my pastebin link http://pastebin.com/f76a32170 my screen res is 1280x768 and smallest ui this is teh error i get. "2009/08/30 17:16:55-111-x1]: LitePanels-1.4.1\layout.lua:287: unexpected symbol near ',' ---" |
Minerv
Made changes necessary for it to work here. Note: {CLASS} -> "CLASS", 100% -> "100%", and LPanels brackets surrounding. |
ah great! :D missed some there, ty
|
Hi!
First of all I love your addon. I am having problems with getting a clock to work though. I don't even know how to get started. Any chance you could give me an example or something to work with? |
Quote:
|
Hi,
would have liked to display a panel only when I'm in the raid. How is this possible? |
Quote:
What is the purpose of the frame you want to display? A little more detail will get you much better help :). |
Hey let me just say as many others have thanks for a great little addon, it's nice that it has so much potential without needing to load a ton of other junk, not knocking kgpanels or any other panel addon at all as kg has done a pretty good job at being user friendly and personally I would of been lost if I had picked this up before knowing what I do about kgpanels. Anyways, now that my preamble is out of the way question that hopefully there is an answer to, Let's say I play wow on two seperate computers with seperate resolutions but want the same ui that I have made for myself, is there a way to tell your panels to always place themselves at the same location on the screen regardless of screen resolutions and all that jazz? I will give you an example:
I have two panels one on the right and one on the left and I want them to be positioned let's say 10% away from the side of the screen and bottom of the screen. Instead of me having to have multiple layout files for each screen resolution I just want one and have it adjust. I apologize if this isn't making much sense, I am having a hard time wording it. Anyways hope to hear back and hopefully I have made sense. |
Quote:
Code:
OnLoad = function(self) |
All times are GMT -6. The time now is 10:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI