Commit a9dda65b authored by Merathilis's avatar Merathilis

Added option to toggle my extra style panels.

parent 07e9fafc
......@@ -344,7 +344,7 @@ function MERL:CreatePanels()
end
function MERL:CreateStylePanels()
if E.db.mui.general.panels ~= true then return end
if E.db.mui.general.panels ~= true or E.db.mui.general.stylePanels ~= true then return end
-- Style Background for RaidBuffReminder / Raid Manager
local TopLeftStylePanel = CreateFrame("Frame", nil, E.UIParent)
......
......@@ -535,6 +535,7 @@ Bitte beachte, dass einige Optionen |cff636363deaktiviert|r sind, wenn das AddOn
L["Creates decorative stripes and a gradient on some frames"] = "Fügt dekorative Streifen und einen transparenten Farbverlauf an einigen Fenstern hinzu"
L["MerathilisUI Style"] = "MerathilisUI Stil"
L["MerathilisUI Panels"] = "MerathilisUI Leisten"
L["MerathilisUI Extra Style Panels"] = "MerathilisUI Extra Stil Leisten"
L["MerathilisUI Shadows"] = "MerathilisUI Schatten"
L["Undress Button"] = "Ausziehen Taste"
L["Subpages"] = "Unterseiten"
......
......@@ -539,6 +539,7 @@ Please note that some of these options will be |cff636363disabled|r if the addon
L["Creates decorative stripes and a gradient on some frames"] = true
L["MerathilisUI Style"] = true
L["MerathilisUI Panels"] = true
L["MerathilisUI Extra Style Panels"] = true
L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
......
......@@ -537,6 +537,7 @@ Please note that some of these options will be |cff636363disabled|r if the addon
L["Creates decorative stripes and a gradient on some frames"] = true
L["MerathilisUI Style"] = true
L["MerathilisUI Panels"] = true
L["MerathilisUI Extra Style Panels"] = true
L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
......
......@@ -538,6 +538,7 @@ Please note that some of these options will be |cff636363disabled|r if the addon
L["Creates decorative stripes and a gradient on some frames"] = true
L["MerathilisUI Style"] = true
L["MerathilisUI Panels"] = true
L["MerathilisUI Extra Style Panels"] = true
L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
......
......@@ -534,6 +534,7 @@ Please note that some of these options will be |cff636363disabled|r if the addon
L["Creates decorative stripes and a gradient on some frames"] = true
L["MerathilisUI Style"] = true
L["MerathilisUI Panels"] = true
L["MerathilisUI Extra Style Panels"] = true
L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
......
......@@ -536,6 +536,7 @@ Please note that some of these options will be |cff636363disabled|r if the addon
L["Creates decorative stripes and a gradient on some frames"] = true
L["MerathilisUI Style"] = true
L["MerathilisUI Panels"] = true
L["MerathilisUI Extra Style Panels"] = true
L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
......
......@@ -535,6 +535,7 @@ L["MER_ADDONSKINS_DESC"] = [[此部分旨在修改一些外部插件外观.
L["Creates decorative stripes and a gradient on some frames"] = "在一些框架上创建条纹材质和渐变"
L["MerathilisUI Style"] = "MerathilisUI 样式"
L["MerathilisUI Panels"] = "MerathilisUI 面板"
L["MerathilisUI Extra Style Panels"] = true
L["MerathilisUI Shadows"] = "MerathilisUI 阴影"
L["Undress Button"] = "解除装备按钮"
L["Subpages"] = true
......
......@@ -536,6 +536,7 @@ Please note that some of these options will be |cff636363disabled|r if the addon
L["Creates decorative stripes and a gradient on some frames"] = true
L["MerathilisUI Style"] = true
L["MerathilisUI Panels"] = true
L["MerathilisUI Extra Style Panels"] = true
L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
......
......@@ -72,9 +72,17 @@ local function SkinsTable()
get = function(info) return E.db.mui.general[ info[#info] ] end,
set = function(info, value) E.db.mui.general[ info[#info] ] = value; E:StaticPopup_Show("PRIVATE_RL") end,
},
shadowOverlay = {
stylePanels = {
order = 3,
type = "toggle",
name = L["MerathilisUI Extra Style Panels"],
get = function(info) return E.db.mui.general[ info[#info] ] end,
set = function(info, value) E.db.mui.general[ info[#info] ] = value; E:StaticPopup_Show("PRIVATE_RL") end,
disabled = function() return not E.db.mui.general.panels end,
},
shadowOverlay = {
order = 4,
type = "toggle",
name = L["MerathilisUI Shadows"],
get = function(info) return E.db.mui.general[ info[#info] ] end,
set = function(info, value) E.db.mui.general[ info[#info] ] = value; E:StaticPopup_Show("PRIVATE_RL") end,
......
......@@ -21,6 +21,7 @@ MP.general = {
Movertransparancy = .75,
style = true,
panels = true,
stylePanels = true,
shadowOverlay = true,
filterErrors = true,
hideErrorFrame = true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment