X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/330739114047596de17fabf5182c25b065ebde39..971304090ee92e27a82533041bd6b222b702552c:/OmaRF/Events.lua?ds=sidebyside diff --git a/OmaRF/Events.lua b/OmaRF/Events.lua index d54a1df..2ffe946 100644 --- a/OmaRF/Events.lua +++ b/OmaRF/Events.lua @@ -20,7 +20,8 @@ local READY_CHECK_READY_TEXTURE = READY_CHECK_READY_TEXTURE; local READY_CHECK_NOT_READY_TEXTURE = READY_CHECK_NOT_READY_TEXTURE; local READY_CHECK_WAITING_TEXTURE = READY_CHECK_WAITING_TEXTURE; -local checkIndicators = OmaRFIndicators.CheckIndicators; +local updateIndicatorAuras = OmaRFIndicators.UpdateAuras; +local updateMajorAuras = OmaRFIndicators.UpdateMajorAuras; local Settings = OmaRFSettings; local baseColor = Settings.BaseColor; @@ -179,12 +180,17 @@ end M.UpdateHealAbsorb = updateHealAbsorb; local function updateAuras(frame, unit) - updateAuras(frame, unit); -- this is throttled - if updateMajorAuras(frame, unit) then - if frame.overlay.color ~= overlayColorAlert then + updateIndicatorAuras(frame, unit); -- this is throttled + local barColor = updateMajorAuras(frame, unit); + if barColor then + if barColor == true and frame.overlay.color ~= overlayColorAlert then frame.overlay:SetVertexColor(unpack(overlayColorAlert)); frame.overlay.color = overlayColorAlert; frame.overlay:Show(); + elseif barColor ~= true and frame.overlay.color ~= barColor then + frame.overlay:SetVertexColor(unpack(barColor)); + frame.overlay.color = barColor; + frame.overlay:Show(); end elseif UnitDebuff(unit, 1, "RAID") ~= nil then -- something dispellable