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):
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:
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 :/.
For those that need this like I do, I found a fix to the issue described below.
1) Open oUF_CombatFeedback\oUF_CombatFeedback.lua with notepad.
2) Go to line 138 (use Ctrl-G) and either delete the line or comment it out by changing the line to
I get the following error with combat feedback being enabled and it also stopped working.
Code:
oUF: Error: Handler for event [UNIT_COMBAT] on unit [unknown] does not exist.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."
"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."
Complications arose, ensued, were overcome.
Originally posted by Syngian This doesn't seem to be working on my targettarget frame, yet it works on every other frame I have- did I miss something? :/
Blizzard doesn't provide info for the targettarget frame. hence it does not work
Originally posted by Ammo nope, you'd have to write somehting special for that
damn, u have anything like this planned atm?. perhaps have some sort of container setup, where u could set in the lua wich feedbacks go into wich container
cant really think of a good cause to put some feedback on one spot and other feedback on another. cept for mana and hp if they where seperate unit frames, wich they are in ouf_d3orbs. thinking what other type of text one could put on the a mana bar/orb, if this addon had the function to seperate combat info.
mana regen tick perhaps?, mana drain, mana gain, mana usage?(when u cast spells).
just realized iv been saying mana the hole time ofc rage/energy would be cool 2. also sorry for repeats/bad writing 2 lazy to edit atm.
edit, i have a bigger problem, cant seem to figure out how to attach ouf_combatfeedback to the healthorb in ouf_d3orbs, doesnt seem to have a specific name. (im lua noob).
edit, just curious if u want 2 have combatfeedback on 2 frames. could u not define what should be shown and not per frame, like said in readme?.then id just keep all but energisze on healthframe, and only energize on mana frame.
wouldnt that work?. (still havnt figured out how to get it working in ouf_d3orbs at all. with direct copy of the code on main page just gives me index self nil global type error.
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
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.