Thread Tools Display Modes
12-20-07, 09:38 AM   #1
ProfOak
A Cyclonian
Join Date: Oct 2005
Posts: 47
Best way to organize an addon

Hi,

I've made an addon that implements alot of usefull things.
Target's life and mana/rage/energy, little bar on top screen with some inf regarding coords, gold and stuff like that, it displays shows a msg when u gain rep w a fraction, get or make a critical strike (meele and spell), and other stuff.

Due to it's complexity, I separte each addon function in seperate .xml and .lua files and made 1 file that join all together.
I also made the catch of events in a sperate file, putting in each event the call to the respective function.

I was wondering if this is the best aproach, or shall I make a single .xml and .lua file w all functionalitys in it.
The single file approach has 1 big drawback, wich is trying to debug or add anything new.

Was wondering, in sake of effeciency, memory consuming and loading time, in which way should I organize the addon.

Cheers and Thks
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Best way to organize an addon


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off