load Loot and LootRoll modules

This commit is contained in:
Crum
2018-01-04 11:42:47 -06:00
parent 616a34ce78
commit 610d202bdb
7 changed files with 679 additions and 14 deletions
+20 -11
View File
@@ -104,8 +104,17 @@ E.Options.args.general = {
get = function(info) return E.private.general.lootRoll; end,
set = function(info, value) E.private.general.lootRoll = value; E:StaticPopup_Show("PRIVATE_RL"); end
},
eyefinity = {
lootUnderMouse = {
order = 10,
type = "toggle",
name = L["Loot Under Mouse"],
desc = L["Enable/Disable loot frame under the mouse cursor."],
get = function(info) return E.private.general.lootUnderMouse; end,
set = function(info, value) E.private.general.lootUnderMouse = value; end,
disabled = function() return not E.private.general.loot; end
},
eyefinity = {
order = 11,
name = L["Multi-Monitor Support"],
desc = L["Attempt to support eyefinity/nvidia surround."],
type = "toggle",
@@ -113,19 +122,19 @@ E.Options.args.general = {
set = function(info, value) E.global.general[ info[getn(info)] ] = value; E:StaticPopup_Show("GLOBAL_RL"); end
},
hideErrorFrame = {
order = 11,
order = 12,
type = "toggle",
name = L["Hide Error Text"],
desc = L["Hides the red error text at the top of the screen while in combat."]
},
taintLog = {
order = 12,
order = 13,
type = "toggle",
name = L["Log Taints"],
desc = L["Send ADDON_ACTION_BLOCKED errors to the Lua Error frame. These errors are less important in most cases and will not effect your game performance. Also a lot of these errors cannot be fixed. Please only report these errors if you notice a Defect in gameplay."]
},
bottomPanel = {
order = 13,
order = 14,
type = "toggle",
name = L["Bottom Panel"],
desc = L["Display a panel across the bottom of the screen. This is for cosmetic only."],
@@ -133,7 +142,7 @@ E.Options.args.general = {
set = function(info, value) E.db.general.bottomPanel = value; E:GetModule("Layout"):BottomPanelVisibility(); end
},
topPanel = {
order = 14,
order = 15,
type = "toggle",
name = L["Top Panel"],
desc = L["Display a panel across the top of the screen. This is for cosmetic only."],
@@ -141,7 +150,7 @@ E.Options.args.general = {
set = function(info, value) E.db.general.topPanel = value; E:GetModule("Layout"):TopPanelVisibility(); end
},
afk = {
order = 15,
order = 16,
type = "toggle",
name = L["AFK Mode"],
desc = L["When you go AFK display the AFK screen."],
@@ -149,13 +158,13 @@ E.Options.args.general = {
set = function(info, value) E.db.general.afk = value; E:GetModule("AFK"):Toggle(); end
},
enhancedPvpMessages = {
order = 16,
order = 17,
type = "toggle",
name = L["Enhanced PVP Messages"],
desc = L["Display battleground messages in the middle of the screen."],
},
raidUtility = {
order = 17,
order = 18,
type = "toggle",
name = RAID_CONTROL,
desc = L["Enables the ElvUI Raid Control panel."],
@@ -163,7 +172,7 @@ E.Options.args.general = {
set = function(info, value) E.private.general.raidUtility = value; E:StaticPopup_Show("PRIVATE_RL") end
},
autoScale = {
order = 18,
order = 19,
name = L["Auto Scale"],
desc = L["Automatically scale the User Interface based on your screen resolution"],
type = "toggle",
@@ -171,7 +180,7 @@ E.Options.args.general = {
set = function(info, value) E.global.general[ info[getn(info)] ] = value; E:StaticPopup_Show("GLOBAL_RL") end
},
minUiScale = {
order = 19,
order = 20,
type = "range",
name = L["Lowest Allowed UI Scale"],
min = 0.32, max = 0.64, step = 0.01,
@@ -179,7 +188,7 @@ E.Options.args.general = {
set = function(info, value) E.global.general.minUiScale = value; E:StaticPopup_Show("GLOBAL_RL"); end
},
numberPrefixStyle = {
order = 20,
order = 21,
type = "select",
name = L["Number Prefix"],
get = function(info) return E.db.general.numberPrefixStyle; end,