WoW:API ToggleFriendsFrame: Difference between revisions

m
Move page script moved page API ToggleFriendsFrame to WoW:API ToggleFriendsFrame without leaving a redirect
mNo edit summary
m (Move page script moved page API ToggleFriendsFrame to WoW:API ToggleFriendsFrame without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''ToggleFriendsFrame''' ''-Documentation by AlexanderYoshi, updated by Suru-''</center>
<br>{{framexmlfunc|FrameXML/FriendsFrame.lua}} __NOTOC__
 
 
ToggleFriendsFrame(tabIndex)


Opens/closes the friends pane.
Opens/closes the friends pane.


ToggleFriendsFrame(tabIndex);


----
== Parameters ==
;''Arguments''
===Arguments===


:''tabIndex'' optional - picks a specific tab in the friends frame
:;''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===
;''Returns''


:;nil
:;nil


----
==Example==
;''Example''
  ToggleFriendsFrame(3)
  ToggleFriendsFrame(3);


;''Result''
====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.
----
;''Description''
: Opens/closes the friends pane.
----
{{Template:WoW API}}
[[Category:API Functions|ToggleFriendsFrame]]
[[Category:API Friend Functions|ToggleFriendsFrame]]
[[Category:API Toggle Functions|ToggleFriendsFrame]]
Anonymous user