Download
(40 Kb)
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:11,666
Favorites:55
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
Archived Files (11)
File Name
Version
Size
Author
Date
v2.2.1
40kB
yj589794
06-10-10 11:22 AM
v2.2.0
40kB
yj589794
05-05-10 05:03 PM
v2.1.0
44kB
yj589794
03-23-10 02:11 PM
v2.0.6
44kB
yj589794
02-20-10 11:38 PM
v2.0.5
44kB
yj589794
02-17-10 05:27 PM
v2.0.4
44kB
yj589794
01-30-10 07:21 PM
v2.0.3
44kB
yj589794
01-30-10 08:30 AM
v2.0.2
44kB
yj589794
01-01-10 10:31 AM
v2.0.1
44kB
yj589794
12-09-09 01:05 AM
v2.0.0
44kB
yj589794
12-08-09 12:17 PM
v1.4
40kB
yj589794
10-29-09 03:50 PM


Post A Reply Comment Options
Old 01-16-10, 01:26 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 2
Originally posted by treelet
I am experiencing a similar issue when trying to use HealComm with Neav's raid frames. Similar to Tukz, SetFrameLevel is being used in the original code. I removed that line of code to no effect. Here is the original code with HealComm added.

pastey

I cannot figure out what I am missing here. Any help is appreciated.
I just tried the code you linked and, apart from having to move the raid frames to fit my screen, it all worked fine. The raid frames showed the incoming heal bar when I tested them in a battleground.

Can you check again and make sure oUF_HealComm4 is being loaded, as I cannot think of any other reason why you will not see the incoming heal bars?
yj589794 is offline Report comment to moderator  
Reply With Quote
Old 01-14-10, 08:25 PM  
treelet
A Deviate Faerie Dragon
 
treelet's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 15
File comments: 37
Uploads: 1
Originally posted by yj589794
It's a problem with the layout in oUF_Tukz.

The layout author is using SetFrameLevel() to specifically assign the health bar a level within the drawing stack.
There is an easy fix to make the heal bars display correctly, although I've not tested to see if the fix breaks anything else in the layout.

To apply the fix, search for the following text in ouf_tukz.lua and delete it:
Code:
	if unit then
		self.Health:SetFrameLevel(5)
	elseif self:GetAttribute("unitsuffix") then
		self.Health:SetFrameLevel(5)
	elseif not unit then
		self.Health:SetFrameLevel(2)
	end
I am experiencing a similar issue when trying to use HealComm with Neav's raid frames. Similar to Tukz, SetFrameLevel is being used in the original code. I removed that line of code to no effect. Here is the original code with HealComm added.

pastey

I cannot figure out what I am missing here. Any help is appreciated.
Last edited by treelet : 01-14-10 at 10:00 PM.
treelet is offline Report comment to moderator  
Reply With Quote
Old 12-09-09, 01:57 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 2
look at the following lines:

293, 308 and 443.

should give you a clue as to why it's doing that.


edit: I found the double space for indent linked in your pastey to be horrible to read. I've changed it to something I find more legible and fixed the positioning of the healcomm declarations in the followup pastey.
Last edited by yj589794 : 12-10-09 at 07:42 AM.
yj589794 is offline Report comment to moderator  
Reply With Quote
Old 12-09-09, 10:28 AM  
Souli123
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 5
Uploads: 2
Added
if(IsAddOnLoaded("oUF_HealComm4")) then
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
end
to my Layout, but the Healcommbar only appears for player, not for target.

Whole Layout here: http://pastey.net/130034
Souli123 is offline Report comment to moderator  
Reply With Quote
Old 12-09-09, 01:05 AM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 2
Originally posted by PProvost
That works.
OK, new version pushed with the fix included
yj589794 is offline Report comment to moderator  
Reply With Quote
Old 12-09-09, 12:27 AM  
PProvost
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 126
Uploads: 24
Originally posted by yj589794
blah, I can't check it yet as European servers are just going into the maintenance period and then I've got to go to work.

try changing it to:
Code:
if(...) then
	local _, ns = ...
	oUF = ns.oUF or _G[global]
else
that *should* fix any problem, but no guarantees till I can test it.
That works.
PProvost is offline Report comment to moderator  
Reply With Quote
Old 12-08-09, 06:10 PM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 2
Originally posted by Saiket
When the element isn't embedded, this code on line 26 sets the local reference to oUF to nil:
Code:
if(...) then
	local _, ns = ...
	oUF = ns.oUF
else
That ns table that gets passed in is empty when the mod is running standalone.
blah, I can't check it yet as European servers are just going into the maintenance period and then I've got to go to work.

