diff --git a/ElvUI_SLE/config/profile.lua b/ElvUI_SLE/config/profile.lua
index a5c8140..d20c9d2 100644
--- a/ElvUI_SLE/config/profile.lua
+++ b/ElvUI_SLE/config/profile.lua
@@ -46,6 +46,7 @@ P['sle'] = {
['growth'] = "RIGHT",
['showinside'] = false,
['size'] = 18,
+ ['backdrop'] = true,
},
--Exp/Rep Bar
diff --git a/ElvUI_SLE/modules/marks/marks.lua b/ElvUI_SLE/modules/marks/marks.lua
index 05625e4..7c333c7 100644
--- a/ElvUI_SLE/modules/marks/marks.lua
+++ b/ElvUI_SLE/modules/marks/marks.lua
@@ -105,10 +105,19 @@ function RM:UpdateVisibility()
end
end
+function RM:Backdrop()
+ if E.db.sle.marks.backdrop then
+ mark_menu.backdrop:Show()
+ else
+ mark_menu.backdrop:Hide()
+ end
+end
+
function RM:Update()
RM:FrameButtonsSize()
RM:FrameButtonsGrowth()
RM:UpdateVisibility()
+ RM:Backdrop()
end
function RM:Initialize()
diff --git a/ElvUI_SLE/modules/marks/options.lua b/ElvUI_SLE/modules/marks/options.lua
index ae6520e..7298a0d 100644
--- a/ElvUI_SLE/modules/marks/options.lua
+++ b/ElvUI_SLE/modules/marks/options.lua
@@ -20,40 +20,52 @@ E.Options.args.sle.args.marks = {
get = function(info) return E.db.sle.marks.enabled end,
set = function(info, value) E.db.sle.marks.enabled = value; RM:UpdateVisibility() end
},
- Reset = {
+ backdrop = {
order = 3,
+ type = "toggle",
+ name = L["Backdrop"],
+ disabled = function() return not E.db.sle.marks.enabled end,
+ get = function(info) return E.db.sle.marks.backdrop end,
+ set = function(info, value) E.db.sle.marks.backdrop = value; RM:Backdrop() end
+ },
+ Reset = {
+ order = 4,
type = 'execute',
name = L['Restore Defaults'],
desc = L["Reset these options to defaults"],
+ disabled = function() return not E.db.sle.marks.enabled end,
func = function() E:GetModule('SLE'):Reset(nil, nil, nil, nil, true) end,
},
spacer = {
- order = 4,
+ order = 5,
type = 'description',
name = "",
},
showinside = {
- order = 5,
+ order = 6,
type = "toggle",
name = L["Show only in instances"],
desc = L["Selecting this option will have the Raid Markers appear only while in a raid or dungeon."],
+ disabled = function() return not E.db.sle.marks.enabled end,
get = function(info) return E.db.sle.marks.showinside end,
set = function(info, value) E.db.sle.marks.showinside = value; RM:UpdateVisibility() end
},
size = {
- order = 6,
+ order = 7,
type = "range",
name = L['Size'],
desc = L["Sets size of buttons"],
+ disabled = function() return not E.db.sle.marks.enabled end,
min = 15, max = 30, step = 1,
get = function(info) return E.db.sle.marks.size end,
set = function(info, value) E.db.sle.marks.size = value; RM:FrameButtonsGrowth(); RM:FrameButtonsSize() end,
},
growth = {
- order = 7,
+ order = 8,
type = "select",
name = L["Direction"],
desc = L["Change the direction of buttons growth from the skull marker"],
+ disabled = function() return not E.db.sle.marks.enabled end,
get = function(info) return E.db.sle.marks.growth end,
set = function(info, value) E.db.sle.marks.growth = value; RM:FrameButtonsGrowth() end,
values = {