Add support for new stats stuff, cvar changes, and auto vendoring. (#30)

* Enhanced/CharacterFrame: Add new stat tooltips

* Enhanced/CharacterFrame: crit is a percent of base crit

* Enhanced/CharacterSheet: Update to use new cvar

* ElvUI/Merchant: Remove auto sell gray / auto repair. Client handles these now.
This commit is contained in:
Andrew
2023-02-05 17:43:09 -07:00
committed by GitHub
parent ff118b5dc0
commit 221dffffe6
10 changed files with 25 additions and 168 deletions
-41
View File
@@ -676,47 +676,6 @@ E.Options.args.bags = {
}
}
},
vendorGrays = {
order = 8,
type = "group",
name = L["Vendor Grays"],
get = function(info) return E.db.bags.vendorGrays[info[#info]] end,
set = function(info, value) E.db.bags.vendorGrays[info[#info]] = value B:UpdateSellFrameSettings() 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,
disabled = function() return not E.db.bags.vendorGrays.enable end
},
details = {
order = 4,
type = "toggle",
name = L["Vendor Gray Detailed Report"],
desc = L["Displays a detailed report of every item sold when enabled."],
disabled = function() return not E.db.bags.vendorGrays.enable end
},
progressBar = {
order = 5,
type = "toggle",
name = L["Progress Bar"],
disabled = function() return not E.db.bags.vendorGrays.enable end
}
}
},
bagSortingGroup = {
order = 9,
type = "group",
+2 -13
View File
@@ -688,25 +688,14 @@ E.Options.args.general = {
Misc:ToggleInterruptAnnounce()
end
},
autoRepair = {
order = 3,
type = "select",
name = L["Auto Repair"],
desc = L["Automatically repair using the following method when visiting a merchant."],
values = {
["NONE"] = L["NONE"],
["GUILD"] = L["GUILD"],
["PLAYER"] = L["PLAYER"]
}
},
autoAcceptInvite = {
order = 4,
order = 3,
type = "toggle",
name = L["Accept Invites"],
desc = L["Automatically accept invites from guild/friends."]
},
autoRoll = {
order = 5,
order = 4,
type = "toggle",
name = L["Auto Greed/DE"],
desc = L["Automatically select greed or disenchant (when available) on green quality items. This will only work if you are the max level."],
-7
View File
@@ -99,13 +99,6 @@ local function CreateBagsConfig()
get = function(info) return E.global.profileCopy.bags[info[#info]] end,
set = function(info, value) E.global.profileCopy.bags[info[#info]] = value end
}
config.args.vendorGrays = {
order = 5,
type = "toggle",
name = L["Vendor Grays"],
get = function(info) return E.global.profileCopy.bags[info[#info]] end,
set = function(info, value) E.global.profileCopy.bags[info[#info]] = value end
}
return config
end