• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

oUF_CombatFeedback

 

Project Updated:
Files Updated: Thu, Apr 30 2009
Supports Game Version: 3.1.0
Category: Unit Frames
Tags:

[Edit Tags]

Project Manager: Ammo
Additional Authors: No additional authors
Current Version: r38-release
License: All Rights Reserved
Development Site: WowAce.com
Avg Daily DL (last 30 days): 7
Downloads Total: 4,052
Favorites: 4
Comments: 0
  • About oUF_CombatFeedback
  •  

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

	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.

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

The default colors table is:

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:

self.CombatFeedbackText.colors = {
	DAMAGE = {0,1,1},
	CRITHEAL = {0,0,1},
}


Enjoy

-Ammo

  • Downloads (5)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  oUF_CombatFeedback r38-release Release 3.1.0 1,885 4/30/2009
  oUF_CombatFeedback r36-release Release 3.0.9 707 4/5/2009
  oUF_CombatFeedback r34-release Release 3.0.3 1,060 11/10/2008
  oUF_CombatFeedback-r79327 Beta 2.4.3 270 7/28/2008
  oUF_CombatFeedback-r71484 Beta 2.4.3 91 4/25/2008
  • 1 page(s)
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Similar Addons
  •  

Average downloads per day

  1. 19,744 HealBot Continued Buffs & Debuffs, Class, and...
  2. 9,635 X-Perl UnitFrames Raid Frames, and Unit Frames
  3. 2,241 Grid Unit Frames
  4. 1,705 VuhDo Buffs & Debuffs, Druid, Healer...
  5. 1,164 PitBull Unit Frames 4.0 Unit Frames