Fandom

WoWWiki

API ToggleFriendsFrame

104,642pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.


WoW API < ToggleFriendsFrame
Icon-information-22x22This function is implemented by FrameXML in [DEPRECATED http://wowprogramming.com/utils/xmlbrowser/live/FrameXML/FriendsFrame.lua FrameXML/FriendsFrame.lua].


ToggleFriendsFrame(tabIndex)

Opens/closes the friends pane.


Parameters Edit

ArgumentsEdit

tabIndex 
Number - (optional) picks a specific tab in the friends frame
  • 1 = friends tab
  • 2 = who tab
  • 3 = guild tab
  • 4 = raid tab
  • default = last open tab

ReturnsEdit

nil

ExampleEdit

ToggleFriendsFrame(3)

ResultEdit

If the friends frame was already open, this closes the frame.
If it was not already open, it is opened at the guild tab.

Also on Fandom

Random Wiki