Run when the mouse moves away from a hyperlink in the scrolling message frame or SimpleHTML frame
Signature:
OnHyperlinkLeave(self,
"linkData",
"link")
Arguments:
self
- Reference to the widget for which the script was run (frame
)linkData
- Essential data (linktype:linkdata
portion) of the hyperlink (e.g."quest:982:17"
) (string
)link
- Complete hyperlink text (e.g."|cffffff00|Hquest:982:17|h[Deep Ocean, Vast Sea]|h|r"
) (string
, hyperlink)
Examples:
-- Prints data about the hyperlink you leave in the default chat frame DEFAULT_CHAT_FRAME:SetScript("OnHyperlinkLeave", function(self, linkData, link) local color = link:match("|c%x%x%x%x%x%x%x%x") or "" self:AddMessage("linkData: "..linkData) self:AddMessage(format("link: %s%s", color, link:gsub("|","||"))) end)