Your attachment is empty. I assume you are talking about
local name, addon = ...
Just like it looks, these are local variables. name is the actual string name of your addon, like "Bartender4" or "SmartRes2" and it comes from the folder name within Interface\AddOns; addon is a table used for passing information to all Lua files in the same addon. You could pass localization via addon.L or use it for registering events or functions. It would be the same as writing
local name = "MyAddOnName"
local addon = {}
Being variables, you can name them whatever you wish, and they are local to your addon.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
The second argument passed to each lua file - is this in the global namespace for ALL addons, or unique to each addon?
Your attachment is empty. I assume you are talking about
Just like it looks, these are local variables. name is the actual string name of your addon, like "Bartender4" or "SmartRes2" and it comes from the folder name within Interface\AddOns; addon is a table used for passing information to all Lua files in the same addon. You could pass localization via addon.L or use it for registering events or functions. It would be the same as writing
Being variables, you can name them whatever you wish, and they are local to your addon.