View Single Post
09-03-11, 03:34 AM   #34
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
not sure if I understand you right but you can share data between different files this way:

Code:
local addonName, addonTable = ...
Every file should have a line like this at it's top. Every file loaded in your loading process gets this information passed at startup. First argument is the name of your addon and the second is a table that is passed on to every file. It's empty at first but you can put your data and functions into this table in one file and use them in the next.

So you can split your addon in as many files as you want.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote