On Sat, Jan 30, 2010 at 11:09:13PM +1300, Ralph Versteegen wrote: > On 30 January 2010 13:28, <[email protected]> wrote: > > james > > 2010-01-29 16:28:10 -0800 (Fri, 29 Jan 2010) > > 182 > > All slices now support a .Clip property that causes children to be clipped. > > GridSlice cells support clipping too. > > TMC, thanks for allmodex's setclip() which made this easy to do! :) > > --- > > U wip/sliceedit.bas > > U wip/slices.bas > > U wip/slices.bi > > Actually Simon wrote that, so I thought that it was always part of > allmodex? Maybe not.
Oh? I had thought it was a new addition. > Are you planning to expose that to scripting with a command to make > any slice clip its children? This is simpler than a separate > ClippingSlice, but I'm not sure whether it makes sense to allow any > slice to clip, especially sprites. What is the size and position of a > sprite? Remember: it will depend on the current frame, and on its > animation state. I do plan on exposing this to scripting, but not until I have them better tested, and I am confident that I am doing them in a sane way. Last night before bed I realized that slices are only clipping inside their first clipping parent, and overflowing any outer clipping grandparents. (but I have an idea for fixing that) All slices have to be clipping aware to make clipping work, so I think it is best to allow all slice types to clip. That is to say, I can't see any advantage to add a secial case to forbid sprites from clipping. I don't see variable sprite size causing a problem. That just means the spriteslice size will change when the animation frame changes, and that is no problem. --- James _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
