RSS

Пятница, 26.04.2024, 09:22
Главная » WoW API » Событий API Виджетов »

OnHyperlinkLeave

[ править ]
Run when the mouse moves away from a hyperlink in the scrolling message frame or SimpleHTML frame.
[клоны]
Run when the mouse moves away from a hyperlink in the scrolling message frame or SimpleHTML frame.


Signature:
Code
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. "cffffff00Hquest:982:17h[Deep Ocean, Vast Sea]hr") (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)

Доступна для: EditBox, ScrollingMessageFrame, SimpleHTML

Также смотрите: Событий API Виджетов
Ссылки: http://wowprogramming.com/docs/scripts/OnHyperlinkLeave