Thursday, April 19, 2012

Workaround for an UIDropDownMenu with the power of SecureActionButton attributes ?

Hello dear developper's community.

I have an addon that shows missing self buffs via SecureActionButtons. These buttons have 2 action attributes:

*type1 -> macro (using macrotext)

*type2 -> menu (using button.menu = func)

The problem comes from the menu: I use a dynamic UIDropDownMenu to display available items (food, oils, elixirs). In the OnClick event i tried to call the protected RunMacroText to consume these items. Unfortunatly it's blocked (some would say: obviously ._.).

Please tell me there's a workaround simpler than implementing our own DropDownMenu based on SecureActionButtons. Is there something like a magic secure menu that let us execute macros ? Or a different approach that solves the problem ?

Thank you in advance, and sorry for my bad english :)

No comments:

Post a Comment