| Updated: | 06-29-10 10:30 AM |
| Created: | 09-28-09 12:33 PM |
| Downloads: | 10,891 |
| Favorites: | 59 |
| MD5: |

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
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
self.HealCommOthersOnly = true
-- limit to the next 3 seconds incoming heals self.HealCommTimeframe = 3
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 |
![]() |
Comment Options |
|
|
||
If there was a way like a post update, if not, don't really bother. I will add support for Cataclysm then, since it's being integrated into oUF as I saw in your addon. Thanks mate. ![]()
__________________
My oUF Layout: oUF Lumen |
||
|
|
|
|
|
|
Hi vj!
Great addition to oUF. ![]() I was thinking adding support to my layou (oUF_lumen) but I was trying to display only a small square when an incoming heal. That is, I don't want text or the amount of the heal, just a little icon to warn if an heal is comming. I wrote it like this: Code:
-- oUF_HealComm4
local HealCom = function(self)
if IsAddOnLoaded("oUF_HealComm4") then
self.HealCommBar = CreateFrame('StatusBar', nil, self.Health)
self.HealCommBar:SetStatusBarTexture(white_square)
self.HealCommBar:SetStatusBarColor(.66,.82,.19,.5)
self.HealCommBar:SetWidth(3)
self.HealCommBar:SetHeight(3)
self.HealCommBar:SetPoint("CENTER", self.Health, "TOPRIGHT", -4, -4)
SetBackdrop(self.HealCommBar, 1, 1, 1, 1)
self.HealCommBar:SetFrameLevel(3)
self.allowHealCommOverflow = false
self.HealCommOthersOnly = false
end
end
Is there anyway around this? ![]() Thanks.
__________________
My oUF Layout: oUF Lumen |
|
|
|
|
|
|
|
For anyone in the cataclysm beta, I have uploaded a beta version of the new element that will be replacing this one.
You can check it out here: http://wowinterface.com/downloads/in...rediction.html |
|
|
|
|
|
|
|
What would I adjust if I wanted to add a "+" in front of all the incoming heal amounts?
|
|
|
|
|
|
||
|
Re: shortVal
something 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
|
||
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
shortVal
Hello there. I'm trying to get this setup on my unit frames and raid frames... but I'm having some trouble. I just got the newest version (v2.2.2), and I have the code to make HealComm4 work with my unitframes up and running, with the exception of the line:
self.HealCommTextFormat = shortVal This seems to do nothing as all heals are displayed as their "full" value (example: 10778) instead of their "short" value (same example: 10.8K) Other than this one problem, everything else is fine. Can someone point me in the right direction? DK |
|
|
|
|
||
![]()
__________________
![]() ![]() ![]() ![]() |
||
|
|
|
|
|
|
Okay, thank you very much.
__________________
![]() ![]() ![]() ![]() |
|
|
|
|
|
|
|
OK, you can ignore what I wrote for oUF_ALZA as it includes the original oUF_HealComm by default.
What you would need to do is remove the exisiting oUF_HealComm and replace it with oUF_HealComm4, including all the extra config options that have been added. It's not going to be the easiest of jobs, so try contacting ALZA and see if he would consider updating the healcomm support included in oUF_ALZA. |
|
|
|
|
|
|
|
It's more than likely due to oUF_ALZA loading before oUF_HealComm4, as by default addons are loaded in alphabetical order.
To fix it you have 2 options: A) Add oUF_HealComm4 as an optional dependency in the .toc for oUF_ALZA B) Embed oUF_HealComm4 within the oUF_ALZA layout I'd recommend trying option A) first, but I have seem some situations where WoW still fails to load optional dependencies first. For option B) try looking at layouts that already embed oUF_HealComm4. |
|
|
|
|
|
||
|
For some reason I can't get this to work with oUF_ALZA..
Anyone know how to get this working for it? ![]()
__________________
![]() ![]() ![]() ![]() |
||
|
|
![]() |