Thread: Keybindissue
View Single Post
08-17-14, 06:04 PM   #4
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Yes, it seems the text is only updated OnLoad (when the buttons are created, you won't be able to hook that) and when bindings change.

You could either call the hook for all buttons once in your addon, or hook some other function in addition, such as ActionButton_Update, which seems to fire on PLAYER_ENTERING_WORLD. That's also called on a lot of other occasions probably, so the former is probably the better solution.
__________________
Grab your sword and fight the Horde!