View Single Post
06-25-10, 12:26 AM   #225
zynix
A Cliff Giant
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 70
Originally Posted by Canities View Post
Hiya Katae,
Loving both LitePanels and LiteStats.
I do however have a query about making a panel that changes size with the chat frame. I'm using chicchai to change the height of the chat frame so i need to be able to do some math on the height, for example i need it to be 100% of the frame height + 35 for the chat tabs.
So far i have my panel coded as:
Code:
	{ name = "Bar10", 
		parent = "UIParent", anchor_frame = "ChatFrame1", 
		anchor_to = "BOTTOMLEFT", anchor_from = "BOTTOMLEFT", y_off = -10, x_off = -5,
		width = 350, height = "100%", -- this is where i need the math to change the height to be 100%+35
		gradient = "H", 
		bg_color = {0,0,0}, bg_alpha = 0.5,
		gradient_color = {0,0,0}, gradient_alpha = 0,
	},
Is there a quick and easy way of applying the math in the panel layout or do i have to do something a little more special?

Thanks for your assistance.

Cani
I'd try and make some panels for the chat tabs, and make them 35pix high
  Reply With Quote