Thread Tools Display Modes
06-19-10, 08:13 PM   #1
Dokee
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 19
Errors are gone now, but I don't get anything on screen now lol.
Guess I'll just fool around a little more and see if something else works
  Reply With Quote
06-20-10, 05:49 AM   #2
Fazer
A Kobold Labourer
Join Date: Mar 2006
Posts: 1
Hi,

Like instead bg_color = "CLASS" use bg_color = "POWER / MANA"
I just need to paint the panel in the color of mana / rage / energy

Thx
  Reply With Quote
06-20-10, 11:24 AM   #3
zynix
A Cliff Giant
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 70
Originally Posted by Dokee View Post
Errors are gone now, but I don't get anything on screen now lol.
Guess I'll just fool around a little more and see if something else works
Fixed it

Code:
lpanels:CreateLayout("TestCake", {
{	name = "BlackBar",
	anchor_to = "BOTTOM",
	y_off = 20,
	width = "100%",
	height = 50,
	bg_color = "0 0 0",
	bg_alpha = 0.5,
}, 
})lpanels:ApplyLayout(nil, "TestCake")
You missed a { } around "all" your panels
didnt get the viewport thing to work though :P
  Reply With Quote
06-20-10, 01:30 PM   #4
Dokee
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 19
Originally Posted by zynix View Post
Fixed it

Code:
lpanels:CreateLayout("TestCake", {
{	name = "BlackBar",
	anchor_to = "BOTTOM",
	y_off = 20,
	width = "100%",
	height = 50,
	bg_color = "0 0 0",
	bg_alpha = 0.5,
}, 
})lpanels:ApplyLayout(nil, "TestCake")
You missed a { } around "all" your panels
didnt get the viewport thing to work though :P
Ah, cheers. Thanks for the help though I dropped that and just started messing about and I finally got the hang of it now. Really loving this addon!
(My new UI is starting to look good!)

Just one quick question though. How easy is oUF scripting compared to this? With a premade layout to work from.
  Reply With Quote
06-20-10, 01:56 PM   #5
zynix
A Cliff Giant
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 70
Originally Posted by Dokee View Post
Ah, cheers. Thanks for the help though I dropped that and just started messing about and I finally got the hang of it now. Really loving this addon!
(My new UI is starting to look good!)

Just one quick question though. How easy is oUF scripting compared to this? With a premade layout to work from.
I don't know about that one, sorry.
Though, i'm eager to try it out myself

EDIT: looked through some code in a oUF layout, i'd say this is much more simple, but i think that once you get the hang of it, it'll be just as easy
  Reply With Quote
06-20-10, 03:05 PM   #6
Dokee
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 19
Originally Posted by zynix View Post
I don't know about that one, sorry.
Though, i'm eager to try it out myself

EDIT: looked through some code in a oUF layout, i'd say this is much more simple, but i think that once you get the hang of it, it'll be just as easy
Sounds allright, might try it out in the upcoming days if I'm not happy with the UF's I'm using on my current UI project.

Always hated some of the restrictions in-game configurable addons had. But never really got myself into oUF or other similiar addons. Guess it's about time for me to get into this stuff. Considering I've been doing interface projects since early vanilla
  Reply With Quote
06-20-10, 04:11 PM   #7
Katae
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 208
Originally Posted by Dokee View Post
Ah, cheers. Thanks for the help though I dropped that and just started messing about and I finally got the hang of it now. Really loving this addon!
(My new UI is starting to look good!)

Just one quick question though. How easy is oUF scripting compared to this? With a premade layout to work from.
I could be wrong, but I don't believe that oUF has a "frame making" functionality built-in, you'd have to make them from scratch (which isn't too hard itself, just not as approachable). I gave (almost) everything a simple API so frames and their attached scripts are easier to write and manage.

By the way: lpanels:CreateLayout({ { panel }, { panel } }, { viewport });

Yeah... A little confusing at first, the syntax isn't too hard to get a hang of though.
  Reply With Quote
06-21-10, 12:08 PM   #8
Dokee
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 19
Another question.
I want a panel to hide when I don't have a target, and show when I have one. I've tried some different things but none seemed to work.
I'm currently using Stuf Unit Frames. Want to use this on the Target, ToT and Pet frames.
Tried parenting it, but i didn't get it to work.
Any ideas?
  Reply With Quote
06-22-10, 09:08 AM   #9
zynix
A Cliff Giant
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 70
Originally Posted by Dokee View Post
Another question.
I want a panel to hide when I don't have a target, and show when I have one. I've tried some different things but none seemed to work.
I'm currently using Stuf Unit Frames. Want to use this on the Target, ToT and Pet frames.
Tried parenting it, but i didn't get it to work.
Any ideas?

Is it a panel to make a background for the frame, or?
  Reply With Quote
06-22-10, 09:37 AM   #10
Dokee
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 19
Originally Posted by zynix View Post
Is it a panel to make a background for the frame, or?
It's basically just a stripe on the left and right side of the frame to make it look nicer. No background, it's more of an extension of the border frame. Or something
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » LitePanels - An art framework


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off