Secure actionbutton macro with binding
How can I set a binding to a button through secure code that will only trigger on itself?
I have it kinda working with 'SetBindingClick' but it also triggers outside of the button... I basically want the button to execute the macro when I hover over it and press 'NUMPAD2' Example secure snippet Code:
self:SetAttribute("type", "macro") |
You could use spell instead of macro and set the unit to player.
|
Quote:
Unfortunately the macro is more complicated than what I posted (my bad for not saying this before), so setting the type to 'spell' wont work in my case. Any other ideas? |
Quote:
Managed to make it work by inheriting from 'SecureHandlerEnterLeaveTemplate', and changing the bindings based on the values of _onevent and _onleave attributes. |
All times are GMT -6. The time now is 02:02 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI