View Single Post
03-10-22, 07:34 AM   #2
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 322
You list all your lua files in your addon's TOC file.

Sharing data between your lua files works by putting this at the beginning of every lua file:

Code:
local folderName, Addon = ...
The "Addon" table is then shared by all your lua files.

If you do not need your Addon's folder name you can also just do:

Code:
local _, Addon = ...
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote