if you need to see how it looks like. I made a recording here:
https://imgur.com/sthpT4g
The Code
below
func getdragdata(pos):
# Use another colorpicker as drag preview
var cpb = ColorPickerButton.new()
cpb.color = color
cpb.rectsize = Vector2(50, 50)
setdragpreview(cpb)
# Return color as drag data
return color
func candropdata(pos, data):
return typeof(data) == TYPECOLOR
func dropdata(pos, data):
color = data
Does anyone have a good guess on how to fix this?
Thanks :)