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.
|