From f9e7ad9da33c05fb62675c1dfe2cbff735f4502b Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Tue, 25 Aug 2026 21:39:00 +0200 Subject: [PATCH] Restore native Turtle quest link tooltips --- mods/chat-tweaks.lua | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/mods/chat-tweaks.lua b/mods/chat-tweaks.lua index 22093b9..b351491 100644 --- a/mods/chat-tweaks.lua +++ b/mods/chat-tweaks.lua @@ -262,8 +262,9 @@ module.enable = function(self) end end) - -- Keep all Chat Tweaks hyperlink actions local to the chat frame so the - -- global SetItemRef function remains untouched for Turtle and addons. + -- Keep Chat Tweaks-specific actions local to the chat frame. All other + -- hyperlinks, including Turtle quest links, stay owned by the native + -- handler so their full tooltip data and difficulty colors are preserved. chatFrame:SetScript("OnHyperlinkClick", function() local _, _, playerLink = string.find(arg1, "(player:.+)") if playerLink then @@ -278,20 +279,6 @@ module.enable = function(self) ChatFrameEditBox:Insert("|cffffffff|Hplayer:"..pname.."|h["..pname.."]|h|r") return end - elseif strsub(arg1,1,5) == "quest" and not (ShaguQuest or pfQuest or Questie or QuestieOcto) then - local _, _, quest_id = string.find(arg1, "^quest:(%d+):") - if quest_id then - local _, _, quest_title = string.find(arg2 or "", ".*|h%[(.*)%]|h.*") - if quest_title then - HideUIPanel(ItemRefTooltip) - ShowUIPanel(ItemRefTooltip) - ItemRefTooltip:SetOwner(UIParent, "ANCHOR_PRESERVE") - ItemRefTooltip:AddLine(quest_title, 1,1,0) - ItemRefTooltip:AddDoubleLine("Quest ID", quest_id, .6,.6,.6, 1,1,1) - ItemRefTooltip:Show() - end - end - return elseif strsub(arg1,1,3) == "url" then if string.len(arg1) > 4 and string.sub(arg1,1,4) == "url:" then CopyLinkDialog.CopyText(string.sub(arg1, 5))