WoW:API ChatFrame OnHyperlinkShow: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API ChatFrame OnHyperlinkShow to API ChatFrame OnHyperlinkShow without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{framexmlfunc|FrameXML/ChatFrame.lua}} __NOTOC__
{{framexmlfunc|FrameXML/ChatFrame.lua}}
 
 
ChatFrame_OnHyperlinkShow(reference, link, button)
 
This function is called when a user clicks on a link in the chatframe (i.e. on an itemlink).
This function is called when a user clicks on a link in the chatframe (i.e. on an itemlink).
ChatFrame_OnHyperlinkShow(chatFrame, link, text, button)


 
== Arguments ==
== Parameters ==
;chatFrame : table (Frame) - ChatFrame in which the link was clicked.
=== Arguments ===
;link : String - The link component of the clicked hyperlink. (e.g. "item:6948:0:0:0...")
:(reference, link, button)
;text : String - The label component of the clicked hyperlink. (e.g. "[Hearthstone]")
 
;button : String - Button clicking the hyperlink button. (e.g. "LeftButton")
:;itemString : String - the [[itemString]] -  For example: "item:14344:0:0:0"
:;link : String - the complete [[itemLink]] - For exmaple: "|cff0070dd|Hitem:14344:0:0:0|h[itemname]|h|r
:;button : String - the mousebutton which was pressed - For exmaple "LeftButton"
 
=== Returns ===
:;nil

Latest revision as of 04:45, 15 August 2023

WoW API < ChatFrame:OnHyperlinkShow

"I" iconThis function is implemented in Lua here FrameXML/ChatFrame.lua.

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

ChatFrame_OnHyperlinkShow(chatFrame, link, text, button)

Arguments[edit]

chatFrame
table (Frame) - ChatFrame in which the link was clicked.
link
String - The link component of the clicked hyperlink. (e.g. "item:6948:0:0:0...")
text
String - The label component of the clicked hyperlink. (e.g. "[Hearthstone]")
button
String - Button clicking the hyperlink button. (e.g. "LeftButton")