WoW:API SetWhoToUI: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(→‎Arguments: - Changed string to number. Must have been tired as i wrote it the first time ;))
 
m (Added note to unregister event from FriendsFrame)
Line 14: Line 14:


=== Notes ===
=== Notes ===
:During my experiments with this function, the Who dialog still popped up. However, this can be avoided by using FriendsFrame:Hide();
:During my experiments with this function, the Who dialog still popped up. However, this can be avoided by using FriendsFrame:Hide(); or a combination of FriendsFrame:UnregisterEvent("WHO_LIST_UPDATE"); and FriendsFrame:RegisterEvent("WHO_LIST_UPDATE");


__NOTOC__
__NOTOC__
{{Template:WoW API}}
{{Template:WoW API}}

Revision as of 04:27, 14 January 2006

SetWhoToUI - Documentation by Noccy
SetWhoToUI(state);
Sets where the result of a API SendWho request will be handled.

Parameters

Arguments

(State)
State
Number - If set to 1, the result of a SendWho will always be returned as a WHO_LIST_UPDATE event. If set to 0 then the result of a SendWho will be returned as a CHAT_MSG_SYSTEM if the list is short, but as a WHO_LIST_UPDATE if the list is long. (from WoW forums)

Returns

Nothing.

Notes

During my experiments with this function, the Who dialog still popped up. However, this can be avoided by using FriendsFrame:Hide(); or a combination of FriendsFrame:UnregisterEvent("WHO_LIST_UPDATE"); and FriendsFrame:RegisterEvent("WHO_LIST_UPDATE");


Template:WoW API