Hey there,
I am trying to add debuff on the target of target frame in oUF Phanx but it does not work so far, not sure why. Here's the code I added in the aura section:
Code:
elseif unit == "targettarget" then
local GAP = 6
local MAX_ICONS = floor((FRAME_WIDTH + GAP) / (FRAME_HEIGHT + GAP))
local NUM_BUFFS = 2
local NUM_DEBUFFS = MAX_ICONS - 2
local ROW_HEIGHT = (FRAME_HEIGHT * 2) + (GAP * 2)
self.Debuffs = CreateFrame("Frame", nil, self)
self.Debuffs:SetHeight(ROW_HEIGHT)
self.Debuffs.parent = self
self.Debuffs["growth-y"] = "UP"
self.Debuffs["showType"] = true
self.Debuffs["size"] = FRAME_HEIGHT
self.Debuffs["spacing-x"] = GAP
self.Debuffs["spacing-y"] = GAP * 2
self.Debuffs.CustomFilter = ns.CustomAuraFilters.target
self.Debuffs.PostCreateIcon = ns.Auras_PostCreateIcon
self.Debuffs.PostUpdateIcon = ns.Auras_PostUpdateIcon
self.Debuffs.PostUpdate = ns.Auras_PostUpdate
end
Any ideas? Thanks.