View Single Post
11-03-09, 07:43 AM   #8
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Duh duh duh! chiming in.

So yea the only way to do it is to write your own code. Reflux IMO is a waste of time it requires a lot of setup on the users end or lots of WTF copying. Now... as to how easy it is to take over other addons. Not easy at all.

This is how you would do it... this is pretty much how mazzle did it and this is how im working on it as well.

Look threw the addon you want to take over the setup for, find in it where it makes its saved variables and then where it calls them up on load up. Now... here comes the hard part. You need to make your directory start with an ! so that it loads first in the addon list. If your using buggraber or swatter you need to make sure your addon name letter after the ! starts with a letter after b if your using buggraber. S if you want to use swatter. Now... even more tedious IF your planing on taking over either of those addons although i found it unnecessary.

You will then need to write a code that takes over the commands from the addon you are wanting to setup. In other words if the line to call up the WTF for an addon is addonblahblah = load wtfsuchnsuch you will need to write some code that would run somewhat like this....

addonblahblah = load mywtf
if first load then load addonblahblah
if not then do somthing else.

addonblahblah = nothing/dummy

its of course a lot more complex then that but that gives you an idea. You basically want to cancel out what ever addon you are taking overs wtf creation and loading.

In all honesty the coding is not the hard part its deciphering each addons code that is a pain.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote