How do I drop an object into a grid using MouseDrop()?
|
Feb 13 2015, 4:41 am
|
|
What kinda of grid are we talking about, byond's own grid system own one you've fashioned yourself using objects as the gridslots. I think depending on which, the approach or availability to do what you might be asking exactly differs.
|
In DS this can't be done--not from an output control. The icon, once output, is no longer linked to any kind of object and isn't draggable.
In the webclient this could be done by modifying the output control to include some mouse commands. (This can be grafted on via your own code; you don't have to replace the output control outright.) The atom's icon should have an attribute that says which atom it goes with. The mouse functions in the info and grid controls would be helpful references to see how to initiate a drag/drop. |