A simple drag'n'drop script:
PHP Code:
function MyControl.onMouseDragged(modifierkeys,mx,my) {
if (isObject("DragControl"))
return;
new GuiBitmapCtrl("DragControl") {
width = height = 32;
x = mx - width/2;
y = my - height/2;
bitmap = "graalicon_big.png";
alpha = 0.5;
}
DragControl.startDrag();
}
function DragControl.onStopDrag() {
DragControl.destroy();
}