Skip to content
Browse files

oUF_Neav: Fixes for the arena frames.

- Add back the custom buff filter.
- Add a proper option for the buffList in the config file.
- Check that the config value actually exists.
  • Loading branch information...
1 parent 14e704d commit bd15730fa022545c9a870359335f9b7477124701 @renstrom committed Sep 16, 2012
Showing with 7 additions and 6 deletions.
  1. +2 −5 Interface/AddOns/oUF_Neav/arena.lua
  2. +5 −1 Interface/AddOns/oUF_Neav/config.lua
View
7 Interface/AddOns/oUF_Neav/arena.lua
@@ -157,15 +157,12 @@ local function CreateArenaLayout(self, unit)
self.Buffs.PostCreateIcon = ns.UpdateAuraIcons
self.Buffs.PostUpdateIcon = ns.PostUpdateIcon
- -- TODO: ns.buffList doesn't exist at the moment.
-
- --[[
self.Buffs.CustomFilter = function(icons, unit, icon, name, rank, texture, count, dtype, duration, timeLeft, caster)
- if (ns.buffList[name]) then
+ if (config.units.arena.buffList and config.units.arena.buffList[name]) then
return true
end
+ return false
end
- ]]--
self.Debuffs = CreateFrame('Frame', nil, self)
self.Debuffs.size = 22
View
6 Interface/AddOns/oUF_Neav/config.lua
@@ -231,7 +231,7 @@ ns.Config = {
['party'] = {
scale = 1.11,
- show = false,
+ show = true,
hideInRaid = true,
mouseoverText = true,
@@ -289,6 +289,10 @@ ns.Config = {
color = {1, 0, 0},
},
+
+ buffList = { -- A whitelist for buffs to display on arena frames
+ 'Power Word: Shield',
+ },
},
},
}

0 comments on commit bd15730

Please sign in to comment.
Something went wrong with that request. Please try again.