Thread: kgPanels Help
View Single Post
02-19-10, 09:08 AM   #1
Xhelius
An Aku'mai Servant
Join Date: Jan 2010
Posts: 39
kgPanels Help

Hi All,

I'm trying to set up a kgPanel to resize based on the class/stance bar. I've tried with both BT4 and Dominos using in the OnEvent script:

if not self.resized then
DominosClassBar:SetScript("OnSizeChanged", function(f)
self:SetWidth(f:GetWidth())
self:SetHeight(f:GetHeight())
end)
self:SetWidth(DominosClassBar:GetWidth())
self:SetHeight(DominosClassBar:GetHeight())
end
(above was last used for Dominos.)

And using on the OnLoad:

self.resized = false

and setting the script dependency to Dominos/Bartender4. Seems I'm having trouble getting the bar name correct. I can parent/anchor using Button Names, but won't resize.

Any help or suggestions would be greatly appreciated.
  Reply With Quote