Quantcast
WoWInterface - View Single Post - Comparing Function Lists in current Beta Build
View Single Post
09-02-08, 11:30 AM   #7
LBXZero
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 61
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.
  Reply With Quote