WoW API: ToggleFriendsFrame

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk) (Move page script moved page API ToggleFriendsFrame to API ToggleFriendsFrame without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


WoW API < ToggleFriendsFrame

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


ToggleFriendsFrame(tabIndex)

Opens/closes the friends pane.


Parameters

Arguments

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

nil

Example

ToggleFriendsFrame(3)

Result

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