View Single Post
11-09-12, 10:21 AM   #6
Aanson
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 124
Thank you

That sounds great. Phanx, apologies, I wrote that from memory yesterday and obviously didn't pay attention to what I was doing, I've copy / pasted now which might explain where I'm going with that first bit of code you quoted there:

Lua Code:
  1. local addon, addonName = ...
  2.  
  3. addonName[1] = {};
  4. addonName[2] = {};
  5.  
  6. EarthernUI = addonName;
  7. EarthernDB = {};
  8.  
  9. local F, V = unpack(select(2, ...));

... but clearly from what you've said there, I'll be changing it to ...

Lua Code:
  1. local addonName, addonTable = ...
  2.  
  3. addonTable[1] = {};
  4. addonTable[2] = {};
  5.  
  6. EarthernUI = addonTable;
  7. EarthernDB = {};
  8.  
  9. local F, V = unpack(select(2, ...));

Thank you for taking the time out to help guys. I think I'll def go with the format you provided and I like the idea of using separate tables within 'F' for each module.

Thanks again!


Aanson
__________________
__________________

Last edited by Aanson : 11-09-12 at 10:35 AM.
  Reply With Quote