WoW API: ToggleFriendsFrame


WoW API < ToggleFriendsFrame

"I" iconThis function is implemented in Lua here FrameXML/FriendsFrame.lua.


ToggleFriendsFrame(tabIndex)

Opens/closes the friends pane.


ParametersEdit

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.