View Single Post
09-13-08, 12:18 PM   #4
STonEDSTonE
A Defias Bandit
 
STonEDSTonE's Avatar
Join Date: Sep 2008
Posts: 3
Originally Posted by Taffu View Post
It doesn't have to be that complex, he's using multiple panels for one ChatFrame. You should be able to simply add the following to the "OnUpdate" script of the panel you want to use backing the ChatFrame:

Code:
local width, height = ChatFrame1:GetWidth(), ChatFrame1:GetHeight()
this:SetWidth(width)
this:SetHeight(height)
I don't remember off the top of my head if kgPanels can use both "this" or "self", try "self" first to see if that works. Parent it to the ChatFrame you're backing (make sure if it's not ChatFrame1, you use the proper #...ie. ChatFrame3, etc).

The only other thing you need to do is make sure you anchor it according to the growth of the ChatFrame animation. By default, MiniChat minimizes "down", so you would want the panel anchored to the bottom of the chat frame. Otherwise it won't "grow" correctly. Also, I've found for them to look right, you sometimes have to add a bit of a buffer to the panel size to avoid the panel settling inside the "chat threshold" of the ChatFrame.
Thanks 4 ur help .. It works .. but the panel minimizes in the middle .. u said sth. about the anchor .. but I don't know how to do that .. it would be wonderful if u could help me with that.
Thanks 4 evrything STonED STonE


Edit: ok I figured that out .. it works .. but the chatframe is always bigger than the layer .. how can I adjust that?
__________________
!!! Gotta new Shisha !!!

Last edited by STonEDSTonE : 09-13-08 at 07:22 PM.
  Reply With Quote