Ok, so where do I start adding / modifying code to add some features like
Drag & Snap.  I'm thinking somewhere in the onmove event.

I'll need to first make some decisions about functionality.  Do I add
attributes like (boolean) doSnap and (+t,+r,+b,+l) snapBorder to the (either
static or dragged) dynlayer?  Does the doSnap apply to the stationary
(non-draggable and draggable) target objects, such that the draggable object
(which is currently moving) will snap to anything that is snappable?  Or do
I only apply the doSnap to the currently moving draggable layer, such that
it snaps to anything?  Or maybe both target/source layers need the draggable
boolean set?

Second, how about the boundary implementation?  Thinking something like the
collision detection might come in handy.  But how to set a wider boundary?
Do I put the snappable layer inside an invisible "wrap" layer which is going
to be wider, and do collision detection on that?  Or do I simply copy and
modify the collision code and rename it to some snappable code, and do
collision detection on boundaries?

Third, which files should I start looking in?  I've got a copy of dynapi3x
and have been mucking around with it.

Leif




-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/

Reply via email to