DerGhulbus
03-22-2005, 01:38 AM
Hi there!
This one's not really an Add-On in particular, as it might only be interesting for those who are developing Add-Ons themselves. There is not much to be seen, except for some geeky stuff under the hood.
This Addon was written to built the base structure for a series of custom Addons, similar to Cosmos, but not even near as huge. To keep things nice and simple from a developers point, i implemented a central management system for all global variables, used by the environment. Thus you have access to all variables that you use through a console-like interface, where you can play around with things and debug your programs. The console itself derived from a tutorial Nevir posted on the official WoW-Forums, but it is of course a bit more sophisticated than the original tutorial-project ;)
you can open up the console with the command /dev, then you may want to type help (inside the console now) to display a short explanation of the commands that are implemented by now.
the most interesting part, however, is hidden inside the code. you should take a look at the functions at the bottom of ghulbus.lua, which handle the management of the global variables.
i used a structure similar to a single chained list to store all of the globales. what seems to be confusing at first, turns out to be surprisingly handy when it comes to debugging.
i tried to comment my source well, so there should be no problem following it. i'd really like to hear your opinion about this, because i'm probably going to work with this code for some time, and thus i'd like it to be as smooth as possible.
now, here is the download link, i hope you enjoy it:
http://www.ghulbus-inc.de/dforgui/dforgui1*****
This one's not really an Add-On in particular, as it might only be interesting for those who are developing Add-Ons themselves. There is not much to be seen, except for some geeky stuff under the hood.
This Addon was written to built the base structure for a series of custom Addons, similar to Cosmos, but not even near as huge. To keep things nice and simple from a developers point, i implemented a central management system for all global variables, used by the environment. Thus you have access to all variables that you use through a console-like interface, where you can play around with things and debug your programs. The console itself derived from a tutorial Nevir posted on the official WoW-Forums, but it is of course a bit more sophisticated than the original tutorial-project ;)
you can open up the console with the command /dev, then you may want to type help (inside the console now) to display a short explanation of the commands that are implemented by now.
the most interesting part, however, is hidden inside the code. you should take a look at the functions at the bottom of ghulbus.lua, which handle the management of the global variables.
i used a structure similar to a single chained list to store all of the globales. what seems to be confusing at first, turns out to be surprisingly handy when it comes to debugging.
i tried to comment my source well, so there should be no problem following it. i'd really like to hear your opinion about this, because i'm probably going to work with this code for some time, and thus i'd like it to be as smooth as possible.
now, here is the download link, i hope you enjoy it:
http://www.ghulbus-inc.de/dforgui/dforgui1*****