X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/9bc8361b6162481571467d6373336e0b173a9023..56591cf7738fc714ceb75633c4af8587606e5265:/OmaRF/Core.lua?ds=inline diff --git a/OmaRF/Core.lua b/OmaRF/Core.lua index 8b1b8da..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" }; @@ -14,9 +15,13 @@ OmaRF.running = false; local defaults = { profile = { - indicatorFont = "Arial Narrow", - showIcons = true, enabled = true, + majorAuras = { + auras = {"Aqua Bomb"}, + max = 3; + iconSize = 24, + textSize = 10, + }, indicators = { ['**'] = { auras = {}, @@ -47,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 @@ -79,5 +89,6 @@ function SlashCmdList.OMARF(msg, editBox) return; end + InterfaceOptionsFrame_OpenToCategory(OmaRF.optionsFrames.Profile); InterfaceOptionsFrame_OpenToCategory(OmaRF.optionsFrames.Indicators); end