WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Party Buffs: "onlyShowPlayer" (https://www.wowinterface.com/forums/showthread.php?t=34130)

DThielke 07-23-10 02:10 PM

Party Buffs: "onlyShowPlayer"
 
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.

Mischback 07-23-10 02:23 PM

Can't say it 100%, but it could have something to do with this.


All times are GMT -6. The time now is 11:00 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI