WoW:API GetSelectedFriend: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetSelectedFriend to API GetSelectedFriend without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center>'''GetSelectedFriend''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}


Returns the index of the currently selected friend.
Returns the index of the currently selected friend.
Line 12: Line 12:
== Details ==
== Details ==
: This function is necessary because indexes can change in response to friend status updates.
: This function is necessary because indexes can change in response to friend status updates.
----
{{WoW API}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetSelectedFriend

Returns the index of the currently selected friend.

friendIndex = GetSelectedFriend()

Parameters[edit]

Returns[edit]

friendIndex
friendIndex
Integer - The index (1-based) of the friend which is currently selected (highlighted) on the friend list. Will return 0 if you have no friends.

Details[edit]

This function is necessary because indexes can change in response to friend status updates.