Download
(40Kb)
Download
Updated: 06-29-10 10:30 AM
Pictures
File Info
Updated:06-29-10 10:30 AM
Created:09-28-09 12:33 PM
Downloads:13,672
Favorites:52
MD5:

oUF HealComm4  Popular! (More than 5000 hits)

Version: v2.2.2
by: yj589794 [More]

This is an update of oUF_HealComm to use the new LibHealComm-4.0 library and includes LibWrapperHealComm-1.0 for backwards compatability with LibHealComm-3.0 used by lots of healing and unit frame addons.

The main advantages of the new library is support for Heals over Time and Channelled Heals, and for using the unique GUID for identifying the healing targets.

Horizontal and Vertical oUF layouts are also supported.

-----------

To display a bar for incoming heals your oUF layout needs to define a statusbar self.HealCommBar

Code:
	self.HealCommBar = CreateFrame('StatusBar', nil, self.Health)
	self.HealCommBar:SetHeight(0)
	self.HealCommBar:SetWidth(0)
	self.HealCommBar:SetStatusBarTexture(self.Health:GetStatusBarTexture():GetTexture())
	self.HealCommBar:SetStatusBarColor(0, 1, 0, 0.25)
	self.HealCommBar:SetPoint('LEFT', self.Health, 'LEFT')

	-- optional flag to show overhealing
	self.allowHealCommOverflow = true

To display text for incoming heals your oUF layout needs to define a fontstring self.HealCommText
Code:
	self.HealCommText = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
	self.HealCommText:SetTextColor(0, 1, 0)
	self.HealCommText:SetPoint('RIGHT', health, 'LEFT', -5, 0)

	-- optional routine override to format the text display
	self.HealCommTextFormat = shortVal

If you do not want to see the heals you cast, then you can define the flag self.HealCommOthersOnly
Code:
	self.HealCommOthersOnly = true
If you want to limit the incoming heals to those that land x seconds from now you can define the option self.HealCommTimeframe
Code:
	-- limit to the next 3 seconds incoming heals
	self.HealCommTimeframe = 3

v2.2.2
- update to v1.6.6 of LibHealComm-4.0

v2.2.1
- update to v1.6.5 of LibHealComm-4.0
- minor code style changes that have no effect on functionality

v2.2.0
- update to v1.6.4 of LibHealComm-4.0
- ensure we make a local copy of string.format (unnoticeable speed boost)
- remove LibWrapperHealComm-1.0 library as I see next to no traffic on it now

v2.1.0
- update to v1.6.3 of LibHealComm-4.0
- fix minor bug with some incoming heal bars showing on units with full health and overflow disabled

v2.0.6
- update to v1.6.2 of LibHealComm-4.0
- addition of self.HealCommTimeframe option

v2.0.5
- update to v1.6.1 of LibHealComm-4.0

v2.0.4
- update to v1.6 of LibHealComm-4.0

v2.0.3
- update to v1.5.7 of LibHealComm-4.0

v2.0.2
- tidy namespace code
- update to v1.5.6 of LibHealComm-4.0
- update to v5.2 of LibWrapperHealComm-1.0

v2.0.1
- fix namespace issue

v2.0.0
- update to v1.5.5-release of LibHealComm-4.0
- major rewrite of code to be not hooky
Post A Reply Comment Options
Unread 09-30-09, 06:37 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 1
I'm not sure what is happening in these odd cases. I had a situation today where player heals were fine, but after finishing an instance they stopped working, although I could still see heals on myself through other frames (target, targetoftarget, focus and party)

This is going to be tough to figure out without having a repeatable situation to test.
Report comment to moderator  
Reply With Quote
Unread 10-01-09, 03:39 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 1
OK, I've used a bit more brute-force in my matching of the frames to be updated. So far it seems to be working fine from 1 nights testing.

If it all works without problems it will get pushed in the next version when LibHealComm-4.0 library gets bumped.
Report comment to moderator  
Reply With Quote
Unread 10-02-09, 11:39 AM  
Gandoch
A Wyrmkin Dreamwalker
 
Gandoch's Avatar
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 27
Uploads: 1
Originally posted by yj589794
OK, I've used a bit more brute-force in my matching of the frames to be updated. So far it seems to be working fine from 1 nights testing.

If it all works without problems it will get pushed in the next version when LibHealComm-4.0 library gets bumped.
Awesome; glad to hear it and thanks for all the work on this.
Report comment to moderator  
Reply With Quote
Unread 10-02-09, 04:53 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 1
I've just thrown up the new version, it should hopefully fix all the issues with odd frames not showing the incoming heal bars.

