Hi all. I am trying to find the area of code in my oUF layout to hide or relocate the target spell timers on debuff icons. Can someone direct me to the right variable to edit? I've been able to find the stack counts and cooldowns, but not the aura timers. Thanks.
Code:
local auraIcon = function(self, button, icons)
icons.showDebuffType = true -- show debuff border type color
button.icon:SetTexCoord(.07, .93, .07, .93)
button.icon:SetPoint("TOPLEFT", button, "TOPLEFT", 1, -1)
button.icon:SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT", -1, 1)
button.count:ClearAllPoints()
button.count:SetPoint("TOPRIGHT", 0 , -1) -- Stacks text will be on top of icon
button.count:SetJustifyH("CENTER")
button.count:SetFont(font, fontsize, "THINOUTLINE")
button.count:SetTextColor(.8, .8, .8) -- Color for stacks text
button.icon:SetTexCoord(0, 1, 0, 1)
button.overlay:SetTexture(bufftex)
button.overlay:SetTexCoord(0,1,0,1)
button.overlay.Hide = function(self) self:SetVertexColor(0.4, 0.4, 0.4) end
button.cd:SetReverse()
button.cd:SetPoint("TOPLEFT", button, "TOPLEFT", 2, -2)
button.cd:SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT", -2, 2)
if(not isDebuff and self.unit=="player") then -- Cancel buffs on right click
button:SetScript("OnMouseUp", CancelBuff)
end
end
local PostUpdateAuraIcon = function(self, icons, unit, icon, index, offset, filter, isDebuff)
if(icon.cd:IsShown() and self.unit=="target" and isDebuff and not icon.isPlayer) then
icon.cd:Hide() -- we hide cooldown for debuffs that are not ours
end
end
local CancelBuff = function(self, button) -- cancel buffs on right click
if(button=="RightButton") then
CancelUnitBuff("player", self:GetID())
end
end