Monday, April 16, 2012

LF the API to toggle the Mounts tab in the Character frame

I know the API, ToggleCharacter("PetPaperDollFrame") toggles the Character frame, Pets tab. But in Wrath and the Test servers, the Pet tab itself has a Companions tab and a Mounts tab; the above API displays the Companions. Does anyone know how to toggle the Mounts tab directly?

Thanks,

Joejanko|||Maybe you can find it here.

http://wowcompares.com/3029038/Frame...rDollFrame.lua|||Looks like this might work:


Code:
PetPaperDollFrame_SetTab(3)

It's a bit of a guess though, based on the code linked above.|||Thanks, Jumpy and Tunga. I'll give it a shot.



Joejanko|||Quote:








Looks like this might work:


Code:
PetPaperDollFrame_SetTab(3)

It's a bit of a guess though, based on the code linked above.




Tried it, but it didn't work.|||You may need to show the frame as well. But to be honest it was a hopefuly guess and nothing more.|||Quote:








You may need to show the frame as well. But to be honest it was a hopefuly guess and nothing more.




And it was a good guess. If I can't call it directly, I may need to call the Pets frame, then display the Mounts tab with additional code.



UNLESS anyone else knows how to do it with "Toggle". Anyone?|||Doh! Can you tell I'm new at this? Tunga, you were right-- your suggestion just needed to follow my API:

ToggleCharacter("PetPaperDollFrame");

PetPaperDollFrame_SetTab(3);

It's working perfectly. Thanks again.

Joejanko|||Ah sorry, that's what I meant by:


Quote:




You may need to show the frame as well.




I wasn't very clear though.

Anyway, glad you got it working :) .|||Quote:








Tried it, but it didn't work.






Try this one...

PetPaperDollFrameTab3:Show()

No comments:

Post a Comment