Quantcast
Download
(2 Kb)
Download
Updated: 07-23-16 02:45 PM
Pictures
File Info
Compatibility:
Legion Pre-Patch (7.0.3)
Updated:07-23-16 02:45 PM
Created:12-19-13 12:48 PM
Downloads:1,228
Favorites:10
MD5:
7.0.3

oUF FloatingCombatFeedback

Version: 2.02
by: lightspark [More]

oUF: FloatingCombatFeedback is a plug-in for oUF framework, and provides floating combat feedback support for oUF-based layouts.

Features
- Two scrolling modes, viz., fountain and vertical;
- Two scrolling directions, viz., upwards and downwards.

Usage
To use this plug-in you have to create two things:
- Frame. It will be used as an anchor for combat text and as our main widget;

Lua Code:
  1. local fcf = CreateFrame("Frame", nil, self)
  2. fcf:SetSize(32, 32)
  3. fcf:SetPoint("CENTER")
- FontStrings. You can create as many FontStrings as you want, but I'd recommend to create 4-8 of them, they should be nested within FCF frame;
Lua Code:
  1. for i = 1, 6 do
  2.     fcf[i] = fcf:CreateFontString(nil, "OVERLAY", "CombatTextFont")
  3. end
- Register FCF frame with oUF:
Lua Code:
  1. self.FloatingCombatFeedback = fcf
Note: If you create your own font object, I strongly recommend to use big font sizes, e.g. CombatTextFont's size is 64px.

Options
- Scrolling modes. By default, vertical scrolling mode is used:
Lua Code:
  1. self.FloatingCombatFeedback.mode = "Fountain" -- will switch FCF to fountain mode
- Vertical scrolling directions. By default, text scrolls upwards:
Lua Code:
  1. self.FloatingCombatFeedback.yDirection = -1 -- will make text scroll downwards
- Starting point offsets. Feedback text spawns symmetrically at two points, that are offset from FCF frame's centre point. By default, offsets are x = 6, y = 8 in fountain mode, and x = 30, y = 8 in vertical mode:
Lua Code:
  1. self.FloatingCombatFeedback.xOffset = 60
  2. self.FloatingCombatFeedback.yOffset = 16
- Scrolling time. By default, it takes 1.5s for a text to scroll and fadeout:
Lua Code:
  1. self.FloatingCombatFeedback.scrollTime = 3 -- will make text float for 3 seconds
- Font height. By default, font strings are scaled down to 18px height, critical hit text height is multiplied by 1.25:
Lua Code:
  1. self.FloatingCombatFeedback.fontHeight = 24
- Number abbreviation. By default, damage/healing numbers aren't abbreviated:
Lua Code:
  1. self.FloatingCombatFeedback.abbreviateNumbers = true -- will abbreviate numbers
- Text colouring. Default colours may be overridden:
Lua Code:
  1. -- Default colour table:
  2. -- local colors = {
  3. --  ABSORB      = {r = 1.00, g = 1.00, b = 1.00},
  4. --  BLOCK       = {r = 1.00, g = 1.00, b = 1.00},
  5. --  DEFLECT     = {r = 1.00, g = 1.00, b = 1.00},
  6. --  DODGE       = {r = 1.00, g = 1.00, b = 1.00},
  7. --  ENERGIZE    = {r = 0.41, g = 0.80, b = 0.94},
  8. --  EVADE       = {r = 1.00, g = 1.00, b = 1.00},
  9. --  HEAL        = {r = 0.10, g = 0.80, b = 0.10},
  10. --  IMMUNE      = {r = 1.00, g = 1.00, b = 1.00},
  11. --  INTERRUPT   = {r = 1.00, g = 1.00, b = 1.00},
  12. --  MISS        = {r = 1.00, g = 1.00, b = 1.00},
  13. --  PARRY       = {r = 1.00, g = 1.00, b = 1.00},
  14. --  REFLECT     = {r = 1.00, g = 1.00, b = 1.00},
  15. --  RESIST      = {r = 1.00, g = 1.00, b = 1.00},
  16. --  WOUND       = {r = 0.70, g = 0.10, b = 0.10},
  17. -- }
  18.  
  19. -- will override MISS event colour:
  20. self.FloatingCombatFeedback.colors = {
  21.     ["MISS"] = {1, 0, 1},
  22. }
- Event blacklisting.
Lua Code:
  1. self.FloatingCombatFeedback.ignoreDamage = true -- will ignore damage events
  2. self.FloatingCombatFeedback.ignoreEnergize = true -- will ignore energize events
  3. self.FloatingCombatFeedback.ignoreHeal = true -- will ignore heals events
  4. self.FloatingCombatFeedback.ignoreMisc = true  -- will ignore miss, block, parry and other events
Feedback And Feature Requests
If you found a bug or want to share an idea on how to improve my addon, either report to Issue Tracker on my GitHub page, or post a comment on WoWInterfrace.

Credits
This plug-in is based on Blizzard combat feedback and floating combat text code.

2.02

- Fixed text blinking issue;
- Tweaked standard vertical scrolling.

2.01

- Widget revamp;
- Damage text is now coloured according to damage type/school;
- Added an option to abbreviate numbers.

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 (1)
File Name
Version
Size
Author
Date
2.01
2kB
lightspark
07-19-16 04:36 PM


Post A Reply Comment Options
Unread 07-19-16, 05:27 PM  
lightspark
A Flamescale Wyrmkin
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 118
File comments: 324
Uploads: 5
Updated this bad boy, please, read description for more info. I've done quite many changes to this plug-in.
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Report comment to moderator  
Reply With Quote
Unread 06-01-16, 06:01 AM  
lightspark
A Flamescale Wyrmkin
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 118
File comments: 324
Uploads: 5
Hi!

There's a new version of this plug-in on my GitHub, it's v2, so it's not backward compatible, you'll need to fix widget options, because I renamed them

There's a proper README now, so you won't have any issues.

P.S. Release postponed till Legion.
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Last edited by lightspark : 06-14-16 at 05:56 PM.
Report comment to moderator  
Reply With Quote
Unread 02-09-14, 09:25 PM  
lightspark
A Flamescale Wyrmkin
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 118
File comments: 324
Uploads: 5
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
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Last edited by lightspark : 02-09-14 at 09:26 PM.
Report comment to moderator  
Reply With Quote
Unread 01-23-14, 06:00 AM  
Taet
A Murloc Raider

Forum posts: 9
File comments: 76
Uploads: 0
Direction

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



Category Jump: