Taint problem with SpellBookFrame
View Single Post
06-14-18, 05:12 PM
I did that?
Join Date: Dec 2011
hooksecurefunc replaces the function so OnMouswheel is now calling the old function.
You could try:
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.
If you want to securely hook a frame's script handler, use Frame:HookScript:
Which brings us back to the OP.
Discord Unit Frames
Move Pad Plus.
Last edited by Fizzlemizz : 06-14-18 at
View Public Profile
Send a private message to Fizzlemizz
Find More Posts by Fizzlemizz