X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/d9a8d3fef13473aa64470d876c63d0a1a464199f..eeb41892047047322da96e7d6c6b006496b04010:/OmaRF/Indicators.lua diff --git a/OmaRF/Indicators.lua b/OmaRF/Indicators.lua index b3ad0ef..b3c7d07 100644 --- a/OmaRF/Indicators.lua +++ b/OmaRF/Indicators.lua @@ -6,36 +6,17 @@ local UnitAura = UnitAura; local UnitIsDeadOrGhost, UnitIsConnected = UnitIsDeadOrGhost, UnitIsConnected; local CTimerAfter = C_Timer.After; -local Frames = OmaFrames; -local positions = Frames.Positions; - -local watchedAuras = { - [53563] = "TOPRIGHT", - [156910] = "TOPRIGHT", - [200025] = "TOPRIGHT", - [200654] = "BOTTOMLEFT", -}; -local majorAuras = { - ["Psychic Assault"] = true, - ["Everburning Flames"] = true, - ["Corrupt"] = true, - ["Sleep Canister"] = true, - ["Misery"] = true, - ["Necrotic Embrace"] = true, - ["Fulminating Pulse"] = true, - ["Chilled Blood"] = true, - ["Soulblight"] = true, - ["Soulburst"] = true, - ["Soulbomb"] = true, - ["Aqua Bomb"] = true, -}; +local Settings = OmaRFSettings; +local majorAuras = Settings.MajorAuras; +local positions = {}; +local watchedAuras = {}; local updaters = {}; local updating = {}; local auraFilters = {"HELPFUL", "HARMFUL"}; local M = {}; -OmaIndicators = M; +OmaRFIndicators = M; local function remaining(text, expires, current) if expires == 0 then @@ -141,3 +122,8 @@ function M.CheckIndicators(frame, unit) frame.major:Hide(); end end + +function M.LoadChar() + watchedAuras = Settings.Character["WatchedAuras"]; + positions = Settings.Character.Positions; +end