View Single Post
11/01/15, 03:24 PM   #7
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
If all your wanting is the slot control then try this:

Lua Code:
  1. local function OnWornSlotUpdate(slotControl)
  2.  
  3. end
  4.  
  5. CALLBACK_MANAGER:RegisterCallback("WornSlotUpdate", OnWornSlotUpdate)

Edit:
Ooops, I should have tested it. If the user does a normal equip/unequip, double click, or drag to equip it fires once. But if they drag the item out of the slot (like to unequip by dragging to the inventory) it fires on the drag & again whenever they drop the item. So that one might not be useful.

Last edited by circonian : 11/01/15 at 06:13 PM.
  Reply With Quote