Thread Tools Display Modes
01/20/18, 06:32 AM   #1
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 578
Originally Posted by Baertram View Post
You maybe could use the global savedvars of the other addon. But you need to check if they are using acocunt wide or character saved avrs, using the charname as key (ZO_SavedVars:New) or the new method with the charId (ZO_SavedVars:NewCharacterId) which is rename save.

And messing around with other addon's savedvars won't work properly if the other addon changes them back upon reloadui somehow from it's internal savedvars.
The addon loads the savedvars into lest's say local settings 0 ZO_SavedVars:new(...).
You change the global vars now from your addon in this addon's savedvars.

Reloadui -> The adodnw rites it's local settings to the savedvars and overwrites your changed settings int he global SV again.
The ZO_SavedVars is a wrapper. Even if you have two wrapper within two addons, the common, global savedVariable is used.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Can I access SavedVariables of other addon


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