View Single Post
01/20/18, 06:08 AM   #5
Haaxor1689
 
Haaxor1689's Avatar
Join Date: Dec 2017
Posts: 9
Originally Posted by votan View Post
You can have a look at http://www.esoui.com/downloads/info9...eTooltips.html. There I read the values from QuickEnchanter, if present.

Basically, due to DependsOn, the AddonLoaded callback is called for the other addon first. So once the addonName is the name of the other addon, you can use the SavedVar as if it would be yours.
You just have to use the same ZO_SavedVars method as the other addon, just without any defaults.
Thanks a lot. I forgot that those variables are global and when my addon initializes those dependencies are already initialized so I can just read the savedVariables from their global.

And for the rewriting of savedVariables, can I just use that reference (I assume that it's just a reference) to write to their savedVariables?
  Reply With Quote