View Single Post
06-24-10, 05:59 PM   #224
Canities
A Wyrmkin Dreamwalker
Join Date: Oct 2007
Posts: 54
Panel height math

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
  Reply With Quote