X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/c6843f31e3e56b92d55a84fbd4da40b555809d31..8da63c020fd2f1367dbec400f8daf15fa8375b94:/OmaRF/Core.lua diff --git a/OmaRF/Core.lua b/OmaRF/Core.lua index d39b6e6..e0ecbd1 100644 --- a/OmaRF/Core.lua +++ b/OmaRF/Core.lua @@ -1,8 +1,4 @@ -local unpack = unpack; -local wipe = wipe; -local next = next; -local pairs = pairs; -local ipairs = ipairs; +local unpack, wipe, next, pairs, ipairs = unpack, wipe, next, pairs, ipairs; OmaRF = CreateFrame("Frame"); @@ -10,8 +6,6 @@ OmaRF.normalBarColor = CreateColor(0.3, 0.3, 0.3); OmaRF.dispelBarColor = CreateColor(1, 0.5, 0); 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" }; @@ -57,17 +51,7 @@ end function OmaRF:OnDisable() self.running = false; - for name, frame in pairs(self.frames) do - for _, ind in pairs(frame) do - ind.text:Hide(); - ind.icon:Hide(); - end - for _, ind in ipairs(self.majorFrames[name]) do - ind.icon:Hide(); - ind.expireText:Hide(); - ind.stackText:Hide(); - end - end + self.frameBase:Hide(); end local function onEvent(self, event, ...)