Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/17/23, 01:03 AM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Question possible to disable/remove a hook?

Ive been looking all night and cant find any mention of how to remove a hook.

Im looking to unregister events(which is no problem to do) and disable a posthook when a feature is disabled.

its being enabled like this onload and when toggled on:

Code:
ZO_PostHook("ZO_Armory_Keyboard_CollapsedEntry_OnMouseUp", MyAddon.MyFunction)
is there a way to shut that off when its not needed?

Last edited by sinnereso : 04/17/23 at 01:31 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » possible to disable/remove a hook?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off