Originally Posted by ImpOfThePerverse
I see there's an event, EVENT_GUILD_HISTORY_CATEGORY_UPDATED, that I could register for. Does it get sent when a new chunk gets delivered in that category? Not sure what the flags it returns mean though so I'm not sure how to use it.
|
From ZOS code:
Event gets registered here:
https://github.com/esoui/esoui/blob/...0C123-L150C140
And calls self: OnCategoryUpdated(guildId, eventCategory, flags)
https://github.com/esoui/esoui/blob/...nager.lua#L154
It creates categoryData here:
local categoryData = guildData:GetEventCategoryData(eventCategory)
Which should be an object of ZO_GuildHistoryEventCategoryData
Which should then use (via this call:
https://github.com/esoui/esoui/blob/...nager.lua#L158) this function here:
ZO_GuildHistoryEventCategoryData:OnCategoryUpdated(flags)
https://github.com/esoui/esoui/blob/..._data.lua#L365
-> ZO_FlagHelpers.MaskHasFlag(flags, GUILD_HISTORY_CATEGORY_UPDATE_FLAG_REFRESHED)
GUILD_HISTORY_CATEGORY_UPDATE_FLAG_NEW_INFO = 2
GUILD_HISTORY_CATEGORY_UPDATE_FLAG_REFRESHED = 4
GUILD_HISTORY_CATEGORY_UPDATE_FLAG_RESPONSE_RECEIVED = 1
Hope this helps with finding what the flags are and do.
For every other question you go there, I geuss somene more experienced with that guild history needs to step in here.