Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-16-19, 09:08 AM   #1
Ethly
A Fallenroot Satyr
Join Date: Mar 2018
Posts: 23
Taint when using ActionButtonTemplate

Here's the simplest code that reproduces this bug:
Code:
<CheckButton name="MUShieldSlam" parent="UIParent" inherits="ActionButtonTemplate">
	<Anchors>
		<Anchor point="CENTER"/>
	</Anchors>
	<Attributes>
		<Attribute name="action" value="2"/>
	</Attributes>
	<Scripts>
		<OnLoad function="ActionButton_OnLoad"/>
	</Scripts>
</CheckButton>
With this code I'm getting the following error whenever any debuff applied:
Code:
8x [ADDON_ACTION_BLOCKED] Аддон 'MyUI' tried to call protected function 'MainMenuBar:SetPoint()'.
!BugGrabber\BugGrabber.lua:519: in function <!BugGrabber\BugGrabber.lua:519>
[C]: in function `SetPoint'
FrameXML\UIParent.lua:2981: in function `UIParentManageFramePositions'
FrameXML\UIParent.lua:2357: in function <FrameXML\UIParent.lua:2344>
[C]: in function `SetAttribute'
FrameXML\UIParent.lua:3153: in function `UIParent_ManageFramePositions'
FrameXML\BuffFrame.lua:332: in function `BuffFrame_UpdateAllBuffAnchors'
FrameXML\BuffFrame.lua:104: in function `BuffFrame_Update'
FrameXML\BuffFrame.lua:49: in function <FrameXML\BuffFrame.lua:45>

Locals:
InCombatSkipped
What am I doing wrong? I tried to understand this stacktrace but I have no idea how it has any relation to my code. I tried to inherit from SecureActionButtonTemplate (I don't really need it, but anyway) and it did not help.

Last edited by Ethly : 02-16-19 at 09:30 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Taint when using ActionButtonTemplate

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