Thread Tools Display Modes
01-16-10, 06:52 PM   #1
SoulL3Ss
A Deviate Faerie Dragon
 
SoulL3Ss's Avatar
Join Date: Apr 2006
Posts: 14
Fade out non-player debuffs on target

So I want all on my target frame all debuffs to be desplayed. But those which are not casted by me to be with alpha 0.3 for example. Any ideas how to do that?
__________________
OnLy GoD CaN JudGe Me NoW !
  Reply With Quote
01-16-10, 08:56 PM   #2
Bruners
A Flamescale Wyrmkin
 
Bruners's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 125
Code:
local PostUpdateAuraIcon
do
    local playerUnits = { 
        player = true,
        pet = true,
        vehicle = true,
    }   

    PostUpdateAuraIcon = function(self, icons, unit, icon, index, offset, filter, isDebuff)
        local texture = icon.icon
        if(playerUnits[icon.owner]) then
            texture:SetDesaturated(false)
        else
            texture:SetDesaturated(true)
        end 
    end 
end
Edit to your liking and add self.PostUpdateAuraIcon = PostUpdateAuraIcon for the units you want it on
  Reply With Quote
01-17-10, 10:34 AM   #3
SoulL3Ss
A Deviate Faerie Dragon
 
SoulL3Ss's Avatar
Join Date: Apr 2006
Posts: 14
thanks a lot modified it for my needs and its working perfect ;p
__________________
OnLy GoD CaN JudGe Me NoW !
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Fade out non-player debuffs on target


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