RSS

Четверг, 25.04.2024, 16:10
Главная » WoW API » Событий API Виджетов »

OnHyperlinkEnter

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


Signature:
Code
OnHyperlinkEnter(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 enter in the default chat frame
DEFAULT_CHAT_FRAME:SetScript("OnHyperlinkEnter", 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/OnHyperlinkEnter