File:Dnd example.png

From UFO:AI
Jump to navigation Jump to search

Original file(834 × 1,404 pixels, file size: 58 KB, MIME type: image/png)

Create with Quick Sequence Diagram Editor

#![Drag and drop]
player:Actor_
core:Core[a]
source:node
target1:node
target2:node
target3:node

[c:note Start the DND]
player:core.do some action with the mouse
core:source.
source:core.MN_DNDDragItem(...)
[/c]

[c:note target1 dont accepte the DND]
player:core.move the mouse into target1
core:false=target1.dndEnter()
[/c]

[c:note target2 accepte the DND, but not at the first position]
player:core.move the mouse into target2
core:true=target2.dndEnter()
core:false=target2.dndMove()
player:core.mouse the mouse over target2
core:true=target2.dndMove()
[/c]

[c:note The target accepted the DND, we callback the node when the mouse go out]
player:core.move the mouse into target3
core:target2.dndLeave()
core:true=target3.dndEnter()
core:true=target3.dndMove()
[/c]

[c:alt The source can accepte the DND]
player:core.do some actions
core:source.
source:core.MN_DNDDrop()
core:x=target3.dndDrop()
core:source.dndFinished(x)
--[or not]
player:core.do some actions
core:source.
source:core.MN_DNDAbort()
core:target3.dndLeave()
core:source.dndFinished(false)
[/c]

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current00:52, 20 December 2008Thumbnail for version as of 00:52, 20 December 2008834 × 1,404 (58 KB)Bayo (talk | contribs)fix
00:18, 20 December 2008Thumbnail for version as of 00:18, 20 December 2008834 × 1,467 (61 KB)Bayo (talk | contribs)

There are no pages that use this file.