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