From: Aleksi Blinnikka Date: Mon, 5 Feb 2018 14:47:45 +0000 (+0200) Subject: Change TellMeWhen strata to LOW X-Git-Url: https://www.aleksib.fi/git/wowui.git/commitdiff_plain/a5a46a78e3fc568e585c952bf99881398c16a8b1?ds=inline Change TellMeWhen strata to LOW --- diff --git a/OmaAB/TellMeWhen.lua b/OmaAB/TellMeWhen.lua index 65f810b..329589e 100644 --- a/OmaAB/TellMeWhen.lua +++ b/OmaAB/TellMeWhen.lua @@ -98,7 +98,7 @@ for i = 1, MAX_BOSS_FRAMES do end local currentSpec = 0; -- 0 is invalid -local Indicators = CreateFrame("Frame", "OmaTMW"); +local Indicators = CreateFrame("Frame", "OmaTMW", UIParent); local function updateAuraFrame(frame) local unit = frame.unit; @@ -142,10 +142,10 @@ local function updateTotems(slot) end end -local function createTMW(name, config) - local frame = CreateFrame("Frame", name, UIParent); - frame:SetPoint("TOPLEFT", UIParent, "BOTTOMLEFT", config.x, config.y+config.height); - frame:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMLEFT", config.x+config.width, config.y); +local function createTMW(name, config, parent) + local frame = CreateFrame("Frame", name, parent); + frame:SetPoint("TOPLEFT", parent, "BOTTOMLEFT", config.x, config.y+config.height); + frame:SetPoint("BOTTOMRIGHT", parent, "BOTTOMLEFT", config.x+config.width, config.y); frame.unit = config.unit; frame.spec = config.spec; frame.auras = config.auras; @@ -164,6 +164,9 @@ end local function initialize() Indicators:SetFrameStrata("LOW"); + Indicators:SetPoint("BOTTOMLEFT"); + Indicators:SetWidth(1); + Indicators:SetHeight(1); currentSpec = GetSpecialization(); local name, realm = UnitFullName("player"); if chars[realm] and chars[realm][name] then @@ -182,7 +185,7 @@ local function initialize() table.insert(totems[slot], i); end end - frames[i] = createTMW("OmaTMW"..i, config); + frames[i] = createTMW("OmaTMW"..i, config, Indicators); end for _, frame in pairs(frames) do