WoW:API ToggleFriendsFrame: Difference between revisions
Jump to navigation
Jump to search
(Added the arguments to the call.) |
m (Move page script moved page API ToggleFriendsFrame to API ToggleFriendsFrame without leaving a redirect) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<br>{{framexmlfunc|FrameXML/FriendsFrame.lua}} __NOTOC__ | |||
ToggleFriendsFrame(tabIndex) | |||
Opens/closes the friends pane. | Opens/closes the friends pane. | ||
== Parameters == | |||
===Arguments=== | |||
:''tabIndex'' optional | :;''tabIndex'' : Number - (optional) picks a specific tab in the friends frame | ||
: 1 = friends tab | ::* 1 = friends tab | ||
: 2 = who tab | ::* 2 = who tab | ||
: 3 = guild tab | ::* 3 = guild tab | ||
: 4 = raid tab | ::* 4 = raid tab | ||
: default = last open tab | ::* default = last open tab | ||
===Returns=== | |||
:;nil | :;nil | ||
==Example== | |||
ToggleFriendsFrame(3) | |||
ToggleFriendsFrame(3) | |||
====Result==== | |||
: If the friends frame was already open, this closes the frame. | : If the friends frame was already open, this closes the frame. | ||
: If it was not already open, it is opened at the guild tab. | : If it was not already open, it is opened at the guild tab. | ||
Latest revision as of 04:47, 15 August 2023
← WoW API < ToggleFriendsFrame
- This function is implemented in Lua here FrameXML/FriendsFrame.lua.
ToggleFriendsFrame(tabIndex)
Opens/closes the friends pane.
Parameters[edit]
Arguments[edit]
- 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]
- nil
Example[edit]
ToggleFriendsFrame(3)
Result[edit]
- If the friends frame was already open, this closes the frame.
- If it was not already open, it is opened at the guild tab.