Hi,
I've been messing around with my party frames and I have everything working except for buff filtering. I would like the party frames to only display buffs cast by me. I did some searching and found that what I needed was:
Code:
self.Buffs.onlyShowPlayer = true
This
almost works, but it seems to be a little buggy. Most of the time, it will only display one less buff than the unit has on them. For example, if I cast Detect Invis and Underwater Breathing on a party member, it will only show Detect Invis. If I then cast a Soulstone on that party member, it will display Detect Invis and Underwater Breathing, but not Soulstone. On rare occaisions, the buffs will refresh and display all three, but almost never upon first cast.
The relevant code is posted below.
Code:
do
UnitSpecific.party = function(self)
local buffs = CreateFrame("Frame", nil, self)
buffs:SetHeight(26)
buffs:SetWidth(300)
buffs.initialAnchor = "TOPRIGHT"
buffs.spacing = 4
buffs.num = 10
buffs["growth-x"] = "LEFT"
buffs["growth-y"] = "DOWN"
buffs:SetPoint("RIGHT", self, "LEFT", -6, 0)
buffs.size = 26
buffs.PostCreateIcon = auraIcon
buffs.PostUpdateIcon = PostUpdateIcon
self.Buffs = buffs
self.Buffs.onlyShowPlayer = true
end
end
Any help would be much appreciated.