Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(2 Kb)
Download
Updated: 06-17-14 04:07 AM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:06-17-14 04:07 AM
Created:12-19-13 12:48 PM
Downloads:396
Favorites:6
MD5:

oUF FloatingCombatFeedback

Version: 1.0.3
by: lightspark [More]

oUF FloatingCombatFeedback is a plugin for oUF framework

TSIA, this plugin provides floating combat feedback support for oUF layouts. It's based on blizzard combat feedback and floating combat text code.

KEY FEATURE

There are two modes how feedback floats:

  • Fountain
  • Vertical a.k.a Standard

HOW-TO

To use this feature you have to create frame, which will be oUF unit object's FloatingCombatFeedback member and then create few FontStrings:
Lua Code:
  1. self.FloatingCombatFeedback = CreateFrame("Frame", nil, self.Health)
  2. for i = 1, 4 do
  3.     self.FloatingCombatFeedback[i] = self.FloatingCombatFeedback:CreateFontString(nil, "OVERLAY")
  4.     self.FloatingCombatFeedback[i]:SetFontObject(GameFontNormal)
  5. end
I'd recommend 4-6 FSs. If you have a quite complex unitframe, I suggest to make sure that FCF frame is on a higher frame level and strata than ur health bar, frames and textures, e.g. unitframe's border and others.

OPTIONS

As I said before, there are 2 modes, by default floating is set to standard mode, to switch to fountain mode you need to do this:
Lua Code:
  1. self.FloatingCombatFeedback.Mode = "Fountain"
If you write anything else than "Fountain", default mode will be used.

ATTENTION! .Offset was renamed to .XOffset
Feedback spawns symmetrically at two points, to manage a distance between two columns you can use .XOffset option:
Lua Code:
  1. self.FloatingCombatFeedback.XOffset = 30
Number can be either positive or negative, for fountain it better be positive . By default fountain's x-offset is 6 and standard's is 30

NEW! To move feedback's spawn point up or down you can use .YOffset option:
Lua Code:
  1. self.FloatingCombatFeedback.YOffset = 8
Number can be either positive or negative. By default y-offset is set to 8.

NEW! From now on you can make text float either upwards or downwards, to do so you have to use new .YDirection option:
Lua Code:
  1. self.FloatingCombatFeedback.YDirection = 1
Should be either 1 or -1, if you choose 1, text'll float upwards, if -1 - downwards. By default direction is set to 1.

You can adjust how long it takes for a text to float and disappear, default value is 1.5sec.
Lua Code:
  1. self.FloatingCombatFeedback.ScrollTime = 1.5

Some of the events can be ignored using .ignore%event% option. By default all the events are displayed.
Lua Code:
  1. self.FloatingCombatFeedback.ignoreImmune = true -- ignore 'immune' reports
  2. self.FloatingCombatFeedback.ignoreDamage = true-- ignore damage hits, blocks, misses, parries etc.
  3. self.FloatingCombatFeedback.ignoreHeal = true -- ignore heals
  4. self.FloatingCombatFeedback.ignoreEnergize = true -- ignore energize events
  5. self.FloatingCombatFeedback.ignoreMisc = true  -- ignore everything else, some of miss events are here

Feedback is colored in different colours according to its event. Colors can be overridden independently
Lua Code:
  1. self.FloatingCombatFeedback.colors = {
  2.     ["MISS"] = {1, 0, 1},
  3. }

Default color table is:
Lua Code:
  1. local colors = {
  2.     ["DEFAULT"] = {1, 1, 1},
  3.     ["INTERRUPT"] = {1, 1, 1},
  4.     ["MISS"] = {1, 1, 1},
  5.     ["RESIST"] = {1, 1, 1},
  6.     ["DODGE"] = {1, 1, 1},
  7.     ["PARRY"] = {1, 1, 1},
  8.     ["BLOCK"] = {1, 1, 1},
  9.     ["EVADE"] = {1, 1, 1},
  10.     ["IMMUNE"] = {1, 1, 1},
  11.     ["DEFLECT"] = {1, 1, 1},
  12.     ["ABSORB"] = {1, 1, 1},
  13.     ["REFLECT"] = {1, 1, 1},
  14.     ["WOUND"] = {0.7, 0.1, 0.1},
  15.     ["HEAL"] = {0.1, 0.8, 0.1},
  16.     ["ENERGIZE"] = {0.11, 0.75, 0.95},
  17. }

BUGS & SUGGESTIONS

If you find a bug or have a reasonable suggestion, please sumbit a report to Issue Tracker on my GitHub page.

CREDITS

Credits go to Ammo for event-ignore idea!

1.0.3

- New .YDirection option allows to switch between upward to downward floating.
- .Offset was renamed to .XOffset
- New .YOffset option does the same as .XOffset does, but for Y-axis

1.0.2

- Fixed X-axis scrolling.

1.0.1

- Fixed typos.

1.0.0

- Initial release.
Archived Files (2)
File Name
Version
Size
Author
Date
1.0.2
2kB
lightspark
01-04-14 06:27 AM
1.0.1
2kB
lightspark
12-19-13 02:11 PM


Post A Reply Comment Options
Unread 02-09-14, 09:25 PM  
lightspark
A Fallenroot Satyr
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 28
File comments: 70
Uploads: 3
Re: Direction

Originally Posted by Taet
Plz any chance change direction from UP to DOWN ?
Will do. I'll push a new commit on wednesday and will upload a new version here
Sorry for a late reply, I was on vacation in a high mountain region with no internet there for few weeks
__________________
oUF LS WoWInterface | Curse | GitHub
Last edited by lightspark : 02-09-14 at 09:26 PM.
lightspark is offline Report comment to moderator  
Reply With Quote
Unread 01-23-14, 06:00 AM  
Taet
A Murloc Raider

Forum posts: 7
File comments: 60
Uploads: 0
Direction

Plz any chance change direction from UP to DOWN ?
Taet is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: