This commit is contained in:
Crum
2018-10-09 19:16:17 -05:00
parent d7f77ec694
commit 4044259cc9
7 changed files with 362 additions and 69 deletions
+162 -8
View File
@@ -60,20 +60,26 @@ E.Options.args.bags = {
name = L["Clear Search On Close"],
set = function(info, value) E.db.bags[ info[getn(info)] ] = value end
},
disableBagSort = {
reverseSlots = {
order = 3,
type = "toggle",
name = L["Reverse Bag Slots"],
set = function(info, value) E.db.bags[info[getn(info)]] = value B:UpdateAll() end,
},
disableBagSort = {
order = 4,
type = "toggle",
name = L["Disable Bag Sort"],
set = function(info, value) E.db.bags[ info[getn(info)] ] = value; B:ToggleSortButtonState(false) end
},
disableBankSort = {
order = 4,
order = 5,
type = "toggle",
name = L["Disable Bank Sort"],
set = function(info, value) E.db.bags[ info[getn(info)] ] = value; B:ToggleSortButtonState(true) end
},
countGroup = {
order = 5,
order = 6,
type = "group",
name = L["Item Count Font"],
guiInline = true,
@@ -123,7 +129,7 @@ E.Options.args.bags = {
}
},
itemLevelGroup = {
order = 6,
order = 7,
type = "group",
name = L["Item Level"],
guiInline = true,
@@ -307,9 +313,152 @@ E.Options.args.bags = {
}
}
},
bagSortingGroup = {
split = {
order = 6,
type = "group",
name = L["Split"],
get = function(info) return E.db.bags.split[ info[getn(info)] ] end,
set = function(info, value) E.db.bags.split[ info[getn(info)] ] = value B:UpdateAll() end,
disabled = function() return not E.bags end,
args = {
header = {
order = 1,
type = "header",
name = L["Split"]
},
bagSpacing = {
order = 2,
type = "range",
name = L["Bag Spacing"],
min = 0, max = 20, step = 1
},
player = {
order = 3,
type = "toggle",
set = function(info, value) E.db.bags.split[ info[getn(info)] ] = value B:Layout() end,
name = L["Bag"]
},
bank = {
order = 4,
type = "toggle",
set = function(info, value) E.db.bags.split[ info[getn(info)] ] = value B:Layout(true) end,
name = L["Bank"]
},
splitbags = {
order = 5,
type = "group",
name = L["Player"],
get = function(info) return E.db.bags.split[ info[getn(info)] ] end,
set = function(info, value) E.db.bags.split[ info[getn(info)] ] = value B:Layout() end,
disabled = function() return not E.db.bags.split.player end,
guiInline = true,
args = {
bag1 = {
order = 2,
type = "toggle",
name = L["Bag 1"]
},
bag2 = {
order = 3,
type = "toggle",
name = L["Bag 2"]
},
bag3 = {
order = 4,
type = "toggle",
name = L["Bag 3"]
},
bag4 = {
order = 5,
type = "toggle",
name = L["Bag 4"]
}
}
},
splitbank = {
order = 6,
type = "group",
name = L["Bank"],
get = function(info) return E.db.bags.split[ info[getn(info)] ] end,
set = function(info, value) E.db.bags.split[ info[getn(info)] ] = value B:Layout(true) end,
disabled = function() return not E.db.bags.split.bank end,
guiInline = true,
args = {
bag5 = {
order = 2,
type = "toggle",
name = L["Bank 1"]
},
bag6 = {
order = 3,
type = "toggle",
name = L["Bank 2"]
},
bag7 = {
order = 4,
type = "toggle",
name = L["Bank 3"]
},
bag8 = {
order = 5,
type = "toggle",
name = L["Bank 4"]
},
bag9 = {
order = 6,
type = "toggle",
name = L["Bank 5"]
},
bag10 = {
order = 7,
type = "toggle",
name = L["Bank 6"]
},
bag11 = {
order = 8,
type = "toggle",
name = L["Bank 7"]
}
}
}
}
},
vendorGrays = {
order = 7,
type = "group",
name = L["Vendor Grays"],
get = function(info) return E.db.bags.vendorGrays[ info[getn(info)] ] end,
set = function(info, value) E.db.bags.vendorGrays[ info[getn(info)] ] = value end,
args = {
header = {
order = 1,
type = "header",
name = L["Vendor Grays"]
},
enable = {
order = 2,
type = "toggle",
name = L["Enable"],
desc = L["Automatically vendor gray items when visiting a vendor."]
},
interval = {
order = 3,
type = "range",
name = L["Sell Interval"],
desc = L["Will attempt to sell another item in set interval after previous one was sold."],
min = 0.1, max = 1, step = 0.1
},
details = {
order = 4,
type = "toggle",
name = L["Vendor Gray Detailed Report"],
desc = L["Displays a detailed report of every item sold when enabled."]
}
}
},
bagSortingGroup = {
order = 8,
type = "group",
name = L["Bag Sorting"],
disabled = function() return not E.bags end,
args = {
@@ -347,7 +496,7 @@ E.Options.args.bags = {
desc = L["Add an item or search syntax to the ignored list. Items matching the search syntax will be ignored."],
get = function(info) return "" end,
set = function(info, value)
if(value == "" or gsub(value, "%s+", "") == "") then return end
if value == "" or gsub(value, "%s+", "") == "" then return end
local itemID = match(value, "item:(%d+)")
E.db.bags.ignoredItems[(itemID or value)] = value
@@ -403,13 +552,18 @@ E.Options.args.bags = {
}
},
search_syntax = {
order = 7,
order = 9,
type = "group",
name = L["Search Syntax"],
disabled = function() return not E.bags end,
args = {
text = {
header = {
order = 1,
type = "header",
name = L["Search Syntax"]
},
text = {
order = 2,
type = "input",
multiline = 30,
width = "full",