Thread Tools Display Modes
Prev Previous Post   Next Post Next
08/14/14, 10:31 AM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,002
Destroying an item - Event questions

Hi,

as an item is selected to be destroyed the event EVENT_MOUSE_REQUEST_DESTROY_ITEM will fire.
The parameters are:
eventCode, bagId, slotIndex, itemCount, name, needsConfirm

I registered a callback function for the event which is executing fine.
I'm able to check the item which should be destroyed.
If the item should not be destroyed you'll have to manually press "Abort" at the popup on screen.

I'd like to do this automatically:
Assuming I accidently try to destroy an item I want to keep, and I got some marker for this item to check, if the item should be kept.

Questions:
-Is there a possibility to disable the destruction popup asking me if I want to destroy the item?
(Tried to play around with the parameter needsConfirm but it does not work as I thought)

-Is there a way to keep the item, even if I press/choose "Yes" in the destruction popup?

Did anyone play around with this already and got some ideas?

Thanks for your help.

Regards
Baertram
  Reply With Quote
 

ESOUI » AddOns » AddOn Help/Support » Destroying an item - Event questions


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