Minion Beta! - Help us test our new AddOn updater. Get it now!
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,295
Favorites:127
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 03: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 05:51 AM


Post A Reply Comment Options
Unread 09-07-10, 04:33 AM  
cocotimbo
A Deviate Faerie Dragon
 
cocotimbo's Avatar

Forum posts: 11
File comments: 38
Uploads: 0
Originally posted by zoktar
if anyone feels like adding this to rothui (ouf_d3orbs) would be my hero .
iv tried to implement it myself but my lack of lua/ouf knowledge renders me fit to only edit obvious things. basicly everything but mana gains would be nice on the health orb and energy gains on the energy/mana/rage orb. if thats to complex, all on the healthorb would be ok aswell.

it seems like someone with basic lua/ouf knowledge could add this within a minute, but i cannot read it :/.
This!
I use monoUI and I have the same problem. Anyone can help plz?
cocotimbo is offline Report comment to moderator  
Reply With Quote
Unread 11-05-10, 05:19 PM  
cocotimbo
A Deviate Faerie Dragon
 
cocotimbo's Avatar

Forum posts: 11
File comments: 38
Uploads: 0
Originally posted by cocotimbo
This!
I use monoUI and I have the same problem. Anyone can help plz?
Is there anybody in this forum?

06.11.10
Still using MonoUI and oUF Combat Feedback seems to work only in my player frame. I'd like to make it work on the target frame too. Any help please?
cocotimbo is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: