View Single Post
06-14-18, 04:18 PM   #3
Ammako
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
Originally Posted by myrroddin View Post
Try a secure hook instead, which is always the best course of action when tampering with a Blizzard frame. And not seeing your entire code, do you have an EnableMouse() call somewhere? Do you need one?
Doesn't need one, SpellBookFrame is already mouse-enabled.

That being said, I can't even get this to work.

lua Code:
  1. hooksecurefunc("SpellBookFrame_OnMouseWheel", function(self, value, scrollBar)
  2.     print("test")
  3. end)

https://www.townlong-yak.com/framexm...kFrame.lua#960

I don't think I'm using it wrong, either. A non-secure hook works fine in that same scenario, but of course SpellBookPrevPageButton_OnClick() and SpellBookNextPageButton_OnClick() taint it if called from non-secure addon code.

Maybe they just don't want us being able to securely hook that.
  Reply With Quote