X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/6f9efe3aedbfb5f6be2277de730fa446d87bb4d7..978ee00b8c408d36f1724683428f196c9e1e48f2:/OmaRF/Core.lua diff --git a/OmaRF/Core.lua b/OmaRF/Core.lua index 0b44b48..74f5aed 100644 --- a/OmaRF/Core.lua +++ b/OmaRF/Core.lua @@ -6,6 +6,7 @@ OmaRF.normalBackColor = {0.7, 0.7, 0.7}; OmaRF.dispelBackColor = {0.5, 0.2, 0}; OmaRF.frames = {}; +OmaRF.majorFrames = {}; OmaRF.positions = { "TOPLEFT", "TOPRIGHT", "CENTER", "BOTTOMLEFT", "BOTTOMRIGHT" }; @@ -15,6 +16,12 @@ OmaRF.running = false; local defaults = { profile = { enabled = true, + majorAuras = { + auras = {"Aqua Bomb"}, + max = 3; + iconSize = 24, + textSize = 10, + }, indicators = { ['**'] = { auras = {}, @@ -45,10 +52,15 @@ end function OmaRF:OnDisable() self.running = false; - for _, frame in pairs(self.frames) do + for name, frame in pairs(self.frames) do for _, ind in pairs(frame) do - ind.text:SetText(""); - ind.icon:SetTexture(""); + ind.text:Hide(); + ind.icon:Hide(); + end + for _, ind in ipairs(self.majorFrames[name]) do + ind.icon:Hide(); + ind.expire:Hide(); + ind.stack:Hide(); end end end