WoW API < ToggleFriendsFrame

"I" iconThis 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 | edit source]

Arguments[edit | edit source]

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

Returns[edit | edit source]

nil

Example[edit | edit source]

ToggleFriendsFrame(3)

Result[edit | edit source]

If the friends frame was already open, this closes the frame.
If it was not already open, it is opened at the guild tab.
Community content is available under CC-BY-SA unless otherwise noted.