Post messages here if you have any problems.
Report comment to moderator  
Reply With Quote
Unread 10-06-09, 05:19 PM  
mrruben5
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
Is there any way heals over time can have a different color then heals being cast?
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 10-06-09, 06:38 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 1
It wouldn't be possible to colour incoming heals as direct heals, channelled heals or HoTs without some serious processing.
Also, the display would be inconsistent due to having to guess when each tick of the HoT would land.

There is potential to add a separate bar that just displays incoming HoTs, but it's not in my plans.
Report comment to moderator  
Reply With Quote
Unread 10-11-09, 09:49 AM  
Gandoch
A Wyrmkin Dreamwalker
 
Gandoch's Avatar
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 27
Uploads: 1
Quick Update

For the record, everything is working great now. Thanks so much.
Report comment to moderator  
Reply With Quote
Unread 10-12-09, 12:36 PM  
ereth
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 44
Uploads: 5
Im currently wrighting a ouf_layout and a feature I'd like to see is the ability to just have the incomming healing displayed as text instead of a semi-transparent bar.

Otherwise I'll have to make it on my own and it would help alot to just have one version when it comes to updating

Thanks for reading and have a good day!
Report comment to moderator  
Reply With Quote
Unread 10-12-09, 01:14 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 1
I've got a few features I'd like to add, and one of them is displaying the incoming heal as a text value. My priority was to update oUF_HealComm to use the new library to support HoTs and channeled heals.

I can look at adding in the feature but do not expect an update too quickly.
Report comment to moderator  
Reply With Quote
Unread 10-13-09, 12:07 AM  
ereth
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 44
Uploads: 5
Originally posted by yj589794
I've got a few features I'd like to add, and one of them is displaying the incoming heal as a text value. My priority was to update oUF_HealComm to use the new library to support HoTs and channeled heals.

I can look at adding in the feature but do not expect an update too quickly.
Thanks for the update and good luck with the addon!
Report comment to moderator  
Reply With Quote
Unread 10-14-09, 09:18 AM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 1
I've added in support for displaying a text indicator for incoming heals, although this text indicator will need to be defined within each layout. This will mean that the layout defines the font, size and position of the text (something I cannot do automagically as each layout is different).

Displaying incoming heal bars and the incoming heal text is not mutually exclusive, so you can have both if you really feel like it.
The .ignoreHealComm flag is still used for disabling the incoming heal bars.
The incoming heal text will only be shown if there is a defined .HealCommText text string assigned to that frame.

I'll test it over the next few days, and assuming all goes well it will be posting the updated version when LibWrapperHealComm-1.0 gets a version bump to fix some issues with 'stuck' heals.

--------------

screenie of the incoming heal text and heal bars together


and the code from the layout:
Code:
	self.HealCommText = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
	self.HealCommText:SetTextColor(0, 1, 0)
	self.HealCommText:SetPoint('TOP', info, 'BOTTOM', 0, 0)
I'll think about adding the ability to use your own text formatting routine if people express an interest between now and the release date.
Last edited by yj589794 : 10-14-09 at 11:38 AM.
Report comment to moderator  
Reply With Quote
Unread 10-21-09, 02:19 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 1
the new version supports displaying the incoming heals as a text value. you just need to add it into you layout, like:

Code:
	self.HealCommText = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
	self.HealCommText:SetTextColor(0, 1, 0)
	self.HealCommText:SetPoint('TOP', info, 'BOTTOM', 0, 0)
if you want to format the text string you can provide your own routine like:

Code:
local function shortVal(value)

	local returnValue = ""

	if (value > 1e6) then
		returnValue = format("%dm", value / 1e6)
	elseif (value > 1e3) then
		returnValue = format("%dk", value / 1e3)
	else
		returnValue = format("%d", value)
	end

	return returnValue
end
and assign it with :

Code:
	self.HealCommTextFormat = shortVal

if the above seems confusing then look at http://github.com/Evilpaul/oUF_EPRaid to see a working layout displaying healing text.
Report comment to moderator  
Reply With Quote
Unread 10-29-09, 03:53 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 1
version 1.4 has been posted with a new feature.

you can specify a flag in your layout
Code:
self.HealCommOthersOnly = true
to be able to only show incoming heals that other people have cast.
Report comment to moderator  
Reply With Quote
Unread 11-01-09, 08:04 AM  
Souli123
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 3
Uploads: 2
I've got some problems with my Healcomm.



I only see the green bar, when I overheal myself. When I cast spells which don't fill the health of the target nothing happens like you can see in the picture.

I would be glad for any solution
Report comment to moderator  
Reply With Quote
Unread 11-01-09, 03:15 PM  
Tekkub
A Molten Giant
 
Tekkub's Avatar
AddOn Author - Click to view AddOns

Forum posts: 960
File comments: 334
Uploads: 67
You got a repo somewhere? I've been hacking at this to put things more in line with oUF plugin designs, instead of using those nasty hooks.
__________________
I have reached enlightment.
Thank you bacon!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: