View Single Post
01-10-15, 01:45 AM   #9
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by 10leej View Post
I want to actually use multiple config files on the same config table. So Clamsoda's response was what I was looking for pretty much.
You can also use one "config" table and insert things into it from other files:

Code:
local _, ns = ...
ns.config = {
    this = 5,
    that = true,
    other = "thing",
}
Code:
local _, ns = ...
ns.config.x = 42
ns.config.y = 50
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote