Quantcast

renamed setting to avoid confusion

Darthpred [05-08-15 - 00:10]
renamed setting to avoid confusion
Filename
ElvUI_SLE/defaults/profile.lua
ElvUI_SLE/modules/uibuttons.lua
ElvUI_SLE/options/uibuttons_c.lua
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index 7f93562..e661dd3 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -407,7 +407,7 @@ P['sle'] = {
 		['anchor'] = "TOPRIGHT",
 		['xoffset'] = 0,
 		['yoffset'] = 0,
-		['roll'] = {
+		['customroll'] = {
 			['min'] = "1",
 			['max'] = "50",
 		},
diff --git a/ElvUI_SLE/modules/uibuttons.lua b/ElvUI_SLE/modules/uibuttons.lua
index 198928c..f91ac49 100644
--- a/ElvUI_SLE/modules/uibuttons.lua
+++ b/ElvUI_SLE/modules/uibuttons.lua
@@ -6,7 +6,7 @@ local SLE = E:GetModule("SLE")
 local S = E:GetModule("Skins")

 local function CustomRollCall()
-	local min, max = tonumber(E.db.sle.uibuttons.roll.min), tonumber(E.db.sle.uibuttons.roll.max)
+	local min, max = tonumber(E.db.sle.uibuttons.customroll.min), tonumber(E.db.sle.uibuttons.customroll.max)
 	if min <= max then
 		RandomRoll(min, max)
 	else
diff --git a/ElvUI_SLE/options/uibuttons_c.lua b/ElvUI_SLE/options/uibuttons_c.lua
index 006402a..26246df 100644
--- a/ElvUI_SLE/options/uibuttons_c.lua
+++ b/ElvUI_SLE/options/uibuttons_c.lua
@@ -159,8 +159,8 @@ local function configTable()
 				name = L["Minimum Roll Value"],
 				desc = L["The lower limit for custom roll button."],
 				disabled = function() return not E.db.sle.uibuttons.enable or E.private.sle.uiButtonStyle == "classic" end,
-				get = function(info) return E.db.sle.uibuttons.roll.min end,
-				set = function(info, value) E.db.sle.uibuttons.roll.min = value; end,
+				get = function(info) return E.db.sle.uibuttons.customroll.min end,
+				set = function(info, value) E.db.sle.uibuttons.customroll.min = value; end,
 			},
 			maxroll = {
 				order = 18,
@@ -168,8 +168,8 @@ local function configTable()
 				name = L["Maximum Roll Value"],
 				desc = L["The higher limit for custom roll button."],
 				disabled = function() return not E.db.sle.uibuttons.enable or E.private.sle.uiButtonStyle == "classic" end,
-				get = function(info) return E.db.sle.uibuttons.roll.max end,
-				set = function(info, value) E.db.sle.uibuttons.roll.max = value; end,
+				get = function(info) return E.db.sle.uibuttons.customroll.max end,
+				set = function(info, value) E.db.sle.uibuttons.customroll.max = value; end,
 			},
 			Config = {
 				order = 19,