Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-06-15, 08:52 AM   #1
Nikita S. Doroshenko
A Cyclonian
 
Nikita S. Doroshenko's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 45
Is it OK to copy Blizzard functions and hooksecure their function with tweaked copy?

I want to change Blizzard's function FriendsFrame_UpdateFriends() to add my buttons in to each frame of long scroll-able list of friends.

So i made hooksecurefunc("FriendsFrame_UpdateFriends", FriendsFrame_UpdateFriendsCopy)

FriendsFrame_UpdateFriendsCopy() is copy of FriendsFrame_UpdateFriends(), but with a few new lines of code.

Is it OK to do so, or is there better way to bulk change each frame of long scroll-able list? because i think hooksecure function is not same for future proof (for future updates).

PS I tried to make for loop for this scroll-able frame to manually attach my buttons in to each frame of scroll-able frame, but this buttons looks hardcoded, and i can't controll them regardless of hidden parent frames parameters that are only available in FriendsFrame_UpdateFriends().

Last edited by Nikita S. Doroshenko : 09-06-15 at 08:58 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Is it OK to copy Blizzard functions and hooksecure their function with tweaked copy?


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