Ken L
June 1st, 2018, 20:16
It seems the dragdata for tokencontrols for the onDragStart and onDragEnd has no persistence. If I add slots to the onDragStart's dragdata, it does not persist in either the on onDrop of the target or the return invocation of onDragEnd. In fact the reference is different from onDragStart and onDragEnd. OnDrop returns the same dragdata instance to the onDragEnd, but between onDragStart and onDrop, the instance is either regenerated, or outright replaced. If replaced, it runs counter to the dragdata's purpose in onDragStart as no matter what I put in the dragdata, it is erased. I'd kinda expect at least a merge rather than a wipe-and-replace.
This may be true for other 'supported' dragdata types such as windowreferences or what not.
Runtime Notice: s'ON DRAG START'
Runtime Notice: s'DIAGNOSTICS : dumpDragData + + + + + +'
Runtime Notice: s'dragdata instanceuserdata: 1706E5B0'
Runtime Notice: s'slot count: 2'
Runtime Notice: s'type: none'
Runtime Notice: s'dbnode: nil'
Runtime Notice: s'description: '
Runtime Notice: s'secret: false'
Runtime Notice: s'shortcut list: table: 15C41E48'
Runtime Notice: s'===== slot ( 1 )'
Runtime Notice: s'slot type: '
Runtime Notice: s'meta data: '
Runtime Notice: s' ---- '
Runtime Notice: s'custom data: nil'
Runtime Notice: s'number data: 0'
Runtime Notice: s'string data: '
Runtime Notice: s'shortcut data: nil'
Runtime Notice: s'die list: nil'
Runtime Notice: s'token data: nil ref: nil'
Runtime Notice: s'===== slot ( 2 )'
Runtime Notice: s'slot type: '
Runtime Notice: s'meta data: '
Runtime Notice: s' ---- '
Runtime Notice: s'custom data: combattracker.list.id-00013'
Runtime Notice: s'number data: 0'
Runtime Notice: s'string data: '
Runtime Notice: s'shortcut data: nil'
Runtime Notice: s'die list: nil'
Runtime Notice: s'token data: nil ref: nil'
Runtime Notice: s'DIAGNOSTICS : dumpDragData - - - - - -'
Runtime Notice: s'ctentry windowinstance onDrop -- type: token'
Runtime Notice: s'DIAGNOSTICS : dumpDragData + + + + + +'
Runtime Notice: s'dragdata instanceuserdata: 2484F4C0'
Runtime Notice: s'slot count: 1'
Runtime Notice: s'type: token'
Runtime Notice: s'dbnode: nil'
Runtime Notice: s'description: '
Runtime Notice: s'secret: false'
Runtime Notice: s'shortcut list: table: 2BE016A8'
Runtime Notice: s'===== slot ( 1 )'
Runtime Notice: s'slot type: '
Runtime Notice: s'meta data: '
Runtime Notice: s' ---- '
Runtime Notice: s'custom data: nil'
Runtime Notice: s'number data: 0'
Runtime Notice: s'string data: '
Runtime Notice: s'shortcut data: nil'
Runtime Notice: s'die list: nil'
Runtime Notice: s'token data: tokens/host/unsorted/ancient_occult_dragon.png ref: nil'
Runtime Notice: s'DIAGNOSTICS : dumpDragData - - - - - -'
Runtime Notice: s'ON DRAG END'
Runtime Notice: s'DIAGNOSTICS : dumpDragData + + + + + +'
Runtime Notice: s'dragdata instanceuserdata: 2484F4C0'
Runtime Notice: s'slot count: 1'
Runtime Notice: s'type: token'
Runtime Notice: s'dbnode: nil'
Runtime Notice: s'description: '
Runtime Notice: s'secret: false'
Runtime Notice: s'shortcut list: table: 19F6F150'
Runtime Notice: s'===== slot ( 1 )'
Runtime Notice: s'slot type: '
Runtime Notice: s'meta data: '
Runtime Notice: s' ---- '
Runtime Notice: s'custom data: nil'
Runtime Notice: s'number data: 0'
Runtime Notice: s'string data: '
Runtime Notice: s'shortcut data: nil'
Runtime Notice: s'die list: nil'
Runtime Notice: s'token data: tokens/host/unsorted/ancient_occult_dragon.png ref: nil'
Runtime Notice: s'DIAGNOSTICS : dumpDragData - - - - - -'
This may be true for other 'supported' dragdata types such as windowreferences or what not.
Runtime Notice: s'ON DRAG START'
Runtime Notice: s'DIAGNOSTICS : dumpDragData + + + + + +'
Runtime Notice: s'dragdata instanceuserdata: 1706E5B0'
Runtime Notice: s'slot count: 2'
Runtime Notice: s'type: none'
Runtime Notice: s'dbnode: nil'
Runtime Notice: s'description: '
Runtime Notice: s'secret: false'
Runtime Notice: s'shortcut list: table: 15C41E48'
Runtime Notice: s'===== slot ( 1 )'
Runtime Notice: s'slot type: '
Runtime Notice: s'meta data: '
Runtime Notice: s' ---- '
Runtime Notice: s'custom data: nil'
Runtime Notice: s'number data: 0'
Runtime Notice: s'string data: '
Runtime Notice: s'shortcut data: nil'
Runtime Notice: s'die list: nil'
Runtime Notice: s'token data: nil ref: nil'
Runtime Notice: s'===== slot ( 2 )'
Runtime Notice: s'slot type: '
Runtime Notice: s'meta data: '
Runtime Notice: s' ---- '
Runtime Notice: s'custom data: combattracker.list.id-00013'
Runtime Notice: s'number data: 0'
Runtime Notice: s'string data: '
Runtime Notice: s'shortcut data: nil'
Runtime Notice: s'die list: nil'
Runtime Notice: s'token data: nil ref: nil'
Runtime Notice: s'DIAGNOSTICS : dumpDragData - - - - - -'
Runtime Notice: s'ctentry windowinstance onDrop -- type: token'
Runtime Notice: s'DIAGNOSTICS : dumpDragData + + + + + +'
Runtime Notice: s'dragdata instanceuserdata: 2484F4C0'
Runtime Notice: s'slot count: 1'
Runtime Notice: s'type: token'
Runtime Notice: s'dbnode: nil'
Runtime Notice: s'description: '
Runtime Notice: s'secret: false'
Runtime Notice: s'shortcut list: table: 2BE016A8'
Runtime Notice: s'===== slot ( 1 )'
Runtime Notice: s'slot type: '
Runtime Notice: s'meta data: '
Runtime Notice: s' ---- '
Runtime Notice: s'custom data: nil'
Runtime Notice: s'number data: 0'
Runtime Notice: s'string data: '
Runtime Notice: s'shortcut data: nil'
Runtime Notice: s'die list: nil'
Runtime Notice: s'token data: tokens/host/unsorted/ancient_occult_dragon.png ref: nil'
Runtime Notice: s'DIAGNOSTICS : dumpDragData - - - - - -'
Runtime Notice: s'ON DRAG END'
Runtime Notice: s'DIAGNOSTICS : dumpDragData + + + + + +'
Runtime Notice: s'dragdata instanceuserdata: 2484F4C0'
Runtime Notice: s'slot count: 1'
Runtime Notice: s'type: token'
Runtime Notice: s'dbnode: nil'
Runtime Notice: s'description: '
Runtime Notice: s'secret: false'
Runtime Notice: s'shortcut list: table: 19F6F150'
Runtime Notice: s'===== slot ( 1 )'
Runtime Notice: s'slot type: '
Runtime Notice: s'meta data: '
Runtime Notice: s' ---- '
Runtime Notice: s'custom data: nil'
Runtime Notice: s'number data: 0'
Runtime Notice: s'string data: '
Runtime Notice: s'shortcut data: nil'
Runtime Notice: s'die list: nil'
Runtime Notice: s'token data: tokens/host/unsorted/ancient_occult_dragon.png ref: nil'
Runtime Notice: s'DIAGNOSTICS : dumpDragData - - - - - -'