I searched around and got very old info (2010ish) including haste confirming plans to implement the secure template Auras to enable canceling buffs. Obviously this never came to fruition and was regarded low priority anyways.
I still want to have that and it kinda works using the PostUpdateIcon func, however obviously tainting because of SetAllPoints().
I'm out of ideas for now how to implement it without touching oUFs core, and in addition to that ask if this feature would ever make it into oUF or is regarded useless/niche/wontdo.
Below is my current implementation snippet:
Lua Code:
local PostUpdateIcon = function(icons, unit, button, index, offset, filter, isDebuff)
local texture = button.icon
if button.isPlayer then
texture:SetDesaturated(false)
else
texture:SetDesaturated(true)
end
if not button.clickablearea then
button.clickablearea = CreateFrame("Button", nil, UIParent, "SecureActionButtonTemplate")
button.clickablearea:SetAttribute("*type2", "cancelaura")
button.clickablearea:SetAttribute("index", index)
button.clickablearea:SetAllPoints(button)
button.clickablearea:RegisterForClicks("RightButtonUp")
end
end
I'm just surfacing on grasping the SecureTemplates, so i might have overseen something.