Reply
 
Thread Tools Display Modes
Old 01-16-10, 05: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 !
SoulL3Ss is offline   Reply With Quote
Old 01-16-10, 07: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
Bruners is offline   Reply With Quote
Old 01-17-10, 09: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 !
SoulL3Ss is offline   Reply With Quote
Reply

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

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