diff --git a/ElvUI_SLE/options/loot_c.lua b/ElvUI_SLE/options/loot_c.lua
index bbd0595..0868d2e 100644
--- a/ElvUI_SLE/options/loot_c.lua
+++ b/ElvUI_SLE/options/loot_c.lua
@@ -19,79 +19,89 @@ local function configTable()
type = 'description',
name = "",
},
- autoconfirm = {
- order = 3,
- type = "toggle",
- name = "Auto Confirm",
- desc = "Automatically click OK on BOP items",
- disabled = function() return not E.db.sle.loot.enable end,
- get = function(info) return E.db.sle.loot.autoconfirm end,
- set = function(info, value) E.db.sle.loot.autoconfirm = value; end,
- },
- autoqlty = {
- order = 4,
- type = "select",
- name = "Auto Roll Quality",
- desc = "Sets the auto greed/disenchant quality\n\nUncommon: Rolls on Uncommon only\nRare: Rolls on Rares & Uncommon",
+ automatization = {
+ order = 1,
+ type = "group",
+ name = "Auto Rolls",
disabled = function() return not E.db.sle.loot.enable end,
- get = function(info) return E.db.sle.loot.autoqlty end,
- set = function(info, value) E.db.sle.loot.autoqlty = value; end,
- values = {
- ['2'] = "|cff1EFF00"..ITEM_QUALITY2_DESC.."|r",
- ['3'] = "|cff0070DD"..ITEM_QUALITY3_DESC.."|r",
+ args = {
+ autoconfirm = {
+ order = 3,
+ type = "toggle",
+ name = "Auto Confirm",
+ desc = "Automatically click OK on BOP items",
+ -- disabled = function() return not E.db.sle.loot.enable end,
+ get = function(info) return E.db.sle.loot.autoconfirm end,
+ set = function(info, value) E.db.sle.loot.autoconfirm = value; end,
+ },
+ autogreed = {
+ order = 4,
+ type = "toggle",
+ name = "Auto Greed",
+ desc = "Automatically greed uncommon (green) quality items at max level",
+ -- disabled = function() return not E.db.sle.loot.enable end,
+ get = function(info) return E.db.sle.loot.autogreed end,
+ set = function(info, value) E.db.sle.loot.autogreed = value; end,
+ },
+ autode = {
+ order = 5,
+ type = "toggle",
+ name = "Auto Disenchant",
+ desc = "Automatically disenchant uncommon (green) quality items at max level",
+ -- disabled = function() return not E.db.sle.loot.enable end,
+ get = function(info) return E.db.sle.loot.autode end,
+ set = function(info, value) E.db.sle.loot.autode = value; end,
+ },
+ bylevel = {
+ order = 6,
+ type = "toggle",
+ name = "Roll based on level.",
+ desc = "This will auto-roll if you are above the given level if: You cannot equip the item being rolled on, or the ilevel of your equipped item is higher than the item being rolled on or you have an heirloom equipped in that slot",
+ -- disabled = function() return not E.db.sle.loot.enable end,
+ get = function(info) return E.db.sle.loot.bylevel end,
+ set = function(info, value) E.db.sle.loot.bylevel = value; end,
+ },
+ level = {
+ order = 7,
+ type = "range",
+ name = "Level to start auto-rolling from",
+ desc = "Automatically disenchant uncommon (green) quality items at max level",
+ -- disabled = function() return not E.db.sle.loot.enable end,
+ min = 1, max = GetMaxPlayerLevel(), step = 1,
+ get = function(info) return E.db.sle.loot.level end,
+ set = function(info, value) E.db.sle.loot.level = value; end,
+ },
+ quality = {
+ order = 9,
+ type = "select",
+ name = L["Loot Quality"],
+ --desc = L["Sets the minimum loot threshold to announce."],
+ --disabled = function() return not E.db.sle.loot.enable end,
+ get = function(info) return E.db.sle.loot.rollfor end,
+ set = function(info, value) E.db.sle.loot.rollfor = value; LT:AutoQuality() end,
+ values = {
+ ['EPIC'] = "|cffA335EE"..ITEM_QUALITY4_DESC.."|r",
+ ['RARE'] = "|cff0070DD"..ITEM_QUALITY3_DESC.."|r",
+ ['UNCOMMON'] = "|cff1EFF00"..ITEM_QUALITY2_DESC.."|r",
+ },
+ },
},
},
- autogreed = {
- order = 5,
- type = "toggle",
- name = "Auto Greed",
- desc = "Automatically greed uncommon (green) quality items at max level",
- disabled = function() return not E.db.sle.loot.enable end,
- get = function(info) return E.db.sle.loot.autogreed end,
- set = function(info, value) E.db.sle.loot.autogreed = value; end,
- },
- autode = {
- order = 6,
- type = "toggle",
- name = "Auto Disenchant",
- desc = "Automatically disenchant uncommon (green) quality items at max level",
- disabled = function() return not E.db.sle.loot.enable end,
- get = function(info) return E.db.sle.loot.autode end,
- set = function(info, value) E.db.sle.loot.autode = value; end,
- },
- bylevel = {
- order = 7,
- type = "toggle",
- name = "Roll based on level.",
- desc = "This will auto-roll if you are above the given level if: You cannot equip the item being rolled on, or the ilevel of your equipped item is higher than the item being rolled on or you have an heirloom equipped in that slot",
- disabled = function() return not E.db.sle.loot.enable end,
- get = function(info) return E.db.sle.loot.bylevel end,
- set = function(info, value) E.db.sle.loot.bylevel = value; end,
- },
- level = {
+ --[[space2 = {
order = 8,
- type = "range",
- name = "Level to start auto-rolling from",
- desc = "Automatically disenchant uncommon (green) quality items at max level",
- disabled = function() return not E.db.sle.loot.enable end,
- min = 1, max = GetMaxPlayerLevel(), step = 1,
- get = function(info) return E.db.sle.loot.level end,
- set = function(info, value) E.db.sle.loot.level = value; end,
- },
- space2 = {
- order = 9,
type = 'description',
name = "",
},
space3 = {
- order = 9,
+ order = 8,
type = 'description',
name = "",
- },
+ },]]
announcer = {
- order = 15,
+ order = 9,
type = "group",
name = L["Loot Announcer"],
+ disabled = function() return not E.db.sle.loot.enable end,
args = {
header = {
order = 1,
@@ -156,9 +166,10 @@ local function configTable()
},
},
history = {
- order = 20,
+ order = 10,
type = "group",
name = L["Loot Roll History"],
+ disabled = function() return not E.db.sle.loot.enable end,
args = {
header = {
order = 1,