ZO_LinkHandler_CreateLinkWithFormat and zo_iconformat
I'm trying to attach a character link an icon in a text string. So on rightclicking the icon i'll get a specific character context menu.
And the problem is that if i feed zo_iconformat to ZO_LinkHandler_CreateLinkWithFormat then the icon is not parsed but instead is treated as a string of characters. Does anybody know of a workaround? Essentially ZO_LinkHandler_CreateLinkWithFormat produces a string like: "|HLINK_STYLE_DEFAULT:character:Charname^Mx|hTEXT|h" and i feed zo_iconformat instead of TEXT, so the result looks like: "|HLINK_STYLE_DEFAULT:character:Charname^Mx|h|t64:64:mypath\myicon.dds|t|h" And |t64:64:mypath\myicon.dds|t is treated as a literal string of symbols instead of the icon. |
The game does not support nested markup. However, there is a really wonky way to do what you want.
Simply put you can abuse how the link markup behaves to span over the icon. That's how I managed to create the clickable icon in Chat2Clipboard: Lua Code:
|
Quote:
Hugely appreciated. I totally suspected there should be a hacky workaround! Much love! |
All times are GMT -6. The time now is 06:20 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI