View Single Post
05-30-11, 01:06 PM   #317
alpmave
A Defias Bandit
Join Date: May 2011
Posts: 2
Originally Posted by red8981 View Post
Hi, I am trying out litepanels which means i am new =P
I am trying to attach a box on to my stance bar and i am using bartender.
what would the parent name be?
and same as dominos, =P
thanks

I´ve reworked my whole Interface with litepanels only a few days ago and made panels for my actionbars as well.

Because my Actionbars are at the bottom of the screen, i anchored the mainpanels to the bottom and positioned it from there using x_off and y_off.
if you want to use borders, you can set the parent of these borders to the main panels.


For example:
My main Panel is named "Mitte" and i have a top border named "MitteBorderUp" and a border at the bottom of "Mitte" named "MitteBorderDown". I set them both "parent_to = "Mitte" and anchored them to TOP/BOTTOM.

Code:
lpanels:CreateLayout("ActionBar",{
	{	name = "Mitte",
		anchor_to = "BOTTOM",
		y_off = 35,
		width = 300,
		height = 55,
		bg_color = "0 0 0",
		bg_alpha = 0.4,
	},
	{	name = "MitteBorderUp", parent = "Mitte",
		anchor_to = "TOP",
		width = "100%",
		height = 1,
		bg_color = "0 0 0",
		bg_alpha = 1,
	},
	{	name = "MitteBorderDown", parent = "Mitte",
		anchor_to = "BOTTOM",
		width = "100%",
		height = 1,
		bg_color = "0 0 0",
		bg_alpha = 1,
	},
	{	name = "MitteRechts", parent = "Mitte",
		anchor_to = "RIGHT",
		--y_off = 200,
		x_off = 150,
		width = 150, height = 55,
        gradient = "H",
        bg_color = "0 0 0", gradient_color = "0 0 0",
        bg_alpha = 0.4, gradient_alpha = 0,
	},
	{	name = "MitteRechtsBorderUp", parent = "MitteRechts",
		anchor_to = "TOP",
		width = "100%",
		height = 1,
		gradient = "H",
		bg_color = "0 0 0", gradient_color = "0 0 0",
        bg_alpha = 0.8, gradient_alpha = 0,
	},
	{	name = "MitteRechtsBorderDown", parent = "MitteRechts",
		anchor_to = "BOTTOM",
		width = "100%",
		height = 1,
		gradient = "H",
		bg_color = "0 0 0", gradient_color = "0 0 0",
        bg_alpha = 0.8, gradient_alpha = 0,
	},
	{	name = "MitteLinks", parent = "Mitte",
		anchor_to = "LEFT",
		--y_off = 200,
		x_off = -150,
		width = 150, height = "100%",
        gradient = "H",
        bg_color = "0 0 0", gradient_color = "0 0 0",
        bg_alpha = 0, gradient_alpha = 0.4,
	},
	{	name = "MitteLinksBorderUp", parent = "MitteLinks",
		anchor_to = "TOP",
		width = "100%",
		height = 1,
		gradient = "H",
		bg_color = "0 0 0", gradient_color = "0 0 0",
        bg_alpha = 0, gradient_alpha = 0.8,
	},
	{	name = "MitteLinksBorderDown", parent = "MitteLinks",
		anchor_to = "BOTTOM",
		width = "100%",
		height = 1,
		gradient = "H",
		bg_color = "0 0 0", gradient_color = "0 0 0",
        bg_alpha = 0, gradient_alpha = 0.8,
	},
}); lpanels:ApplyLayout(nil, "ActionBar")
  Reply With Quote