Thread Tools Display Modes
11-04-16, 03:45 PM   #1
Agata
A Murloc Raider
Join Date: Jun 2010
Posts: 7
Filtering debuffs

Hello,

I am using ouf Phanx and I modified it quite a bit, so the party frames show all debuffs.
Following lines were added to Frames.lua in the party part:

Code:
        		self.Debuffs = CreateFrame("Frame", nil, self)
        		self.Debuffs:SetPoint("LEFT", self, "LEFT", 70, 0)
        		self.Debuffs:SetWidth((FRAME_HEIGHT * 4) + (GAP * 3))
        		self.Debuffs:SetHeight(FRAME_HEIGHT)
        		self.Debuffs.parent = self

                        self.Debuffs["growth-x"] = "RIGHT"
        		self.Debuffs["growth-y"] = "UP"
        		self.Debuffs["showType"] = true
        		self.Debuffs["initialAnchor"] = "RIGHT"
        		self.Debuffs["size"] = FRAME_HEIGHT
        		self.Debuffs["num"] = 4
        		self.Debuffs["spacing-x"] = GAP
        		self.Debuffs["spacing-y"] = GAP

        		-- self.Debuffs.CustomFilter   = ns.CustomAuraFilters.party
        		self.Debuffs.PostCreateIcon = ns.Auras_PostCreateIcon
        		self.Debuffs.PostUpdateIcon = ns.Auras_PostUpdateIcon
        		self.Debuffs.PostUpdate     = ns.Auras_PostUpdate -- required to detect Dead => Ghost
Now I want to filter certain debuffs like http://www.wowhead.com/spell=206151/challengers-burden.


I only find snippets in ouf Phanx where you can add auras to show throw a filter - but I disabled the filter, because I want to see all debuffs by default.

Somebody got some snippets to hide some spell ids from the debuff frame?

  Reply With Quote
11-04-16, 11:41 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Instead of removing the filter function, you need to change the filter function so that instead of "hide unless it meets these conditions" it does "show unless it meets these conditions".
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-05-16, 06:32 AM   #3
Agata
A Murloc Raider
Join Date: Jun 2010
Posts: 7
That is a very nice logic and I will try it today!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Filtering debuffs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off