View Single Post
02-15-18, 07:36 PM   #10
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
Originally Posted by Resike View Post
You can't anchor stuff to the MultiBarRightButton7 not to the whole MultiBarRight, since the multibar is protected so every time the Boss frames appears that pushes the MultiBarActionBars to the left in combat (if there is enough Boss frames to push it (but the SetPoint update runs even with 1 visible Boss frame, or even when the game just decides to run a full frame update)), which cause taint all across every anchored and child objects. The root of the issue is that the TargetFrame gets hidden and shown in combat, since you kinda want to target and untarget units while in combat too.
Why wouldn't you be able to? As long as the code that moves it is signed and untainted, there are no issues with protected frames anchoring to each other.
Setting a point for a frame out of combat doesn't spread taint.

To prove my point, I created a secure action button, anchored it to LootFrame, which is completely unprotected and moved around in combat to follow the mouse cursor.
The LootFrame code, however, is not tainted and is moved around by signed Blizzard code. Therefore, no problem.

Try it yourself:
Lua Code:
  1. local f = CreateFrame('Button', 'JustASecureButton', LootFrame, 'SecureActionButtonTemplate, ActionButtonTemplate')
  2. f:SetPoint('TOPRIGHT', LootFrame, 'BOTTOMLEFT')
  3. f:SetAttribute('type', 'action')
  4. f:SetAttribute('action', 6)
  5. f.icon:SetTexture(GetActionTexture(6))

There seems to be a lot of misconceptions about taint floating around.
__________________

Last edited by MunkDev : 02-15-18 at 07:56 PM.
  Reply With Quote