PreHooking protected functions
Even if it's really simple, it's not in the esoui files, so ..
Lua Code:
Doing this will mainly prehook ESOUI code and your own addon, so consider that the esoui code may not run because of another addon doing something else instead. |
Could you provide an example using this hook? Thanks!!
|
I think you can use it as ZO_PreHook variant but ONLY for functions like UseItem() now.
Quote:
Lua Code:
|
That's it, just like PreHook.
Main goal is to add a backup of the prehooked func inside your hooking function to change its parameters. My first need was to redirect moves for crafting bag. |
All times are GMT -6. The time now is 06:14 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI