[notabug] No middle mouse button for mail attachment.
I've added a middle mouse button (number 3) event for my inventory items. When I try to do the same to mail attachments, it's the same event and it reports d() fine for buttons 1 and 2 (left and right buttons), but 3 (middle) is not recognized at all.
Please verify and fix. ty xoxo Code:
ZO_PreHook("ZO_InventorySlot_OnSlotClicked", function(inventorySlot, button) d(button) end) |
No bug - Mouse driver issue or code param "button" globally known and wrong?
Just a guess but is there an OnMouseUp event for the inventorySlots as well and did you try if this function works for the middle mouse?
I got some problems with OnClick events in the past and toptally changed to the OnMosueDown and OnMouseUp stuff then, as e.g. labels or other controls don't have an OnClicked event as it seems. Edit: Seems there is only this global function, so this really might be a bug if MOUSE_BUTTON_INDEX_MIDDLE is not given Lua Code:
I'll test this also with my mouse, maybe it's a driver issue or whatever. Will report here Edit: After some tests it works fine for me and my mouse. Also on the mail send panel! Chat output will be: So this seems to be related to your code (maybe change the variable name button to p_button like I did!) or to your mouse driver |
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. |
I did not enable this "on purpose". Maybe another addon did this then.
|
Quote:
Quote:
After searching about, prehooking here did the trick: Quote:
|
All times are GMT -6. The time now is 07:01 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI