secure actionbutton taints again :(
Lua Code:
I try to have a bar that switches automaticly. The code above works but I get taints over and over. Code:
4/30 18:55:05.677 An action was blocked in combat because of taint from zz_Actionbuttons - zzABar1ActionButton1:Show() Someone got an easy example how this works ? Looked at BT and Dominos but thats a little above my skills ;) |
The taint is generated because calls to frame:Show() or frame:Hide() are blocked if used on a protected frame while in combat. There is a way around this using SecureStateDrivers, but this is for very specific reasons.
This might be caused by either of the links to Blizzards functions you have. ActionButton_OnLoad() or ActionButton_UpdateAction(). From the taint path, it looks to be the first. Something you might try is use XML to create a template and use the following in between the <Scripts> tags: Code:
<OnLoad function="ActionButton_OnLoad"/> I'm not entirely sure if taint would be passed on to the OnLoad script, but it's worth a try. |
I create from CheckButtonTemplate (ActionBarFrame.xml)... not sure why, but my code only works if
I use the two (same for OnAttributeChanged) again event though the template has both defined. Lua Code:
|
grml ... posting it helps :)
I forgot to use ActionBarButtonCodeTemplate for the CheckButton inherit. Thank you helping me looking at it from a different view :D |
All times are GMT -6. The time now is 09:35 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI