Originally Posted by frohanss
I currently working on a "UI addon pack".
Folders are built like: UIPack -> Submodules
How can i get one of the Submodules to create it's own savedvariable?
If i just thest the Submodule directly from addonfoler everything works perfectly.
I have tryed to add the submodule.toc into the mainaddon.toc.
Is this even posible?
Guess it would be easyer to just putt the submodule directly into AddOns folder, but i truely hate unndeded options under ingame addon's.
|
Okay, so you have attempted to nest addon directories? Stop it. The game does not recognize any other .TOC files except for the one .TOC file in the AddOn's root directory. You can place references to all the saved variables in the primary .TOC file as well as references to all the appropriate .XML/.LUA files relative to the primary .TOC file, but you'll have to edit all the addons that use proprietary texture/audio files to reference the file locations appropriately. Personally, I would not use your addon pack if you did that because I would be reliant on you updating the addon pack whenever there was a change by the original addon author of the individual addons that make up your addon pack.