Thread Tools Display Modes
08-21-09, 05:04 AM   #1
coppernik
A Defias Bandit
Join Date: Oct 2008
Posts: 2
oUF debuff saturation

Debuff saturation on oUF (both Nerd and P3lim great layouts) not working, tried modyfying the code on many ways but still all debuffs on target frame are normal or all are grayed out.

Anyone more experiencing same problem and found any way to fix it?

Code below is from newest oUF P3lim:

Code:
local function updateDebuff(self, icons, unit, icon, index)
	local _, _, _, _, dtype = UnitAura(unit, index, icon.filter)

	if(icon.debuff) then
		if(not UnitIsFriend('player', unit) and icon.owner ~= 'player' and icon.owner ~= 'vehicle') then
			icon:SetBackdropColor(0, 0, 0)
			icon.icon:SetDesaturated(true)
		else
			local color = DebuffTypeColor[dtype] or DebuffTypeColor.none
			icon:SetBackdropColor(color.r * 0.6, color.g * 0.6, color.b * 0.6)
			icon.icon:SetDesaturated(false)
		end
	end
end
  Reply With Quote
08-21-09, 05:56 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by coppernik View Post
Debuff saturation on oUF (both Nerd and P3lim great layouts) not working, tried modyfying the code on many ways but still all debuffs on target frame are normal or all are grayed out.

Anyone more experiencing same problem and found any way to fix it?

Code below is from newest oUF P3lim:

Code:
local function updateDebuff(self, icons, unit, icon, index)
	local _, _, _, _, dtype = UnitAura(unit, index, icon.filter)

	if(icon.debuff) then
		if(not UnitIsFriend('player', unit) and icon.owner ~= 'player' and icon.owner ~= 'vehicle') then
			icon:SetBackdropColor(0, 0, 0)
			icon.icon:SetDesaturated(true)
		else
			local color = DebuffTypeColor[dtype] or DebuffTypeColor.none
			icon:SetBackdropColor(color.r * 0.6, color.g * 0.6, color.b * 0.6)
			icon.icon:SetDesaturated(false)
		end
	end
end
Did you set the function?
  Reply With Quote
08-21-09, 06:19 AM   #3
coppernik
A Defias Bandit
Join Date: Oct 2008
Posts: 2
Originally Posted by p3lim View Post
Did you set the function?
Do You mean

Code:
if(unit == 'target') then
..
self.PostUpdateAuraIcon = updateDebuff
..
end
?
  Reply With Quote
08-21-09, 09:46 AM   #4
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by coppernik View Post
Do You mean

Code:
if(unit == 'target') then
..
self.PostUpdateAuraIcon = updateDebuff
..
end
?
yeah (char limit)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF debuff saturation


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