WoW:API GetSelectedFriend: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(upgraded deprecated template)
Line 1: Line 1:
{{wowapi}}
<center>'''GetSelectedFriend''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
<center>'''GetSelectedFriend''' - ''Documentation by [[User:Flickering|Flickering]]''</center>


Line 12: Line 13:
== 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}}

Revision as of 17:30, 6 January 2007

WoW API < GetSelectedFriend

GetSelectedFriend - Documentation by Flickering

Returns the index of the currently selected friend.

friendIndex = GetSelectedFriend()

Parameters

Returns

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

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