I am using Pitbull UFs. I have created panels for player, target, ToT and pet, and parented those panels to their respective frames without a problem. I know that PitBull dynamically creates party frames and so it's not possible to parent the 4 panels I want to have behind each party member. So I wanted to use a lua script to hide/show the individual panels as the party members join and leave. Attaching the following script (and just changing the button variable for each party member panel) doesn't seem to work. The panels are just permanently hidden. Should this work? Any help much appreciated.
function eePanels2:eePanel5_FrameVisibility(self, event, ...)
if UnitExists("PitBullCluster2UnitButton1") then
UnitExists("PitBullCluster2UnitButton1") isn't going to work. UnitExist only checks for "units" (IE: player, target, pet, partymember, etc. Not a frame name). You instead want to call getglobal("PitBullCluster2UnitButton1").
Second, you can't register the same event more than once, so you can't just use this same script for each panel. You would need to combine it all into one script. Look at the post directly above yours.