View Single Post
12-28-17, 05:35 AM   #6
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by siweia View Post
Code:
local A, C, L = select(2, ...):unpack()
It is only available for the files inside the addon.
For other addon, it should be fine to just "local A, C, L = select(YourAddonName):unpack()", because of the bottom line of your code "_G[AddOnName] = Engine".

So now, for some addon that doesn't have the bottom code as you do, is there any way to access as well?
AddOnName will use your addon name from your TOC file

local A, C, L = unpack(YourAddonName)
  Reply With Quote