HookScript after SetScript not working?
Hi,
I thought Ace HookScript function would hook on any script and first process the handler and after that the original function. How ever when I do the following: Lua Code:
"original function" will be printed but "hooked function" wont ever be printed. So whats the thing about that? |
i feel like this should definitely work.
Code:
in this code you are hooking different objects tho self and self.frame it should work like that: Code:
Code:
self.frame.HookScript(self.frame, "OnEvent", function() |
I should have mentioned that im using Ace3 Hook mixin. So
Lua Code:
is fine. Btw If I do not have a `SetScript` for `OnEvent` and only perform the hook: Lua Code:
"hooked function" is getting printed. So it really only does not work when I did a `SetScript` for `OnEvent` before hooking it. |
All times are GMT -6. The time now is 03:25 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI