separate modules within 1 addon
View Single Post
11-08-12, 01:44 PM
A Warpwood Thunder Caller
Join Date: Aug 2009
Yeah that's how I have it just now. Well, the only difference is that in your example code, I've split 'addon' into two separate tables with the code:
But even with that, I still can't get it to work. The main reason I think is that I'd need to encompass all of my Chat_Module.lua functions within the ChatModuleEnable() function that you suggested in order to ensure that the code is only read if the module is enabled.
Can I dare ask?
On a scale of 1 to 10 on the bad practice scale, how bad would it be for the Chat_Module.lua functions to be read and stored to memory, but never called? (when the module is disabled, that is).
Hope I'm making sense here.
View Public Profile
Send a private message to Aanson
Find More Posts by Aanson