Thread Tools Display Modes
07/10/15, 02:24 AM   #1
Meai
 
Meai's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2015
Posts: 13
Event for selecting guild?

Have been trying to find the event for when the user changes the guild in the combobox on the guild window. Closest thing I can find is EVENT_GUILD_DATA_LOADED but that doesn't seem to be it.

Anyone know how to catch or hook it so I can just my code when the guild is changed?
  Reply With Quote
07/10/15, 02:44 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,579
The guild selection is using a callback.
You can hook into it with the following code:
Lua Code:
  1. CALLBACK_MANAGER:RegisterCallback("OnGuildSelected", function()
  2. local guildId = GUILD_SELECTOR.guildId
  3. -- your code
  4. end)
  Reply With Quote
07/10/15, 04:07 AM   #3
Meai
 
Meai's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2015
Posts: 13
You sir, are the man!

Works like a charm, thanks so much!

edit: Didn't know you were the one that made AwesomeGuildStore... used your addon A LOT for examples... thanks again so much for the help!

Last edited by Meai : 07/10/15 at 04:08 AM. Reason: Just added a ps.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Event for selecting guild?


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