try changing it to:
Code:
if(...) then
	local _, ns = ...
	oUF = ns.oUF or _G[global]
else
that *should* fix any problem, but no guarantees till I can test it.
yj589794 is offline Report comment to moderator  
Reply With Quote
Old 12-08-09, 05:13 PM  
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view AddOns

Forum posts: 152
File comments: 329
Uploads: 21
When the element isn't embedded, this code on line 26 sets the local reference to oUF to nil:
Code:
if(...) then
	local _, ns = ...
	oUF = ns.oUF
else
That ns table that gets passed in is empty when the mod is running standalone.
Last edited by Saiket : 12-08-09 at 05:13 PM.
Saiket is offline Report comment to moderator  
Reply With Quote
Old 11-17-09, 03:13 AM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 2
Major change coming soon(tm)

Hi everyone,

when patch 3.3 hits live servers there is going to be a change to oUF_HealComm4 that will require each layout to specify how incoming heals should be shown. The incoming heal bar will no longer be hooked into the layout automatically.

Further details can be seen in this thread.
Last edited by yj589794 : 11-17-09 at 03:14 AM.
yj589794 is offline Report comment to moderator  
Reply With Quote
Old 11-08-09, 12:51 PM  
uptempo
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
awesome! fix worked and as far as i can see for now there are no problems. thanks so very much!
uptempo is offline Report comment to moderator  
Reply With Quote
Old 11-07-09, 08:00 AM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 2
Originally posted by uptempo
I'm having the same exact problem using the same unitframes. Using tukui frames that I downloaded here as well.
It's a problem with the layout in oUF_Tukz.

The layout author is using SetFrameLevel() to specifically assign the health bar a level within the drawing stack.
There is an easy fix to make the heal bars display correctly, although I've not tested to see if the fix breaks anything else in the layout.

To apply the fix, search for the following text in ouf_tukz.lua and delete it:
Code:
	if unit then
		self.Health:SetFrameLevel(5)
	elseif self:GetAttribute("unitsuffix") then
		self.Health:SetFrameLevel(5)
	elseif not unit then
		self.Health:SetFrameLevel(2)
	end
yj589794 is offline Report comment to moderator  
Reply With Quote
Old 11-07-09, 02:23 AM  
uptempo
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Originally posted by yj589794
looks like the incoming heal bar is being placed under your layout, so that only when there is overheal will you be able to see the bar sticking past the end of your unit frame.

If you can send me a PM with a link to your layout I'll try and figure out where it's going a bit odd.
I'm having the same exact problem using the same unitframes. Using tukui frames that I downloaded here as well.
uptempo is offline Report comment to moderator  
Reply With Quote
Old 11-03-09, 03:32 AM  
Tekkub
Featured Artist
 
Tekkub's Avatar
Featured Addon Author

Forum posts: 952
File comments: 321
Uploads: 85
I just follow the herd till we find a semi-quiet graveyard where one or two people are defending, then just hang out. I'll see if I can get a normal ol' raid tomorrow to test in outside of BGs/instances. Of course, I only use HC on my raid frames, so a simple party won't do... and I rarely ever get to go on "real" raids.
__________________
I have reached enlightment.
Thank you bacon!
Tekkub is offline Report comment to moderator  
Reply With Quote
Old 11-03-09, 03:26 AM  
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 314
File comments: 43
Uploads: 2
Originally posted by Tekkub
*edit* and for what it's worth, the healcomm stuff works for my own spells when I'm sitting around Dalaran, but when I go into AV I get no HC at all, not even from myself. When I come back to Dal, all works again. Very weird.
very odd, if it was something to do with the battleground group rather than a normal party/raid group I could understand it. If it's stopping incoming heals on you player/target/etc. frames as well then it really does seem to be something else causing the problem.

Looks like I'm going to have the pain of taking my holy priest into battlegrounds again *shudder*. Just hope I can stay alive long enough to actually try casting a heal...
yj589794 is offline Report comment to moderator  
Reply With Quote
Old 11-03-09, 03:03 AM  
Tekkub
Featured Artist
 
Tekkub's Avatar
Featured Addon Author

Forum posts: 952
File comments: 321
Uploads: 85
Aye, at least it's not a forced breakage like Blizzy changes are, since in the majority of cases the author is embedding the plugin with their layout... or at least, they should be.

*edit* and for what it's worth, the healcomm stuff works for my own spells when I'm sitting around Dalaran, but when I go into AV I get no HC at all, not even from myself. When I come back to Dal, all works again. Very weird.
__________________
I have reached enlightment.
Thank you bacon!
Last edited by Tekkub : 11-03-09 at 03:05 AM.
Tekkub is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: