Originally Posted by Garkin
Itemlinks are now different. This is how itemlink looks like on PTS:
Code:
|H0:item:54513:3:9:45870:3:9:0:0:0:0:0:0:0:0:0:5:0:0:0:0|h|h
|H0:item:793:1:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h
|H0:item:45024:19:12:26848:19:12:0:0:0:0:0:0:0:0:0:9:0:0:124:0|h|h
New format is:
Lua Code:
"|H" .. linkStyle .. ":" .. linkType .. ":" .. data .. "|h" .. text .. "|h"
Variable "text" is usualy empty string, at least in links generated using the GetItemLink(bagIndex, slotIndex) and links which you get from events (tested with EVENT_LOOT_RECEIVED and EVENT_INVENTORY_SINGLE_SLOT_UPDATE).
New CreateLink and ParseLink functions:
Lua Code:
function ZO_LinkHandler_CreateLink(text, color, linkType, ...) --where ... is the data to encode if linkType then return ("|H%d:%s|h[%s]|h"):format(LINK_STYLE_BRACKETS, zo_strjoin(':', linkType, ...), text) end end function ZO_LinkHandler_ParseLink(link) if type(link) == "string" then local linkStyle, data, text = link:match("|H(.-):(.-)|h(.-)|h") return text, linkStyle, zo_strsplit(':', data) end end
|
In LootDrop, i was using itemlink's texts from EVENT_LOOT_RECEIVED to obtain QuestTool's icons by associations. Now, i 've got no text in itemlinks.
Someone know how to obtain plein text from this itemlinks ? is there an API function fro that ?