View Single Post
04/26/19, 10:58 PM   #5
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Originally Posted by Baertram View Post
I did not enable this "on purpose". Maybe another addon did this then.
Looks like another addon has enabled this for you. Try again without any addons. My tests are very clear: in mail inbox buttons 1 and 2 show, but 3 doesn't - while all three buttons show with inventory.

Originally Posted by sirinsidiator
Did you enable the mouse button on the control you are using the onclicked handler on?
Per default only the left mouse button is active and you have to manually enable any additional buttons you wish to use via "control:EnableMouseButton(mouseButton, enable)". Otherwise the OnClicked handler won't fire for them.
Thanks, your suggestion works. Very awkward that it takes a function, because now I'm awkwardly wondering where to apply it. I can't apply it on click, naturally, and there's no available mouse-over event to pre-hook. The ZO_Inventory_BindSlot pre-hook won't work, as it happens before my addon is even loaded. Such a pain for a small thing.

After searching about, prehooking here did the trick:
ZO_PreHook("ZO_Inventory_SetupSlot", AddMiddleMouseButton)
Now back to being stuck with finding where the mail attachmentSlot keeps the item name, as it's not a real slot (no bagid) and not a row (no proper data)....

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