Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement
This function is implemented in :OnHyperlinkShow FrameXML/ChatFrame.lua.

This function is called when a user clicks on a link in the chatframe (i.e. on an itemlink).

ChatFrame_OnHyperlinkShow(self, link, text, button)

Arguments

self
table (Frame) - ChatFrame in which the link was clicked
link
String - a 3 part value. Possible format: "AddOnName_OR_UnitType|LinkText|SomeIDInteger" - For example "myAddon|add|1" where "myAddon" is the addon that received the message, "add" is the link text, and unsure what the number "1" is. Have seen examples of formats "unit|playername|SomeIDInteger" for example "player|jackelmyer|1111". Note 1111 wasn't the actual value but it was 4 digits.
text
String - the visual text value of the link - For example "MyLinksText" where "MyLinkText" is the value displayed in the chatframe
button
String - the mousebutton which was pressed - For example "LeftButton"
Advertisement