Thread Tools Display Modes
04/05/23, 08:55 AM   #1
Dekakaruk
AddOn Author - Click to view addons
Join Date: Jan 2023
Posts: 1
Get active Customized Actions

I'm trying to get a list of all active collectibles. Till now it was done by calling GetActiveCollectibleByType on every known CollectibleCategoryType constant. But now I'd like to add a support for customized actions, which seem not to use this system. Already tried to blindly put PlayerFxWhileHarvestingType as argument or using other functions like GetCollectiblePlayerFxWhileHarvestingType, which of course didn't work. How do I then check which Actions are active?
  Reply With Quote
04/05/23, 10:15 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,963
Did you check the ZO_COLLECTIBLE_DATA_MANAGER object's function, maybe it provides that already.
Inspect it via zgoo or merTorchbug to see it's functions (maybe hidden below inheietd calsses at the __index metatables!).

Or check the ZOs code:
/ingame/collections/collectibledatamaneger.lua

https://github.com/esoui/esoui/tree/...me/collections


It says as comment e.g. EVENT_COLLECTIBLE_UPDATED fires when a nickname changes or a collectible is set as active/inactive. It does not encompass unlock state changes.

This calls ZO_COLLECTIBLE_DATA_MANAGER:OnCollectibleUpdated
So maybe check that func where it write the active colelctibles to and read it from there.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Get active Customized Actions


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