Addon Info.
Change Log
Optional Files (0)
Archived (1)
Comments (12)
  Category: Unit Mods
Addon Information
Works with Patch 2.4
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Ammo's Portal Bug Reports Feature Requests
Author:
Version:
r71484
Date:
04-26-2008 01:35 AM
Size:
5.51 Kb
Downloads:
752
Views:
3,433
Favorites:
17
MD5:
Pictures
ha! dodged!
ugh they got me!
oUF Combat Feedback
Rate: 5 out of 5 with 2 votes  
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.


Enjoy

-Ammo
  Change Log - oUF Combat Feedback
r71484
- fix global arg -> local thanks p3lim

r71247
- Initial upload to wowinterface
  Optional Files - oUF Combat Feedback
Sorry, there are currently no optional files available.
  Archived Versions - oUF Combat Feedback
File Name
Version
Size
Author
Date
r72347
4.92 Kb
Ammo
04-24-2008 10:49 AM
  Comments - oUF Combat Feedback
Post A Reply
Author Comments Comment Options
Old 04-26-2008, 03:58 PM  
Purity
A Deviate Faerie Dragon

Forum posts: 13
File comments: 75
Uploads: 0
Quote:
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 online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-26-2008, 01:39 AM  
Ammo
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 44
Uploads: 18
Quote:
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   Edit/Delete Message Reply With Quote
Old 04-25-2008, 02:38 PM  
Purity
A Deviate Faerie Dragon

Forum posts: 13
File comments: 75
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-2008 at 07:17 PM.
Purity is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-25-2008, 12:11 PM  
Ammo
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 44
Uploads: 18
Quote:
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   Edit/Delete Message Reply With Quote
Old 04-25-2008, 08:55 AM  
p3lim
A Murloc Raider
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 136
Uploads: 12
arg is not a local
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-24-2008, 02:50 PM  
DJJoeJoe
A Murloc Raider
 
DJJoeJoe's Avatar

Forum posts: 4
File comments: 77
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   Edit/Delete Message Reply With Quote
Old 04-24-2008, 02:29 PM  
nodq
A Kobold Labourer

Forum posts: 0
File comments: 64
Uploads: 0
Quote:
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   Edit/Delete Message Reply With Quote
Old 04-24-2008, 01:45 PM  
Coldfury
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 9
File comments: 63
Uploads: 3
Quote:
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   Edit/Delete Message Reply With Quote
Old 04-24-2008, 01:21 PM  
nodq
A Kobold Labourer

Forum posts: 0
File comments: 64
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   Edit/Delete Message Reply With Quote
Old 04-24-2008, 11:49 AM  
Flarin
Premium Member
 
Flarin's Avatar
Premium Member

Forum posts: 211
File comments: 75
Uploads: 0
@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..."
Flarin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-24-2008, 11:06 AM  
Ammo
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 44
Uploads: 18
It's configurable on a per unitframe basis
shows miss, block, immune etc in addition to the numbers
behaves similar to the blizzard combat feedback: sizes crits bigger and glances smaller
uses a clean method to add its event handler to oUF
doesn't taint the UIFrameFlash which in turns taints the voicechat status frame

-Ammo
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-24-2008, 11:04 AM  
Mikma
A Deviate Faerie Dragon
 
Mikma's Avatar
Interface Author - Click to view interfaces

Forum posts: 18
File comments: 40
Uploads: 8
wut?

How is this addon any different than the other one?
http://www.wowinterface.com/downloads/info8745-1.1.html
Mikma is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:



The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


MMOInterface.com Copyright ©2008
World of Warcraft is a registered Trademark of Blizzard Entertainment.
vBulletin - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.