Looking at the Talent Frame's code to show the pet talent frame, you should duplicate the code in PlayerTalentFrameType_OnClick() but remove the conditionals and make it directly as if the pet button was pressed. Although, you should provide the code to detect if the button would be shown, (HasPetUI()), and the conditionals for if the talent frame is shown to open it and if the talent frame is shown and so is the pet tab to close it.
The conditional for HasPetUI() is if it will not show any data because your pet is not out.
Last edited by LBXZero : 09-02-08 at 11:39 AM.
|