Parenting to bars or unit frames isn't an option, so I need to use scripts to show and hide frames based on whether I have a pet out or a target.
I set up a frame (and a number of extras parented to it) to show when I have a pet and hide when I do not. I've used code that I've used to do this in the past, but now it seems buggy. It'll work, but then if I add more frames, even without scripts on them, it'll just stop working.
if UnitExists("pet") == nil then self:Hide() else self:Show() endAlso... I need to show/hide a frame to fill in a gap when another frame is not present. It appears the best way to do that would be to use "kgPanel#:Show()" in the OnHide script area, and the opposite in the OnShow one, of the other frame... but it seems the # for the frame changes each time I log in. It was 7, then 4, and then 5. Is there a static method to refer to direct a frame from within the script of another? I don't recall these numbers being random in the past.