View Single Post
04/27/19, 11:30 AM   #1
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Is it not possible to get a mail attachment's name?

tl;dr My goal is to click an inbox attachment and print its name into the chat input box, for quick copying. (Not into the chat output.)

When clicking an inventory item, I can pre-hook into the event and get its data.name. But with inbox mail attachments, they don't have a bagId], so it's not possible to get that data the same way.

I've tried inspecting MAIL_INBOX thoroughly. Same for the attachmentslot in the event and its parents.

I've looked through the forums.

Two days now, and when I realized I could check the one event exposed on right-clicking attachments Link in Chat, I saw it uses an unexposed function ZO_LinkHandler_CreateChatLink. Dead end.

EDIT: Even just tried hooking into link creation, to grab the text output on the way, but it wouldn't let me.

Any clues? Just not possible without overhauling the whole thing? Should the devs just expose the name in the control?


https://esoapi.uesp.net/100026/src/i...board.lua.html

https://esoapi.uesp.net/100026/src/i...yslot.lua.html

Last edited by Phuein : 04/27/19 at 11:51 AM.
  Reply With Quote