From cccc84ea843222e6d35d925a94ca1add0ac86f7b Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 23 Apr 2010 01:03:08 -0400 Subject: [PATCH] Under "Display Options", it is now possible to turn off the hint text at the bottom of the acquire tooltip. --- ARL.lua | 1 + Config.lua | 13 +++++++++++++ Frame.lua | 24 ++++++++++++++---------- Locales/devel-enUS.lua | 4 ++++ 4 files changed, 32 insertions(+), 10 deletions(-) diff --git a/ARL.lua b/ARL.lua index 153fe33..2f982ed 100644 --- a/ARL.lua +++ b/ARL.lua @@ -221,6 +221,7 @@ function addon:OnInitialize() spelltooltiplocation = "Right", acquiretooltiplocation = "Right", recipes_in_tooltips = true, + hide_tooltip_hint = false, hidepopup = false, minimap = true, worldmap = true, diff --git a/Config.lua b/Config.lua index 1890b24..3b6ce05 100644 --- a/Config.lua +++ b/Config.lua @@ -723,6 +723,19 @@ local function giveDisplay() addon.db.profile.recipes_in_tooltips = not addon.db.profile.recipes_in_tooltips end, }, + tooltip_hint = { + order = 24, + type = "toggle", + width = "full", + name = L["TOOLTIP_HINT"], + desc = L["TOOLTIP_HINT_DESC"], + get = function() + return addon.db.profile.hide_tooltip_hint + end, + set = function(info, value) + addon.db.profile.hide_tooltip_hint = value + end, + }, }, } end diff --git a/Frame.lua b/Frame.lua index 75909e8..4545377 100644 --- a/Frame.lua +++ b/Frame.lua @@ -923,18 +923,21 @@ do end -- for id_num end -- if can_display end -- for acquire_type - acquire_tip:AddSeparator() - acquire_tip:AddSeparator() - -- Give the tooltip hint a unique color. - color_1 = "c9c781" + if not addon.db.profile.hide_tooltip_hint then + -- Give the tooltip hint a unique color. + color_1 = "c9c781" + + acquire_tip:AddSeparator() + acquire_tip:AddSeparator() - ttAdd(0, -1, 0, L["ALT_CLICK"], color_1) - ttAdd(0, -1, 0, L["CTRL_CLICK"], color_1) - ttAdd(0, -1, 0, L["SHIFT_CLICK"], color_1) + ttAdd(0, -1, 0, L["ALT_CLICK"], color_1) + ttAdd(0, -1, 0, L["CTRL_CLICK"], color_1) + ttAdd(0, -1, 0, L["SHIFT_CLICK"], color_1) - if _G.TomTom and (addon.db.profile.worldmap or addon.db.profile.minimap) then - ttAdd(0, -1, 0, L["CTRL_SHIFT_CLICK"], color_1) + if _G.TomTom and (addon.db.profile.worldmap or addon.db.profile.minimap) then + ttAdd(0, -1, 0, L["CTRL_SHIFT_CLICK"], color_1) + end end acquire_tip:Show() @@ -1090,7 +1093,8 @@ do RecipesTab, } MainPanel:Hide() -end +end -- do-block + ------------------------------------------------------------------------------- -- MainPanel scripts/functions. ------------------------------------------------------------------------------- diff --git a/Locales/devel-enUS.lua b/Locales/devel-enUS.lua index 7aca202..fc9f1b9 100644 --- a/Locales/devel-enUS.lua +++ b/Locales/devel-enUS.lua @@ -148,8 +148,12 @@ L["Tooltip (Recipe) Position"] = true L["SPELLTOOLTIPPOSITION_DESC"] = "Changes the location of the tooltip containing the recipe information." L["Tooltip (Acquire) Position"] = true L["ACQUIRETOOLTIPPOSITION_DESC"] = "Changes the location of the tooltip containing the acquire information." + L["Recipes In Tooltips"] = true L["UNIT_TOOLTIPS_DESC"] = "Toggles whether or not to display unknown recipes in the tooltips of the vendors, trainers, or mobs which carry them." +L["TOOLTIP_HINT"] = "Hide Hint Text" +L["TOOLTIP_HINT_DESC"] = "Hides the hint text at the bottom of the tooltip." + L["FONT_SIZE_DESC"] = "Changes the size of the fonts for ARL." L["Sorting"] = true L["Sort"] = true -- 1.7.9.5