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) 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! |
You need to set the frame's event handler.
Example: Lua Code:
As a side note, there are a couple misconceptions. C_FriendList.SetWhoToUI() expects a boolean value, you're giving it a number. GuildLeader:RegisterEvent() only takes one argument, the event you're registering. |
Thanks this was a big help, I had to tweak some other stuff but eventually got it all working. Thanks again!
|
All times are GMT -6. The time now is 04:49 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI