Quantcast
WoWInterface - View Single Post - Taint problem with SpellBookFrame
View Single Post
06-14-18, 05:12 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,292
hooksecurefunc replaces the function so OnMouswheel is now calling the old function.

You could try:
Code:
hooksecurefunc("SpellBook_GetCurrentPage",  function(self, value, scrollBar) 
      print("test") 
end)
Although that will call your function for the next/prev. page clicks as well as SpellBookFrame_UpdatePages().

Edit: That won't work because the function doesn't get called in the pet spellbook.

Last bullet point
If you want to securely hook a frame's script handler, use Frame:HookScript:
Which brings us back to the OP.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 06-14-18 at 06:00 PM.
  Reply With Quote