Events:
https://wiki.esoui.com/Events
Event filters:
https://wiki.esoui.com/AddFilterForEvent
Registering your event callback function:
Lua Code:
local function callbackFuncForThisEvent(eventI, param1, param2)
--do your stuff here
end
EVENT_MANAGER:RegisterForEvent("UniqueNameHere_forExmaple_MyAddon_EVENT_ADD_ON_LOADED", EVENT_ADD_ON_LOADED, callbackFuncForThisEvent)
Unregistering your event callback function if not needed anymore
Lua Code:
EVENT_MANAGER:UnregisterForEvent("SameUniqueNameHereWhchWasUsedToReisterIt_inThisExample_MyAddon_EVENT_ADD_ON_LOADED", EVENT_ADD_ON_LOADED)