Disable Tooltip on Private Auras
vincentullmann opened this issue ยท 2 comments
Hey there,
Would it be possible to add an option to disable the tooltip on private auras?
Having the tooltip blocks mouseclicks / heals on the unit.
A possible workaround is to change the parent
argument to any other Frame (eg.: UIParent or a dummy frame) as such:
local dummyFrame = CreateFrame("Frame")
[...]
local function Icon_Update(self, parent, unit)
local f = parent[self.name]
if f and unit ~= f.auraUnit then
local auraHandles = ClearFrameAuraAnchors(f)
local iconAnchor = self.iconAnchor
iconAnchor.relativeTo = f
iconAnchor.offsetX = 0
iconAnchor.offsetY = 0
local auraAnchor = self.auraAnchor
auraAnchor.parent = dummyFrame -- setting this here
auraAnchor.unitToken = unit
auraAnchor.auraIndex = self.auraIndex
auraAnchor.iconInfo.iconWidth = f.iconSize
auraAnchor.iconInfo.iconHeight = f.iconSize
for i=1,self.maxIcons do
auraHandles[i] = AddPrivateAuraAnchor(auraAnchor)
iconAnchor.offsetX = iconAnchor.offsetX + self.sumx
iconAnchor.offsetY = iconAnchor.offsetY + self.sumy
auraAnchor.auraIndex = auraAnchor.auraIndex + 1
end
f.auraUnit = unit
end
end