diff --git a/ElvUI_SLE/defaults/private.lua b/ElvUI_SLE/defaults/private.lua
index 8a0f4c3..2ab8f7e 100644
--- a/ElvUI_SLE/defaults/private.lua
+++ b/ElvUI_SLE/defaults/private.lua
@@ -37,6 +37,10 @@ V["sle"] = {
},
["setoverlay"] = false,
["lockbutton"] = false,
+ ["FishingRaftSet"] = {
+ ["enable"] = false,
+ ["set"] = "NONE",
+ },
},
--Minimap Module
["minimap"] = {
@@ -46,6 +50,7 @@ V["sle"] = {
["mapicons"] = {
["enable"] = false,
["barenable"] = false,
+ ["template"] = "Transparent",
},
},
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index 7769ba6..dc35f2d 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -476,6 +476,7 @@ P["sle"] = {
["iconperrow"] = 12,
["pethide"] = false,
["skindungeon"] = false,
+ ["spacing"] = 4,
},
["instance"] = {
["enable"] = false,
diff --git a/ElvUI_SLE/modules/minimap/minimapicons.lua b/ElvUI_SLE/modules/minimap/minimapicons.lua
index 9c1df60..9498e11 100644
--- a/ElvUI_SLE/modules/minimap/minimapicons.lua
+++ b/ElvUI_SLE/modules/minimap/minimapicons.lua
@@ -263,7 +263,7 @@ function SMB:Update()
local AnchorX, AnchorY, MaxX = 0, 1, E.db.sle.minimap.mapicons.iconperrow
local ButtonsPerRow = E.db.sle.minimap.mapicons.iconperrow
local NumColumns = ceil(#SMB.SkinnedMinimapButtons / ButtonsPerRow)
- local Spacing, Mult = 4, 1
+ local Spacing, Mult = E.db.sle.minimap.mapicons.spacing, 1
local Size = E.db.sle.minimap.mapicons.iconsize
local ActualButtons, Maxed = 0
@@ -336,7 +336,7 @@ function SMB:Initialize()
SMB.bar = CreateFrame('Frame', 'SLE_SquareMinimapButtonBar', E.UIParent)
SMB.bar:Hide()
- SMB.bar:SetTemplate('Transparent', true)
+ SMB.bar:SetTemplate(E.private.sle.minimap.mapicons.template)
SMB.bar:SetFrameStrata('LOW')
SMB.bar:SetFrameLevel(1)
SMB.bar:SetClampedToScreen(true)
diff --git a/ElvUI_SLE/options/minimap/minimapicons_c.lua b/ElvUI_SLE/options/minimap/minimapicons_c.lua
index 78514ff..c8d3958 100644
--- a/ElvUI_SLE/options/minimap/minimapicons_c.lua
+++ b/ElvUI_SLE/options/minimap/minimapicons_c.lua
@@ -62,8 +62,17 @@ local function configTable()
get = function(info) return E.db.sle.minimap.mapicons.iconperrow end,
set = function(info, value) E.db.sle.minimap.mapicons.iconperrow = value; SMB:Update(SLE_SquareMinimapButtonBar) end,
},
- iconmouseover = {
+ spacing = {
order = 7,
+ type = 'range',
+ name = L["Button Spacing"],
+ min = -4, max = 10, step = 1,
+ disabled = function() return not E.private.sle.minimap.mapicons.enable or not E.private.sle.minimap.mapicons.barenable end,
+ get = function(info) return E.db.sle.minimap.mapicons.spacing end,
+ set = function(info, value) E.db.sle.minimap.mapicons.spacing = value; SMB:Update(SLE_SquareMinimapButtonBar) end,
+ },
+ iconmouseover = {
+ order = 8,
name = L["Mouse Over"],
desc = L["Show minimap buttons on mouseover."],
type = "toggle",
@@ -71,6 +80,19 @@ local function configTable()
get = function(info) return E.db.sle.minimap.mapicons.iconmouseover end,
set = function(info, value) E.db.sle.minimap.mapicons.iconmouseover = value; SMB:ChangeMouseOverSetting() end,
},
+ template = {
+ order = 9,
+ name = L["Backdrop Template"],
+ type = "select",
+ disabled = function() return not E.private.sle.minimap.mapicons.enable or not E.private.sle.minimap.mapicons.barenable end,
+ get = function(info) return E.private.sle.minimap.mapicons.template end,
+ set = function(info, value) E.private.sle.minimap.mapicons.template = value; E:StaticPopup_Show("PRIVATE_RL") end,
+ values = {
+ ["NoBackdrop"] = NONE,
+ ["Default"] = DEFAULT,
+ ["Transparent"] = L["Transparent"],
+ },
+ },
},
}
end