Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-08-14, 01:02 PM   #1
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Secure action buttons OnReceiveDrag and mounts

I'm experiencing some strange behavior with my custom action buttons (derived from SecureActionButtonTemplate and ActionButtonTemplate) when dragging a mount from the Pet Journal list onto my action button. The resulting arguments in OnReceiveDrag are somewhat ... strange.

Dragging the first mount ("Albino Drake") onto my action button passes the arguments 0, Mount, 268 (kind, value, subtype) to OnReceiveDrag. The first two are as expected. But what the hell is 268? Shouldn't this be 1?
No surprise: /script C_MountJournal.Pickup(268) does not pick up list item 1 (Albino Drake) but item 268 (Mottled Red Raptor ... or whatever it is in your list).

Same problem with any mount that is dragged from a default action button onto my custom button.

Is someone able to confirm or disapprove this problem?

Or do I have to do something with 268 to get the actual list item? Filtering or something?

Last edited by Duugu : 08-08-14 at 01:08 PM.
 
 

WoWInterface » Site Forums » Archived Beta Forums » WoD Beta archived threads » Secure action buttons OnReceiveDrag and mounts


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