From 712ef8206a889181d6ed9a11a9a8a3c8691c62e2 Mon Sep 17 00:00:00 2001 From: Repooc Date: Sat, 16 Aug 2014 09:18:53 -0400 Subject: [PATCH] Cleanup --- ElvUI_SLE/locales/english.lua | 1 + ElvUI_SLE/options/tooltip_c.lua | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua index 8cf22dc..7b61ba1 100644 --- a/ElvUI_SLE/locales/english.lua +++ b/ElvUI_SLE/locales/english.lua @@ -344,6 +344,7 @@ L["Flying & Ground"] = true L["Swimming"] = true --Tooltip-- +L["TTOFFSET_DESC"] = "This adds the ability to have the tooltip offset from the cursor. Make sure to have the \"Cursor Anchor\" option enabled in ElvUI's Tooltip section to use this feature." L["Tooltip enhancements"] = true L["Faction Icon"] = true L["Tooltip Cursor Offset"] = true diff --git a/ElvUI_SLE/options/tooltip_c.lua b/ElvUI_SLE/options/tooltip_c.lua index 6a63aa0..f6b0a25 100644 --- a/ElvUI_SLE/options/tooltip_c.lua +++ b/ElvUI_SLE/options/tooltip_c.lua @@ -5,7 +5,6 @@ local function configTable() order = 10, type = "group", get = function(info) return E.db.sle.tooltip[ info[#info] ] end, - disabled = function() return not E.private.tooltip.enable end, name = L["Tooltip"], args = { header = { @@ -28,16 +27,32 @@ local function configTable() type = 'toggle', name = L["Faction Icon"], desc = L["Show faction icon to the left of player's name on tooltip."], + disabled = function() return not E.private.tooltip.enable end, --get = function(info) return E.db.sle.tooltip.showFaction end, set = function(info, value) E.db.sle.tooltip.showFaction = value end, }, + space2 = { + order = 6, + type = 'description', + name = "", + }, offset = { type = "group", name = L["Tooltip Cursor Offset"], - order = 6, + order = 7, guiInline = true, disabled = function() return not E.private.tooltip.enable or not E.db.tooltip.cursorAnchor end, args = { + intro = { + order = 1, + type = 'description', + name = L["TTOFFSET_DESC"], + }, + space1 = { + order = 2, + type = 'description', + name = "", + }, xOffset = { order = 31, type = 'range', -- 1.7.9.5