Originally Posted by seyan777
So, you mean those folders would go into one addon and put
Code:
if not cfg.embeds.ModuleName then return end
on top of each lua files, right?
Hm... Interesting!
I'll have a go with it
|
Correct, then in the .toc file, where you list the order in which to load files for your addon, you put a config.lua file somewhere near the top. Then you have the options to enable/disable them in that config file.
You can use my addon as a working representation of this;
https://github.com/galaxy119/Roth_UI?files=1
the options to enable/disable modules are at teh top of the "config.lua" file, and the modules being managed here are in the "embeds" folder.