I am going through a previous function list before the current Beta build, but is a Beta list, and the current Beta build's list and trying to show changes.
Some of the noticeable changes:
*Added Focus Frame
*Changes to Threat Meter Frame
*print, getprinthandler, setprinthandler Functions available
*Changes to Vehicle Frame
I will update this if they add a significant patch during 8-27-08's maintenance.
Now comparing changes in function list from 8820 to 8885
Functions added were "forceinsecure" and "tostringall"
Most function name changes were in the context of animation and similar. Calendar has some function name changes, and Vehicle frames have changed. Other added functions were just to help Blizzard debug.
ToggleTalentFrame() will show the frame.
I'm not sure you can go straight to the Pet Talent Frame,
but checking for PlayerTalentFrameType2:IsVisible()
should allow you to select the proper tab with
PanelTemplates_SetTab(PlayerTalentFrame, pettab)
(not sure what number 'pettab' would be, but little experimentation should find out)
Intriguing. Thanks for the suggestion. I've fiddled around a bit, but...how would one go about finding a number for PETTAB?
I don't think it's a Tab though, as when I run GetNumTalentTabs it returns 3.
I've noticed the functions seem to carry an extra parameter specifying whether we're looking at pet talents. So GetNumTalentTabs(false, false) returns 3 and GetNumTalentTabs(false, true) returns one.
Next the GetTalentTabInfo(1,false,false) returns the first player talent tab, whereas GetTalentTabInfo(1,false,true) returns the pet talent tab.
This construction works
ToggleTalentFrame()
if PlayerTalentFrameType2:IsVisible() then
PlayerTalentFrameType_OnClick(PlayerTalentFrameType2)
end