三毛钱的GUI:中拖放 - 访问DragData
问题描述:
我目前正在与越来越接近拖动的元素的DragData
当on UI.drop
被称为挣扎。我有这样的事情:三毛钱的GUI:中拖放 - 访问DragData
tile <- UI.new
# set UI.draggable True
# set UI.dragData (show player)
field <- UI.new
# set UI.droppable True
on UI.drop field $ \_ -> do
-- How to receive the DragData here?
有人可以帮我吗?提前致谢!
问候, 莫里茨
答
我懂了:
on UI.drop field $ \dragData -> do
d <- read dragData
也许它可以帮助别人;)
(你可以接受你自己的答案)。 –