Thread Tools Display Modes
11-17-09, 04:10 AM   #1
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
oUF_HealComm4

Hi everyone,

With patch 3.3 arriving on the live servers soon(tm), I am going to use the opportunity to introduce a pretty fundamental change to how oUF_HealComm4 performs some stuff.

Currently oUF_HealComm4 hooks into any oUF layout and adds the incoming heal bars itself, and this is just a really poor design decision.
When patch 3.3 hits the live servers I am going to release version 2.0 of oUF_HealComm4 which will require each layout to specify how incoming heals should be displayed, or you will not see the usual green bar...


The change to an oUF layout should be minimal, and the following code was all that was required to update my own layout:
Code:
  self.HealCommBar = CreateFrame('StatusBar', nil, self.Health)
  self.HealCommBar:SetStatusBarTexture(self.Health:GetStatusBarTexture():GetTexture())
  self.HealCommBar:SetStatusBarColor(0, 1, 0, 0.25)
  self.HealCommBar:SetPoint('LEFT', self.Health, 'LEFT')

  self.allowHealCommOverflow = true

No changes will be required until patch 3.3 goes live, but the updated version of oUF_HealComm4 can be found at http://github.com/Evilpaul/oUF_HealComm4 in the branch "version 2.0" for any authors that wish to check the changes.
Also, an example oUF layout that works with the introduced changes can be seen at http://github.com/Evilpaul/oUF_EPRaid


If you have any questions, please reply to this thread.
  Reply With Quote
11-17-09, 10:02 AM   #2
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
If we don't wish to have the bars and only show the text, how will that work?
  Reply With Quote
11-17-09, 11:03 AM   #3
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
I recall tekkub doing those changes..
  Reply With Quote
11-17-09, 11:42 AM   #4
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Originally Posted by wurmfood View Post
If we don't wish to have the bars and only show the text, how will that work?
You will only see what you parts you define in you layout.
So...
  • To see incoming heal bar you define self.HealCommBar
  • To see incoming heal text you define self.HealCommText
  • To see both, define both
  • To turn off healcomm, don't define anything

Originally Posted by p3lim View Post
I recall tekkub doing those changes..
Yes, Tekkub did make most of the changes. As such Tekkub is now added on the authors tag in the .toc, but it's still my addon...
  Reply With Quote
11-17-09, 12:05 PM   #5
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
Originally Posted by yj589794 View Post
You will only see what you parts you define in you layout.
So...
  • To see incoming heal bar you define self.HealCommBar
  • To see incoming heal text you define self.HealCommText
  • To see both, define both
  • To turn off healcomm, don't define anything
Cool, just wanted to make sure I was going to be defining the text as a child of the frame and not of something else.
  Reply With Quote
11-17-09, 02:54 PM   #6
Tekkub
A Molten Giant
 
Tekkub's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 960
It should be noted that this is only if you update oUF_HealComm4. If you leave the version you currently have embedded in your layout, nothing changes.
__________________
I have reached enlightment.
Thank you bacon!
  Reply With Quote
11-17-09, 03:07 PM   #7
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Originally Posted by Tekkub View Post
It should be noted that this is only if you update oUF_HealComm4. If you leave the version you currently have embedded in your layout, nothing changes.
True, but I don't plan on maintaining the old version. So people would have to manually update the healcomm libraries themselves, and that includes the upcoming versions that add the ICC debuffs/buffs that affect healing.
  Reply With Quote
11-27-09, 01:16 PM   #8
jadakren
A Flamescale Wyrmkin
 
jadakren's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 103
personally i don't think that even set objects like text and bar should be assumed.

Code:
self.HealCommObject = {
 "type" = "bar",
 "object" = MyCustomHealCommObject,
 "renderHeal" = MyCustomHealCommFunction
}
provide override functions that allow me to reroute the output data.

Code:
frame.HealComm4_DirectHealSent(self,target,amount,spell,modifier)
frame.HealComm4_HotSent(self,target,spell,amount,modifier)
frame.HealComm4_IndirectHealRecieved(self,buffid,amount)
just some ideas.

some kind of overrides so i don't have to rewrite HealComm4 for personal use with this HealLines things i've ported to my raid layout.

Last edited by jadakren : 11-27-09 at 01:22 PM.
  Reply With Quote
11-27-09, 04:46 PM   #9
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
I think you need to try making your own LibHealComm-4.0 interface as your suggestion doesn't really fit with my own idea of what oUF_HealComm4 should do.

If you want to use oUF_HealComm4 as a base, then go ahead, there are no usage restrictions on the code.
  Reply With Quote
12-08-09, 02:10 PM   #10
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Updated version is now posted with the changes detailed in the first post. I expect lots of posts about how the incoming heal bar isn't showing any more....
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF_HealComm4


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off