From 693ce5b249ab95c6aea037e1425a9061b719d70e Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 8 May 2015 04:10:46 +0400 Subject: [PATCH] renamed setting to avoid confusion --- ElvUI_SLE/defaults/profile.lua | 2 +- ElvUI_SLE/modules/uibuttons.lua | 2 +- ElvUI_SLE/options/uibuttons_c.lua | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) 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, -- 1.7.9.5