Multiple Addon's One User Config
I'm trying to create a single .lua file that will transfer my personal config changes to Neav UI with its 10 seperate addons used. I think I'm close but I think it fires to soon for it to change the settings.
Below is my .lua if someone could give me a little help this would be great. Thanks in advance. Coke Here is the file: Code:
local _, nExtras = ... |
I can't speak for the overall functionality but the way you are using so many "local _, nWhatever = ..." statements appears very odd to me.
When you use ... outside of a function like that, it is returning is the addon name and a table specific to that addon. In other words, in your code, locals like nBuff, nChat, nData etc. are all being set to the same table, and probably not the table you expect. There's nothing magic about ... where you can pull out whatever table you like, but rather, it is a convention used on a per-addon basis to create a sort of table namespace for that specific addon. I don't know where you've put this .lua file (perhaps in nExtras) but the one and only table you are going to get out of ... is the one for that addon. Copying that ... line out from another addon won't give you access to that addon's table. So if you need access to other tables, you need to access them as globals or however else they are exposed. |
All times are GMT -6. The time now is 06:51 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI