This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Who interface
Post Reply
Return to board index
Post by
janniie
I was using
SendWho("filter")
and noticed that it opens the "who frame". Is there anyway I can close the frame via wow API? I've tried looking at wowprogramming but havent found anything yet.
Post by
Amemir
You could try adding something like the code below which should close the who frame if it is open.
if WhoFrame:IsShown() then
WhoFrame:Hide()
end
Post by
HighFive
Unfortunately that won't work, since the who frame (which is actually embedded in the friends frame, so you should be closing that one) is only opened after the info from the who request is received - well after the script will have finished executing. (I am assuming your suggestion is adding that code directly after the SendWho call)
The who frame, is opened when the WHO_LIST_UPDATE event fires. You could try to figure out what exactly happens by looking at the
code
, and "fix" it. Or you could just hide the FriendsFrame when WHO_LIST_UPDATE fires (this may or may not be optimal for you).
Post by
GTMistral
http://www.wowpedia.org/Events/W#WHO_LIST_UPDATE
http://www.wowpedia.org/API_SetWhoToUI
I can't help any further, but this is a good track to begin with.
And maybe have a look at Census+ code.
www.warcraftrealms.com
Post by
janniie
Thanks for the help everyone! I figured out the FriendsFrame:Hide() myself by using /framestack. But I ran into the problem HighFive is describing. I did not know about that event so i attached it to the combat log event instead as it fires fairly often
^.^
However I will change that later, when I've had some sleep
:)
Thanks again!
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.