View Single Post
09-06-10, 09:03 AM   #11
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Originally Posted by nightcracker View Post
@OP: Now you shouldn't rewrite the whole function, merely hooksecurefunc() it.
But I want to with a simple script alter how the time under buff buttons is shown. hooksecurefunc would add more CPU cycles than necessary, right? I mean it's better to replace than to append cycles.

Also I want to for example have the ability to change one argument that UnitAura returns (based on my preferences), it's much simple to do that rather than writing a whole new addon just to alter 1 small thing.

We need a "prehooksecurefunc" that alters functionality before the function is called or something, with the ability to skip running the original one.