Download
(3 Kb)
Download
Updated: 10-16-10 06:55 AM
Addon for:
oUF.
Pictures
File Info
Updated:10-16-10 06:55 AM
Created:unknown
Downloads:18,144
Favorites:130
MD5:
oUF Combat Feedback  Popular! (More than 5000 hits)
Version: r43-release
by: Ammo [More]
This is an addon that adds CombatFeedback to the oUF unitframes, based on the Blizzard combat feedback code. (Just wish I could reuse their functions easily)

It will display +100 on the frame when someone gets healed for 100 and -100 when someone gets damaged. It will also display block, miss etc.

To use this in your oUF layout you will need a CombatFeedbackText member on your oUF unit object (self):

Code:
	local cbft = self:CreateFontString(nil, "OVERLAY")
	cbft:SetPoint("CENTER", self, "CENTER")
	cbft:SetFontObject(GameFontNormal)
	self.CombatFeedbackText = cbft
Note: this usually places the CombatFeedbackText below the statusbars etc, so you might want to do:
Code:
local cbft = hpbar:CreateFontString(nil, "OVERLAY")
where hpbar is your hitpoints bar.

The combattext fades in and out when the damage happens, you can control the fading on a per unitframe basis by setting the .maxAlpha member
on the CombatFeedbackText string:

Code:
self.CombatFeedbackText.maxAlpha = .8
The default value is .6

You can ignore messages on a per unitframe basis using the following:

Code:
	self.CombatFeedbackText.ignoreImmune = true -- ignore 'immune' reports
	self.CombatFeedbackText.ignoreDamage = true -- ignore damage hits, blocks, misses, parries etc.
	self.CombatFeedbackText.ignoreHeal = true -- ignore heals 
	self.CombatFeedbackText.ignoreEnergize = true -- ignore energize events
	self.CombatFeedbackText.ignoreOther = true  -- ignore everything else
The default will show everything.

You can change the colors by setting a .colors table on the CombatFeedbackText.

The default colors table is:
Code:
local colors = {
	STANDARD		= { 1, 1, 1 }, -- color for everything not in the list below
	-- damage colors
	IMMUNE			= { 1, 1, 1 },
	DAMAGE			= { 1, 0, 0 },
	CRUSHING		= { 1, 0, 0 },
	CRITICAL		= { 1, 0, 0 },
	GLANCING		= { 1, 0, 0 },
	ABSORB			= { 1, 1, 1 },
	BLOCK			= { 1, 1, 1 },
	RESIST			= { 1, 1, 1 },
	MISS			= { 1, 1, 1 },
	-- heal colors
	HEAL			= { 0, 1, 0 },
	CRITHEAL		= { 0, 1, 0 },
	-- energize colors
	ENERGIZE		= { 0.41, 0.8, 0.94 },
	CRITENERGIZE	= { 0.41, 0.8, 0.94 },
}
You can override one or more:
Code:
self.CombatFeedbackText.colors = {
	DAMAGE = {0,1,1},
	CRITHEAL = {0,0,1},
}
Enjoy

-Ammo
r43-release
- 4.0 update

r40-release
- 3.3 compatible

r38-release
- 3.1 toc

r36-release
- Add the ability to change the colors for all types of feedback messages from a layout

r34-release
- wotlk update

r79327
- update for latest oUF

r71484
- fix global arg -> local thanks p3lim

r71247
- Initial upload to wowinterface
Archived Files (4)
File Name
Version
Size
Author
Date
r40-release
3kB
Ammo
12-15-09 02:27 AM
r38-release
3kB
Ammo
04-30-09 05:11 AM
r36-release
4kB
Ammo
04-05-09 03:11 AM
r34-release
4kB
Ammo
12-23-08 04:51 AM


Post A Reply Comment Options
Old 12-15-08, 01:47 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Originally posted by zoktar
hi im looking to get this working on ouf_d3orbs, with hp and mana seperated on each orb, healthorb 2 the left manaorb to the right. is that at all possible(only for self, player unit, all other units are both), with the way combatfeedback works now?. cheers.
nope, you'd have to write somehting special for that
Ammo is offline Report comment to moderator  
Reply With Quote
Old 12-14-08, 12:14 AM  
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations

Forum posts: 72
File comments: 268
Uploads: 1
hi im looking to get this working on ouf_d3orbs, with hp and mana seperated on each orb, healthorb 2 the left manaorb to the right. is that at all possible(only for self, player unit, all other units are both), with the way combatfeedback works now?. cheers.
zoktar is offline Report comment to moderator  
Reply With Quote
Old 11-12-08, 04:00 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 268
File comments: 942
Uploads: 5
I might be wrong but it seems to generate an error in 3.0.3, something with being in combat, i don't have the log here, i'm not at home.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator  
Reply With Quote
Old 08-08-08, 02:40 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Originally posted by MoonWitch
Does this only show heals done by the person who has the addon?

