07-05-17, 01:35 PM | #1 |
oUF_Drk Blue/green bar on PlayerFrame
Hi all,
I'm really struggling to find the part in the Lua Code that was changed recently. U updated the oUF base to the latest version, but even going back a couple of versions shows the same picture in game. I think it has something to do with the castbar.lua - probably something that channels has been removed or added? but can't put my finger on it I'm really sorry if this has been answered somewhere, if you could point me in the right direction here on the forums I'll read up! Lua Code:
thanks in advance for anyone who is trying to help me, much appreciated. |
|
07-05-17, 05:13 PM | #2 |
I can't be 100% sure, but to me that looks like a HealthPrediction element.
|
|
07-10-17, 12:15 PM | #3 |
Thank you! it did sort of fix it (still shows RL, ML and the marker icons permanent but thats ok )
|
|
07-10-17, 06:09 PM | #4 |
Please see this:
http://www.wowinterface.com/forums/s...ad.php?t=55422 |
|
01-25-18, 10:55 PM | #5 |
Sorry to ress an old thread - but I'm having the same issue in the picture. I figured I could turn it off in the config but I rather like the overall combined healing display when i'm on my druid. Wracked my brain but I really don't quite get the LUA code enough to figure where i'm going wrong.
The worse thing is it's not throwing off a bug error so I can't go HA! That line! Edit: Figured it out >< I never changed the function name >< -- so if anyone is wondering how to fix the health prediction code: Core.Lua Code:
function core.HealthPrediction_Override(self, event, unit) if self.unit ~= unit then return end local element = self.HealthPrediction local parent = self.Health local health, maxHealth = UnitHealth(unit), UnitHealthMax(unit) if maxHealth == 0 or UnitIsDeadOrGhost(unit) then element.healingBar:Hide() element.absorbsBar:Hide() return end local missing = maxHealth - health local healing = UnitGetIncomingHeals(unit) or 0 if (healing / maxHealth) >= 0.01 and missing > 0 then local bar = element.healingBar bar:Show() bar:SetMinMaxValues(0, maxHealth) if healing > missing then bar:SetValue(missing) missing = 0 else bar:SetValue(healing) missing = missing - healing end parent = bar else element.healingBar:Hide() end local absorbs = UnitGetTotalAbsorbs(unit) or 0 if (absorbs / maxHealth) >= 0.01 and missing > 0 then local bar = element.absorbsBar bar:Show() bar:SetPoint("TOPLEFT", parent:GetStatusBarTexture(), "TOPRIGHT") bar:SetPoint("BOTTOMLEFT", parent:GetStatusBarTexture(), "BOTTOMRIGHT") bar:SetMinMaxValues(0, maxHealth) if absorbs > missing then bar:SetValue(missing) else bar:SetValue(absorbs) end else element.absorbsBar:Hide() end end Code:
-- HealthPrediction .... self.HealthPrediction = { healingBar = healing, absorbsBar = absorbs, Override = core.HealthPrediction_Override } end Last edited by Aideenwolf : 01-26-18 at 12:51 AM. |
|
WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF_Drk Blue/green bar on PlayerFrame |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|