This is an addon that adds CombatFeedback to the oUF unitframes.

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):

	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:
	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:

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

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

	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.


Enjoy

-Ammo 