Download
(2 Kb)
Download
Updated: 04-21-08 04:47 PM
Addon for:
oUF.
Pictures
File Info
Updated:04-21-08 04:47 PM
Created:unknown
Downloads:2,974
Favorites:11
MD5:
oUF DispelColor
Version: 4.0
by: Coldfury [More]
==========================================================

I would suggest you to use oUF_DebuffHighlight instead. It has many options that oUF_DC don't have and its a lot better written(more efficient, less cpu usage, etc..).

==========================================================
oUF_DispelColor is a plugin for the unitframes addon "oUF".
It will color the backdrop/border of the frames based on the first debuff color. If no backdrop/border found, then it will create a texture and color that texture instead.

It won't load if the player class is "Hunter", "Rogue", "Warrior" and "Warlock".

*New way to handle things*

Now you don't need to have self.debuffs enabled. This mean you can enable oUF_DC on any frames without actually showing/spawning debuffs, or show all debuffs.

oUF_DC will only react on friendly units and will ignore hostiles ones.

How to enable oUF_DC on a frame?
Just add the variable "self.oufdc = true" to the frame.


Click-Casting
I added click casting(decursing) on frames handled by oUF_DC.
I will uses the correct spells based on your level.
It uses Mouse5 as button and Shift as modifier by default but you can change that easily in the lua. You can change the order of the spells too. Just read the comments carefully.

Class = Click / Shift-Click

Priest = Dispel Magic / Abolish Disease
Shaman = Cure Poison / Cure Disease
Druid = Abolish Poison / Remove Curse
Mage = Remove Lesser Curse
Paladin = Cleanse
*Note: This will change based on your level. (ie. It will use Purify for pally until they reach lvl 42(Cleanse))


Useful Links
oUF - The core mod for the unitframes layout.

oUF_Lily - Layout for oUF by haste.

oUF_P3lim - Layout for oUF by P3lim.

oUF_Lighterfluid - My layout for oUF.

oUF_Banzai - Plugin for oUF to color UFs based on aggro. (*You need LibBanzai-2.0*)

Wowace Forums - oUF modifications/layouts thread.
v4.0
- Changed the way oUF gets enabled on frames. No need to show debuffs anymore if you don't want to.
Just add "self.oufdc = true" to the frames you want oUF_DC enabled on.

v3.0
- Changed the way the oUF_DC gets applied to frames. Now using the callback function that haste implented.
Please make sure you are using the lastest version of oUF.

v2.5
- Forgot to add [target=mouseover] to the macro text.

v2.0
- Added one-click decursing on frames affected by oUF_DC.
Uses Mouse5 as button and Shift as the modifier by default.

v1.0
-Initial Release
Optional Files (0)


Post A Reply Comment Options
Unread 04-10-08, 04:10 AM  
crazytitus
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Hi...nice work to your addon!

Now I have a question. I'm very enthusiastic over "oUF_Lighterfluid". Give it a download option for this?

Sorry for my bad English.

Grettings
Crazytitus
crazytitus is offline Report comment to moderator  
Reply With Quote
Unread 04-10-08, 07:13 AM  
scotte44
A Kobold Labourer

Forum posts: 1
File comments: 32
Uploads: 0
I second that request, I have always liked your frames.
scotte44 is offline Report comment to moderator  
Reply With Quote
Unread 04-10-08, 07:58 AM  
nodq
A Kobold Labourer
 
nodq's Avatar

Forum posts: 0
File comments: 106
Uploads: 0
Here is the Layout;


http://www.wowinterface.com/download...hterfluid.html


-


Thanks for this cool addon.
Last edited by nodq : 04-11-08 at 06:18 AM.
nodq is offline Report comment to moderator  
Reply With Quote
Unread 04-10-08, 12:09 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
I will post oUF_Lighterfluid soon on wowi. well prolly today. just needed to fix some minor things.
Last edited by Coldfury : 04-12-08 at 03:43 PM.
Coldfury is offline Report comment to moderator  
Reply With Quote
Unread 04-12-08, 09:38 PM  
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 59
Uploads: 11
Was just wondering if you could change it to only filter debuffs if the target is hostile.

