From 267205e60e8710b178a32e0b024bca968d80b744 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 27 Jun 2015 17:23:25 +0400 Subject: [PATCH] Lib update --- .../LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua b/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua index 4e78b5a..3408b5b 100644 --- a/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua +++ b/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua @@ -315,13 +315,14 @@ local function ToggleShow(menu) end --Creating of the menu -function lib:CreateFrame(name, db, default, style, styleDefault) +function lib:CreateFrame(name, db, default, style, styleDefault, strata) --Checks to prevent a shitload of errors cause of wrong arguments passed if _G[name] then return end if not name then print("Sorry but you didn't set a name for this menu bar. Aborting creation"); return end if not db then print("Sorry but you didn't set database for this menu bar. Aborting creation"); return end if not default then print("Sorry but you didn't set defaults for this menu bar. Aborting creation"); return end if not style and not styleDefault then print("Sorry but you didn't set defaults for this menu bar's style. Aborting creation"); return end + if not strata then strata = "MEDIUM" end local menu = CreateFrame("Frame", name, E.UIParent) menu.db = db --making manu db table so we can actually keep unified settings calls in other functions menu.default = default --same for defaults @@ -329,7 +330,7 @@ function lib:CreateFrame(name, db, default, style, styleDefault) if not style and styleDefault then style = styleDefault end menu.style = style - menu:SetFrameStrata("HIGH") + menu:SetFrameStrata(strata) menu:SetFrameLevel(5) menu:SetClampedToScreen(true) menu:Point("LEFT", E.UIParent, "LEFT", -2, 0); -- 1.7.9.5