View Single Post
06-25-10, 04:43 AM   #226
Lordyfrb
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 71
[quote=zynix;193202]
Originally Posted by Dokee View Post
Well.. thats some of the problem, I have no idea what code(s) to use. But I could give you the stripe code for LitePanels if that helps? So basically I just have two of these on each side of all unit frames, and want them hidden when the frames are not shown. (Target, Pet, Target of Target and possibly Party)

Allright, this should fix it:
Code:
	{	name = "LeftPlayerTop", 
		parent = "Stuf.Units.Player", 
		anchor_to = "TOP",
		width = 75, 
		height = 2,
		strata = "LOW",
		bg_color = "0 1 1", 
		bg_alpha = 0, 
		gradient = "H", 
		gradient_color = "0 1 1", 
		gradient_alpha = 1,
	},
	{	name = "LeftPlayerBottom", 
		parent = "Stuf.Units.Player", 
		anchor_to = "BOTTOM",
		width = 75, 
		height = 2,
		strata = "LOW",
		bg_color = "0 1 1", 
		bg_alpha = 0, 
		gradient = "H", 
		gradient_color = "0 1 1", 
		gradient_alpha = 1,
	},
just add a different name for each panel, and change the parent to the frame you want to attach it to, IE:
Stuf.Units.Target for the target
Stuf.Units.Targettarget for ToT
Stuf.Units.Pet for pet
Stuf.Units.Party1 for first party member
Stuf.Units.Party2 for second, and so on.


Remember, always start with a capital letter, in Stuf parents
Originally Posted by Dokee View Post
Hmm.. it's not working, weird. I get no errors or anything but the frame never shows up now. I'll try with some variations and see if I can come out with anything. Do you have any more ideas?
Thanks a bunch for the help btw!

EDIT: Found a much better-looking way, instead of using LitePanels to just add the transparency as a decoration I made fading status bars instead, much more functional for Unit Frame usage. But thanks for the effort in helping me.
the reason it didn't work is the frame names that stuf uses, they should be in the following format:
Stuf.units.'framename'

i.e. for the pet frame its:
Stuf.units.pet

Notice the only capital letter is the S in Stuf, the rest is lower case.
  Reply With Quote