I tried doing this myself but I don't know anything about metatables, so I couldn't figure it out =(
Last edited by ganders : 04-12-08 at 09:39 PM.
ganders is offline Report comment to moderator  
Reply With Quote
Unread 04-12-08, 11:00 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by ganders
Was just wondering if you could change it to only filter debuffs if the target is hostile.

I tried doing this myself but I don't know anything about metatables, so I couldn't figure it out =(
well this mod is intended to help decursing, and decursing is done on friendly units.

why would you want to color the target frame based on debuffs if its hostile?
Coldfury is offline Report comment to moderator  
Reply With Quote
Unread 04-15-08, 03:25 PM  
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 59
Uploads: 11
Originally posted by Coldfury
well this mod is intended to help decursing, and decursing is done on friendly units.

why would you want to color the target frame based on debuffs if its hostile?
I meant the other way around, sorry.

Debuffs aren't showing on the unit frame on hostile units.
ganders is offline Report comment to moderator  
Reply With Quote
Unread 04-15-08, 05:59 PM  
Dreadlorde
A Pyroguard Emberseer
 
Dreadlorde's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2302
File comments: 141
Uploads: 21
Could you please tell me what font is on your party frames? I really like it.

Thanks.
__________________

Funtoo - Plan 9 - Windows 7
Dreadlorde is offline Report comment to moderator  
Reply With Quote
Unread 04-15-08, 08:51 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by Dreadlorde
Could you please tell me what font is on your party frames? I really like it.

Thanks.
its the same on all frames :P its the font SUPERNOV.ttf
Coldfury is offline Report comment to moderator  
Reply With Quote
Unread 04-15-08, 08:56 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by ganders
I meant the other way around, sorry.

Debuffs aren't showing on the unit frame on hostile units.
Debuffs icons or debuffs colored frame?

If you mean that it doesnt color the unitframe of hostile unit based on debuffs color, it's intended to be like that.
Again, you gotta explain to me why you want to color the frame of a hostile unit? since you can't decurse him... im just wondering


or you mean the the debuffs icons don't appear?
If so, you need to understand that debuff.filter is to filter debuffs that you can REMOVE.
Atm, theres no way of showing only debuffs that you can APPLY in oUF. but it should come soon.
Coldfury is offline Report comment to moderator  
Reply With Quote
Unread 04-16-08, 04:24 AM  
nodq
A Kobold Labourer
 
nodq's Avatar

Forum posts: 0
File comments: 106
Uploads: 0
Hey great new version, this 2.x!

About the Option to make it possible to see what debuffs are on the Hostile Target etc. you think thats possible with just oUF and layout?

Would be great to have something like "Readyspells" showing all the debuffs you can apply to a target as icons somewhere, and if they are applied then the are hidden.

Im just asking, because "Readyspells" is my last ace2 addon i have, which i cant play without anymore


keep it up bro greets
Last edited by nodq : 04-16-08 at 04:24 AM.
nodq is offline Report comment to moderator  
Reply With Quote
Unread 04-16-08, 03:14 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by nodq
Hey great new version, this 2.x!

About the Option to make it possible to see what debuffs are on the Hostile Target etc. you think thats possible with just oUF and layout?

Thanks for the comment


No, atm oUF can't filter debuffs by what you can apply but i think its on the to-do list of haste(oUF author), ill speak to him about that. If not, i might try to work something out but if i do, i will prolly be a list of spell that you enter(the debuffs that you want to be "track") based on your class and then check if does debuffs are applied, or.. i dunno.. well see
Coldfury is offline Report comment to moderator  
Reply With Quote
Unread 04-17-08, 04:40 AM  
nodq
A Kobold Labourer
 
nodq's Avatar

Forum posts: 0
File comments: 106
Uploads: 0
Originally posted by Coldfury
Thanks for the comment


No, atm oUF can't filter debuffs by what you can apply but i think its on the to-do list of haste(oUF author), ill speak to him about that. If not, i might try to work something out but if i do, i will prolly be a list of spell that you enter(the debuffs that you want to be "track") based on your class and then check if does debuffs are applied, or.. i dunno.. well see

Ya, the idea with the list, where you can add the Spells on your own, sounds very nice.
nodq is offline Report comment to moderator  
Reply With Quote
Unread 04-19-08, 06:04 AM  
Gaenjin
A Deviate Faerie Dragon

Forum posts: 10
File comments: 56
Uploads: 0
Originally posted by Coldfury
Thanks for the comment


No, atm oUF can't filter debuffs by what you can apply but i think its on the to-do list of haste(oUF author), ill speak to him about that. If not, i might try to work something out but if i do, i will prolly be a list of spell that you enter(the debuffs that you want to be "track") based on your class and then check if does debuffs are applied, or.. i dunno.. well see
I'm confused.

Without DC loaded (using just oUF+Layout), I can see debuff icons that I apply on hostile targets just fine. (like Faerie Fire, Mangle, etc)

With DC loaded, I cannot see those debuff icons, they are prevented from being displayed by DC for some reason.

edit:
More specifically, if the routine is being ended if target is Hostile:
Code:
-- check if the frame needs to be colored
local function applyDispelColor(frame)
	if(UnitCanAttack("player", frame.unit)) then return end
	if(frame) then
		local icon = frame.Debuffs[1]
		if(icon) then
			r,g,b,a = icon.overlay:GetVertexColor()
			if(r and icon:IsVisible()) then
				applyColor(frame)
			else
				unapplyColor(frame)
			end
		else
			unapplyColor(frame)
		end
	end
	if(not frame.unit) then unapplyColor(frame) end
end
Then why would it prevent the debuffs from being displayed, since they are displayed just fine when using vanilla oUF without DC? (I hope I'm making sense, cause I need to go get some sleep)
Last edited by Gaenjin : 04-19-08 at 06:17 AM.
Gaenjin is offline Report comment to moderator  
Reply With Quote
Unread 04-19-08, 11:05 AM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by Gaenjin
I'm confused.

Without DC loaded (using just oUF+Layout), I can see debuff icons that I apply on hostile targets just fine. (like Faerie Fire, Mangle, etc)

With DC loaded, I cannot see those debuff icons, they are prevented from being displayed by DC for some reason.

edit:
More specifically, if the routine is being ended if target is Hostile:
Code:
-- check if the frame needs to be colored
local function applyDispelColor(frame)
	if(UnitCanAttack("player", frame.unit)) then return end
	if(frame) then
		local icon = frame.Debuffs[1]
		if(icon) then
			r,g,b,a = icon.overlay:GetVertexColor()
			if(r and icon:IsVisible()) then
				applyColor(frame)
			else
				unapplyColor(frame)
			end
		else
			unapplyColor(frame)
		end
	end
	if(not frame.unit) then unapplyColor(frame) end
end
Then why would it prevent the debuffs from being displayed, since they are displayed just fine when using vanilla oUF without DC? (I hope I'm making sense, cause I need to go get some sleep)
Actually, the code you posted is only to colorize the frame, it doesnt affect at all if debuffs are shown or not. Actually, oUF_DC don't affect if the debuffs are displayed at all, it will affect what debuffs are shown tho.(filter only curable debuffs)

The UnitCanCooperate check it to make sure we dont color blue the target frame if the druid we are attacking has a magic. In other words, why color the frame based on curable debuffs since we can't cure it since its hostile.

If you can't see the debuffs on hostile target its because its only filtering debuffs you can remove. Like i said in the addons description, this addon will force debuffs.filter to be true to work correctly.
The problem here, is from oUF, because debuffs.filter applies no mater if the unit is hostile or friendly, but why filter curable debuffs on hostile target?
I emailed a fix to this to haste(author of oUF) and it should be in the next release of oUF i hope.
This fix will make debuffs.filter to filter curable debuffs on friendly units and show all debuffs on hostile units.

just to clearify, when you are not running oUF_DC, the debuffs.filter isnt set to true, so its showing ALL debuffs(the one you can apply are always moved first in the debuffs order, all other debuffs follow).
Last edited by Coldfury : 04-19-08 at 11:08 AM.
Coldfury is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: