Quantcast
Download
(5 Kb)
Download
Updated: 05-24-19 12:51 AM
Pictures
File Info
Compatibility:
Zandalari and Kul Tiran (8.1.5)
Updated:05-24-19 12:51 AM
Created:12-19-13 12:48 PM
Downloads:2,437
Favorites:15
MD5:
8.1.5

oUF FloatingCombatFeedback

Version: 4.2.0
by: lightspark [More]

oUF: FloatingCombatFeedback is a plugin for oUF framework.

Usage

To use this plugin you need to create a frame and a set of font strings, and then register the frame with oUF:

Lua Code:
  1. local fcf = CreateFrame("Frame", nil, self)
  2. fcf:SetSize(32, 32)
  3. fcf:SetPoint("CENTER")
  4.  
  5. for i = 1, 6 do
  6.     -- give names to these font strings to avoid breaking /fstack and /tinspect
  7.     fcf[i] = fcf:CreateFontString("$parentFCFText" .. i, "OVERLAY")
  8. end
  9.  
  10. self.FloatingCombatFeedback = fcf

Options

For info on options, please visit GitHub, or just read the code.

Feedback and Feature Requests

If you found a bug or want to share an idea on how to improve my addon, either use the issue tracker on GitHub, or post a comment on WoWInterface.

Version 4.2.0

- Added optional colouring by school for non-WOUND events. See the `.tryToColorBySchool` table for more info;
- Added `SPELL_INTERRUPT` support to CLEU mode. TY [email protected] for the idea and base implementation.

Version 4.1.0

- Added [code single]COMBAT_LOG_EVENT_UNFILTERED[/code] support. See Options > Modes;
- Added colours for known multi-schools. See Options > Colours;
- Reworked the way the font is handled. There's no need to use FontObject templates anymore, they
are optional now, to set the font and its flags use [code single].font[/code] and [code single].fontFlags[/code] options. See
Options > Text.

Version 4.0.0

- Rewrote the entire plugin. Readopted semver because using INTERFACE_VERSION
for a plugin that's so rarely updated isn't a good choice;
- Numerous new options. It's way more configurable now. Please, see the README
on GitHub or just read the code.
Archived Files (6)
File Name
Version
Size
Author
Date
4.1.0
5kB
lightspark
04-02-19 09:26 AM
4.0.0
3kB
lightspark
03-30-19 05:50 AM
70200.02
3kB
lightspark
05-13-17 01:53 AM
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 Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 321
File comments: 842
Uploads: 6
Originally Posted by gmarco
Really thanks lightspark
You're welcome
__________________
Report comment to moderator  
Reply With Quote
Unread 05-16-17, 11:35 AM  
gmarco
A Frostmaul Preserver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 251
File comments: 199
Uploads: 39
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 Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 321
File comments: 842
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:
__________________
Report comment to moderator  
Reply With Quote
Unread 05-15-17, 10:09 PM  
gmarco
A Frostmaul Preserver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 251
File comments: 199
Uploads: 39
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 Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 321
File comments: 842
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.
__________________
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 Frostmaul Preserver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 251
File comments: 199
Uploads: 39
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 Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 321
File comments: 842
Uploads: 6
Updated this bad boy, please, read description for more info. I've done quite many changes to this plug-in.
__________________
Report comment to moderator  
Reply With Quote
Unread 06-01-16, 06:01 AM  
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 321
File comments: 842
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.
__________________
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 Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 321
File comments: 842
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
__________________
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: 15
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: