X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/9f42c246e7cad727813489286e25a68c17a64598..a4503dbcafe612d8afde480eaa2974f7440b6a4a:/OmaRF/Indicators.lua?ds=sidebyside diff --git a/OmaRF/Indicators.lua b/OmaRF/Indicators.lua index 8dd2ba9..8a5882c 100644 --- a/OmaRF/Indicators.lua +++ b/OmaRF/Indicators.lua @@ -7,6 +7,9 @@ local UnitIsPlayer = UnitIsPlayer; local UnitIsDeadOrGhost, UnitIsConnected = UnitIsDeadOrGhost, UnitIsConnected; local CTimerAfter = C_Timer.After; +local Frames = OmaFrames; +local positions = Frames.Positions; + local watchedAuras = { [53563] = "TOPRIGHT", [156910] = "TOPRIGHT", @@ -30,9 +33,11 @@ local majorAuras = { local updaters = {}; local updating = {}; -local positions = {"TOPRIGHT", "BOTTOMLEFT"}; local auraFilters = {"HELPFUL", "HARMFUL"}; +local M = {}; +OmaIndicators = M; + local function remaining(text, expires, current) if expires == 0 then text:SetText(""); @@ -74,7 +79,7 @@ local function updateIndicators(frame, unit) end end -function OmaCheckIndicators(frame, unit) +function M.CheckIndicators(frame, unit) for _, pos in pairs(positions) do frame.inds[pos].expires = nil; frame.inds[pos]:Hide();