Thread Tools Display Modes
02/02/20, 01:47 PM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
[open] CraftBag does not trigger events like normal inventory

The CraftBag does not trigger the following events properly if an item is started to be dragged or dropped from the CraftBag rows:

EVENT_INVENTORY_SLOT_LOCKED
EVENT_INVENTORY_SLOT_UNLOCKED

ESOUI source code: https://github.com/esoui/esoui/blob/.../inventory.lua

The ZO_InventoryManager uses function
ZO_InventoryManager:RegisterForEvents(control)
to register those events to the PLAYER_INVENTORY.

But this code line here which should register the event to the inventory:
control:RegisterForEvent(EVENT_INVENTORY_SLOT_LOCKED, function(event, bagId, slotIndex) self:OnInventorySlotLocked(bagId, slotIndex) end)

does not seem to be called or triggered from the craftbag inventory.
At least the function PLAYER_INVENTROY or ZO_InventoryManager OnInventorySlotLocked will only be fired for the bagpack, banks, but not the craftbag if you drag&drop any item.

Could you please fix this in order to make the events be fired constantly for the inventory rows drag&drop and the craftbag drag&drop.
Thank you very much.

Last edited by Baertram : 08/02/20 at 05:20 PM.
  Reply With Quote

ESOUI » Developer Discussions » Bug Reports » [open] CraftBag does not trigger events like normal inventory

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off