m
Cleanup
(Modified pattern for extracting itemString. Sporadically, GetContainerItemLink(bagID, slotID) returns a link with no text between brackets. The new pattern extracts the item string nevertheless.) |
m (Cleanup) |
||
| Line 3: | Line 3: | ||
== itemLink API Type (String) == | == itemLink API Type (String) == | ||
itemLinks are returned by several functions, e.g. [[API GetAuctionItemLink|GetAuctionItemLink]](), [[API GetContainerItemLink|GetContainerItemLink]](), [[API GetInventoryItemLink|GetInventoryItemLink]](), etc. | itemLinks are returned by several functions, e.g. [[API GetAuctionItemLink|GetAuctionItemLink]](), [[API GetContainerItemLink|GetContainerItemLink]](), [[API GetInventoryItemLink|GetInventoryItemLink]](), etc. | ||
| Line 21: | Line 20: | ||
* <tt>"'''|h'''"</tt> – "End of hyperlink" | * <tt>"'''|h'''"</tt> – "End of hyperlink" | ||
* <tt>"'''|r'''"</tt> – Restores color to normal | * <tt>"'''|r'''"</tt> – Restores color to normal | ||
You can extract the itemString from a given itemLink with the following pattern: | You can extract the itemString from a given itemLink with the following pattern: | ||
| Line 30: | Line 28: | ||
== Printing links for debug == | == Printing links for debug == | ||
Printing out the contents of an item link is perhaps not so obvious; displaying it anywhere in-game will just show you a clickable link. Reformat it slightly to ruin the [[UI Escape Sequences|escape sequences]] and you'll see what it really looks like: | Printing out the contents of an item link is perhaps not so obvious; displaying it anywhere in-game will just show you a clickable link. Reformat it slightly to ruin the [[UI Escape Sequences|escape sequences]] and you'll see what it really looks like: | ||