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