eg. I use it, I heal person_x, my fellow healer heals person_y, will this show both heals?
It will show both. It will show all heals on that unit, regardless of the healer
Ammo is offline Report comment to moderator  
Reply With Quote
Old 08-07-08, 05:12 PM  
MoonWitch
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 342
File comments: 148
Uploads: 8
Does this only show heals done by the person who has the addon?

eg. I use it, I heal person_x, my fellow healer heals person_y, will this show both heals?
MoonWitch is offline Report comment to moderator  
Reply With Quote
Old 04-26-08, 02:58 PM  
Purity
A Deviate Faerie Dragon

Forum posts: 16
File comments: 177
Uploads: 0
Originally posted by Ammo
oUF Combat Feedback obeys the initial fontsize set by your layout. So setting the CombatFeedbackText font larger will work.

object.CombatFeedbackText:SetFont("path\\to\\myfont.ttf", 16, "OUTLINE")
or
object.CombatFeedbackText:SetFontObject(GameFontNormalLarge)

-Ammo
Thank you Ammo!
__________________
Purity is offline Report comment to moderator  
Reply With Quote
Old 04-26-08, 12:39 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Originally posted by Purity
Works really nice. How can I make the font different? I can barely see it. I would like it larger for sure and perhaps a different font from sharedmedia?

Many thanks in advance!

Never mind, I am pretty sure I figured it out from looking at the other addon's description by P3lim.
oUF Combat Feedback obeys the initial fontsize set by your layout. So setting the CombatFeedbackText font larger will work.

object.CombatFeedbackText:SetFont("path\\to\\myfont.ttf", 16, "OUTLINE")
or
object.CombatFeedbackText:SetFontObject(GameFontNormalLarge)

-Ammo
Ammo is offline Report comment to moderator  
Reply With Quote
Old 04-25-08, 01:38 PM  
Purity
A Deviate Faerie Dragon

Forum posts: 16
File comments: 177
Uploads: 0
Works really nice. How can I make the font different? I can barely see it. I would like it larger for sure and perhaps a different font from sharedmedia?

Many thanks in advance!

Never mind, I am pretty sure I figured it out from looking at the other addon's description by P3lim.
__________________
Last edited by Purity : 04-25-08 at 06:17 PM.
Purity is offline Report comment to moderator  
Reply With Quote
Old 04-25-08, 11:11 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Originally posted by p3lim
arg is not a local
Will be fixed on next upload, thanks for the find.
Ammo is offline Report comment to moderator  
Reply With Quote
Old 04-25-08, 07:55 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1177
File comments: 1205
Uploads: 25
arg is not a local
p3lim is offline Report comment to moderator  
Reply With Quote
Old 04-24-08, 01:50 PM  
DJJoeJoe
A Murloc Raider
 
DJJoeJoe's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 5
File comments: 168
Uploads: 1
In a perfect world two people would collaborate to reduce redundant addons, functions from both could be melded and your efforts could be combined.
__________________

Joetest - Ner'Zhul - Disciples of Death
DJJoeJoe is offline Report comment to moderator  
Reply With Quote
Old 04-24-08, 01:29 PM  
nodq
A Kobold Labourer
 
nodq's Avatar

Forum posts: 0
File comments: 106
Uploads: 0
Originally posted by Coldfury
he already answered that, read 3 comments below.

Ya, i thought battletext does this too? Hm, oki the per unitframe on/off thingy it does not, thats right. just wanted to know i use this one here, the deactivating per unitframe is great. thanks.
nodq is offline Report comment to moderator  
Reply With Quote
Old 04-24-08, 12:45 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by nodq
Hi, sorry to ask, but whats exactl the differnce between the Battletext of p3lim, which you cleaned up on the code too? And what does this here better or in another way?

greetings
he already answered that, read 3 comments below.
Coldfury is offline Report comment to moderator  
Reply With Quote
Old 04-24-08, 12:21 PM  
nodq
A Kobold Labourer
 
nodq's Avatar

Forum posts: 0
File comments: 106
Uploads: 0
Hi, sorry to ask, but whats exactl the differnce between the Battletext of p3lim, which you cleaned up on the code too? And what does this here better or in another way?



greetings
nodq is offline Report comment to moderator  
Reply With Quote
Old 04-24-08, 10:49 AM  
Flarin
A Frostmaul Preserver
 
Flarin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 290
File comments: 152
Uploads: 1
@Ammo- thank you VERY VERY VERY much for this! Very nice and easy to use and understand. Awesome.
__________________

"I will crush and destroy and...ooo...shiny..."

[SIGPIC][/SIGPIC]
Flarin is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: