Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-07-20, 12:56 PM   #1
Impurity
A Defias Bandit
Join Date: Aug 2018
Posts: 3
Question SendWho and SetWhoToUI Questions

I'm currently working on an addon that uses Who searching. I'm looking to have this done without opening the who result window. Currently I have the following code:

Code:
SetWhoToUI(1)
FriendsFrame:UnregisterEvent("WHO_LIST_UPDATE")
GuildLeader:RegisterEvent("WHO_LIST_UPDATE", "GRAfterWho")
SendWho(ToonLevel)
Perhaps I'm not fully understanding the register and unregister events. My code works and the Who search runs and I'm able to parse and manipulate the data but I've found that afterwards if I try to use /who ingame like normal it doesn't show the result or Who window.

I'm able to resolve it by opening the who window manually (pressing O) and after that my ingame /who commands work.

Is anyone able to point me in the right direction as to what I'm doing wrong? I can post more of the code if necessary or speak on Discord if that's any easier.

Thanks for any help you can provide!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » SendWho and SetWhoToUI Questions


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off