Quantcast
Download
(3 Kb)
Download
Updated: 05-13-17 01:53 AM
Pictures
File Info
Compatibility:
Tomb of Sargeras (7.2.0)
Updated:05-13-17 01:53 AM
Created:12-19-13 12:48 PM
Downloads:1,888
Favorites:13
MD5:

oUF FloatingCombatFeedback

Version: 70200.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: fountain and vertical;
- Two scrolling directions: upwards and downwards.

Usage
To use this plug-in you have to create two things:
- A Frame. It'll be used as the anchor and the "container" for feedback FontStrings:

Lua Code:
  1. local fcf = CreateFrame("Frame", nil, self)
  2. fcf:SetSize(32, 32)
  3. fcf:SetPoint("CENTER")
- FontStrings. You can create as many feedback FontStrings as you want, but I recommend to create only 4-8 of them:
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
For info on options, please see project's GH page.

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.

Version 70200.02

- Made sure that it's possible to update all options on the fly.

Version 70200.01

- New version format: INTERFACE_VERSION.PATCH;
- Added 7.2 support;
- Added `.schoolColors` option to override school colours;
- Refactored and optimised code.

Version 2.02

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

Version 2.01

- Widget revamp;
- Damage text is now coloured according to damage type/school;
- Added an option to abbreviate numbers.
Archived Files (3)
File Name
Version
Size
Author
Date
70200.01
3kB
lightspark
03-28-17 08:37 AM
2.02
2kB
lightspark
07-23-16 02:45 PM
2.01
2kB
lightspark
07-19-16 04:36 PM


Post A Reply Comment Options
Unread 05-16-17, 03:47 PM  
lightspark
A Cobalt Mageweaver
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 245
File comments: 606
Uploads: 6
Originally Posted by gmarco
Really thanks lightspark
You're welcome
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Report comment to moderator  
Reply With Quote
Unread 05-16-17, 11:35 AM  
gmarco
A Cobalt Mageweaver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 231
File comments: 151
Uploads: 36
Really thanks lightspark

Show me your code o_O
oUF is embedded, did you embed oUF_FCF too? oUF_FCF is a plugin, so it has to be loaded AFTER oUF.
Ehm it was here the problem ... I didn't embeded oUF_FloatingCombatFeedback.lua ... I simply put it as addon in the in the addon folder.
Then I wrote a fcf.lua with the code you point out in the about page in the modules dir and I included it in the toc file.

It didn't and could not work
So forget about it

Your code instead is perfect and works like a charm.
Thanks so much again
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 05-16-17 at 11:35 AM.
Report comment to moderator  
Reply With Quote
Unread 05-16-17, 01:05 AM  
lightspark
A Cobalt Mageweaver
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 245
File comments: 606
Uploads: 6
Originally Posted by gmarco
Thanks for the reply lightspark,

probably I miss something because I am not able to let it works OUF_Simple.

I have tried to add the code almost everywhere in the OUF_simple files but I always get errors.
Could be the custom embedded OUF version OUF_Simple is using ?.

I have tried to find my unit frame name.



oUF_Simple.FloatingCombatFeedback = feeback
oUF_SimplePlayer.FloatingCombatFeedback = feeback

but neither works.

Thanks.
Show me your code o_O

oUF is embedded, did you embed oUF_FCF too? oUF_FCF is a plugin, so it has to be loaded AFTER oUF.

So, I put oUF_FCF.lua inside \modules folder, I added it to oUF_Simple.toc file:
Lua Code:
  1. modules\rAbsorbBar.lua
  2. modules\rClassBar.lua
  3. -- here, right after other oUF plugins
  4. modules\oUF_FloatingCombatFeedback.lua

Then I added this code to CreateStyle func in \core\style.lua:
Lua Code:
  1. if self.unit == "player" then
  2.     local feeback = CreateFrame("Frame", nil, self)
  3.     feeback:SetSize(32, 32)
  4.     feeback:SetPoint("CENTER", 0, 0)
  5.     self.FloatingCombatFeedback = feeback
  6.  
  7.     for i = 1, 6 do
  8.         feeback[i] = feeback:CreateFontString(nil, "OVERLAY", "CombatTextFont")
  9.     end
  10.  
  11.     feeback.mode = "Fountain"
  12.     feeback.xOffset = 15
  13.     feeback.yOffset = 20
  14.     feeback.abbreviateNumbers = true
  15. end

Result:
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Report comment to moderator  
Reply With Quote
Unread 05-15-17, 10:09 PM  
gmarco
A Cobalt Mageweaver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 231
File comments: 151
Uploads: 36
Thanks for the reply lightspark,

probably I miss something because I am not able to let it works OUF_Simple.

I have tried to add the code almost everywhere in the OUF_simple files but I always get errors.
Could be the custom embedded OUF version OUF_Simple is using ?.

I have tried to find my unit frame name.



oUF_Simple.FloatingCombatFeedback = feeback
oUF_SimplePlayer.FloatingCombatFeedback = feeback

but neither works.


Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 05-15-17 at 10:30 PM.
Report comment to moderator  
Reply With Quote
Unread 05-15-17, 12:43 AM  
lightspark
A Cobalt Mageweaver
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 245
File comments: 606
Uploads: 6
Originally Posted by gmarco
Hi lightspark,

I was trying to use this addon in a OUF ui (oUF_Simple).
But I was unable to get it works.

Should the UI be able to use it or it should work on any OUF interface ?

Thanks.
Well that how I use it in my layout:
Lua Code:
  1. -- frame is my unit frame
  2. local feeback = CreateFrame("Frame", nil, frame)
  3. feeback:SetSize(32, 32)
  4. feeback:SetPoint("CENTER", 0, 0)
  5. frame.FloatingCombatFeedback = feeback
  6.  
  7. for i = 1, 6 do
  8.     feeback[i] = feeback:CreateFontString(nil, "OVERLAY", "CombatTextFont")
  9. end
  10.  
  11. feeback.mode = "Fountain"
  12. feeback.xOffset = 15
  13. feeback.yOffset = 20
  14. feeback.abbreviateNumbers = true

Everything else is handled by the plugin itself, so it should work w/ any oUF-based interface, I tested it on oUF Phanx, hence screenshots.
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 05-15-17 at 01:03 AM.
Report comment to moderator  
Reply With Quote
Unread 05-14-17, 10:48 PM  
gmarco
A Cobalt Mageweaver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 231
File comments: 151
Uploads: 36
Hi lightspark,

I was trying to use this addon in a OUF ui (oUF_Simple).
But I was unable to get it works.

Should the UI be able to use it or it should work on any OUF interface ?

Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 05-14-17 at 10:49 PM.
Report comment to moderator  
Reply With Quote
Unread 07-19-16, 05:27 PM  
lightspark
A Cobalt Mageweaver
 
lightspark's Avatar
AddOn Author - Click to view AddOns

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

Forum posts: 245
File comments: 606
Uploads: 6
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: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: 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 Cobalt Mageweaver
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 245
File comments: 606
Uploads: 6
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: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: 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 Deviate Faerie Dragon

Forum posts: 10
File comments: 81
Uploads: 0
Direction

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



Category Jump: