View Single Post
04-05-17, 03:17 PM   #7
Joker119
A Flamescale Wyrmkin
 
Joker119's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 113
Originally Posted by seyan777 View Post
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.
__________________
My Addons | "If someone says something is impossible, they lack either imagination, or determination."
  Reply With Quote