Quantcast How to hook LibActionButton? - WoWInterface
Thread Tools Display Modes
09-03-18, 02:57 AM   #1
drenos
A Defias Bandit
Join Date: Mar 2010
Posts: 2
How to hook LibActionButton?

I have a small addon that allows setting key bindings for spells using a lua file, and an accompanying addon that places these keys as text on action bar buttons.

It was a very long time since I wrote this, so I don't remember all the details but at the moment it uses `hooksecurefunc("ActionButton_Update")` to do its magic.

The code is here - https://github.com/kesor/wow-binder-...nderLabels.lua

Unfortunately, this does not work with ElvUI and/or other action bar addons, most probably because these use LibActionButton.

Can someone please help me figure out how to do the same thing that works with the original action bar buttons, but hooking on some function of LibActionButton?

Thank you!
  Reply With Quote
09-03-18, 08:15 AM   #2
drenos
A Defias Bandit
Join Date: Mar 2010
Posts: 2
After many hours of trial and error and various inspection techniques and reading LibActionButton's code, I finally made it work ...

For those interested, see change in this PR https://github.com/kesor/wow-binder-labels/pull/1
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to hook LibActionButton?

Thread Tools
Display Modes

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