View Single Post
07/02/17, 06:43 PM   #2
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
So, generally anything like EVENT_SOMETHING_HAPPENED is something that was done by the C code. So they are generally fired by things in the game. For example, ability use, fall damage, starting a duel, selling stuff, etc.

On the other hand, stuff to do with the UI does not have an event like the above. So opening the guild window, inventory, collections window, those kind of things generally don't fire an event. These aren't hard rules exactly, but they're general things you can go by. So EVENT_GUILD_DATA_LOADED is (probably) loading all the data of the guilds you are in.


In this case, you're likely looking for the Lua function that is called when you swap guilds, and that handles changing the UI from displaying one guild to another guild. Try using zgoo to look at functions that are in the guild scene or something. You could probably also use zgoo to find the name of the label for the guild, and then overwrite the setText function so it'll throw an error - then you can see which line of code in the esoui code has the function call yuou're looking for.

Once you find the function that's called, you could attempt to hook it to fire an 'event'

Last edited by Dolgubon : 07/02/17 at 06:46 PM.
  Reply With Quote