Thread Tools Display Modes
Prev Previous Post   Next Post Next
05/04/23, 11:49 AM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Question Addon compatibility with other addons

Hey guys,

Im beginning to look into compatibility for my addon with other major popular ones and could use some pointers.

Fort example i've found an issue with my auto banking and Dolgubon';s lazy writ creator with banking functions. His pulls items out for writs 1st and then mine is throwing them right back in after.

Generally speaking Id like to deal with that on my end but in my head it seems highly complex detecting what his addon is doing from mine and MUCH easier for his addon to temporarily disable my feature and then re-enable it after maybe using one of my global functions?

I literally have a function that could be called to disable mine similar to "function MyFunction(false)" and then true to re-enable it after.

How would another addon call my function and is that even possible? I suspect it is as I've seen something like this for TTC pricing.

Should I approsch Dolgubon and request an addition like:

Code:
If MyAddon ~= nil and MyAddon.savedVariables.autoBank == true then
     MyAddon(function MyFunction(false))-- or something similar
     MyAddon.disabled = true
end

and then when hes done
if MyAddon.disabled == true then
     MyAddon(function MyFunction(true))-- or something similar
     MyAddon.disabled = nil
end
Im not yet the big fish here so I'm not sure if this request would be out of line or something. Sharlikran got all pissy with me for requesting some TTC pricing feature be added to Inventory insight for example. I never understood why and then 2 weeks later I discovered MM was also his addon and it all made sense =p

OR....

Is there a fairly easy way to determine what another addon is actively doing so I can manage my own features accordingly? Actually even a way to detect if the bank was opened by the player or another addon would do the job maybe. I could reuse this for any of my functions that have conflicts but I think my auto banking is going to be the primary issue when other addons take stuff out before my code is run.

Last edited by sinnereso : 05/04/23 at 12:15 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Addon compatibility with other addons


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