turf
MouseDrag(turf/a,turf/b)
if(usr.building && usr.buildmethod == "Block")
for(var/turf/T in block(a,b))
T.overlays+=image('dither.dmi')
turf
MouseDrop(turf/a,turf/b)
if(usr.building && usr.buildmethod == "Block")
for(var/turf/T in block(a,b))
var/atom/A = new usr.buildtype(T)
A.icon = day ? 'Day Turfs.dmi':'Night Turfs.dmi'
T.overlays=null
Problem description:
Well, I am trying to make a building system using mousedrag and drop, The problem is When I am making the rectangle It adds overlays from mousedrag. But If I make the rectangle smaller than its greatest area, I don't know how to delete those overlays. Doe's anyone know how?
or T.overlays.Remove(image('dither.dmi'))
~Grand~