Thread Tools Display Modes
01-01-11, 07:09 PM   #1
DBS
A Murloc Raider
Join Date: Dec 2010
Posts: 6
HealPrediction @ oUF_Drk

Hello,

I'm in need of some assistance regarding the HealPrediction @ oUF.
I currently use Qulights UI ( http://www.wowinterface.com/download...htUI.html#info ), with oUF_Drk, and apparently by default the HealPrediction isn't enabled and i would like it to be.

yj589794 kindly provided me with this link: https://github.com/haste/oUF/wiki/el...prediction-bar ; but i dont really know in which file i should add/look for this

Could really use some help from you experts out there.

Thanks in advance.
  Reply With Quote
01-01-11, 09:25 PM   #2
drakull
A Cyclonian
 
drakull's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 49
oUF_Drk has support for heal prediction for quite some time now, maybe Qulights UI use an old version. Try grabbing the current version here.
  Reply With Quote
01-01-11, 10:03 PM   #3
DBS
A Murloc Raider
Join Date: Dec 2010
Posts: 6
Thanks for the reply drakull.
While looking at the lib.lua on Qulights oUF_Drk folder i found this lines:
Code:
lib.HealPred = function(self)
	if not cfg.ShowIncHeals then return end
	
	local mhpb = CreateFrame('StatusBar', nil, self.Health)
	mhpb:SetPoint('TOPLEFT', self.Health:GetStatusBarTexture(), 'TOPRIGHT', 0, 0)
	mhpb:SetPoint('BOTTOMLEFT', self.Health:GetStatusBarTexture(), 'BOTTOMRIGHT', 0, 0)
	mhpb:SetWidth(self:GetWidth())
	mhpb:SetStatusBarTexture(cfg.statusbar_texture)
	mhpb:SetStatusBarColor(1, 1, 1, 0.3)
	mhpb:SetFrameLevel(3)

	local ohpb = CreateFrame('StatusBar', nil, self.Health)
	ohpb:SetPoint('TOPLEFT', mhpb:GetStatusBarTexture(), 'TOPRIGHT', 0, 0)
	ohpb:SetPoint('BOTTOMLEFT', mhpb:GetStatusBarTexture(), 'BOTTOMRIGHT', 0, 0)
	ohpb:SetWidth(self:GetWidth())
	ohpb:SetStatusBarTexture(cfg.statusbar_texture)
	ohpb:SetStatusBarColor(1, 1, 1, 0.3)
	mhpb:SetFrameLevel(3)
	self.HealPrediction = {
		myBar = mhpb,
		otherBar = ohpb,
		maxOverflow = 1,
	}
end
and also this on cfg.lua:
Code:
cfg.ShowIncHeals = true -- Show incoming heals in player and raid frames
Now considering i'm no expert in this, is this enough to enable the HealPred? Or is there something else that might be turning it off or missing in the .lua files? I'm really clueless here and i really could use the "visual heals", atleast on the player frame (without dismantling the whole edited look Qulight did on your layout ).
  Reply With Quote
01-02-11, 11:39 AM   #4
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
That implementation looks ok, given a quick glance. The only thing I would check is that cfg.statusbar_texture is pointing at a valid texture file. If that file does not exist, then your incoming heal status bars will not be shown.
  Reply With Quote
01-02-11, 11:58 AM   #5
DBS
A Murloc Raider
Join Date: Dec 2010
Posts: 6
Code:
cfg.statusbar_texture = "Interface\\AddOns\\Qulight_Media\\Other\\normTex"

This is what says on the cfg.lua and the file in question is where it is directing it to..
Anything wrong with it or? Because so far i've not been able to make any progress with this issue + still no answer from Qulight on this matter.

Thanks in advance.

Last edited by DBS : 01-02-11 at 12:04 PM.
  Reply With Quote
01-02-11, 07:58 PM   #6
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
OK, I've had a look at the layout you are using and I've found the issue you are seeing.

In that layout, the incoming heals are only enabled on raid units.

If you want to enable incoming heals on other units (player, target, targetoftarget, etc.) then you need to look in core.lua.
There are style functions in that file for each unit. e.g. CreatePlayerStyle, CreateTargetStyle.

For each unit that you want incoming heals then in the style function you will need to add the following line:
Code:
lib.HealPred(self)
Note, the above line must be added somewhere after this line that already exists in each style function:
Code:
lib.gen_hpbar(self)
  Reply With Quote
01-02-11, 08:48 PM   #7
DBS
A Murloc Raider
Join Date: Dec 2010
Posts: 6
thank you very much yj589794.
just did what u said and it worked perfectly. needed this badly. appreciate all the help
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » HealPrediction @ oUF_Drk


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