[Etoys] Custom accessors for custom morphs

karl karl.ramberg at comhem.se
Sat Sep 22 06:19:55 EDT 2007

Matthew Fulmer wrote:
> I was trying a custom morph/etoy and I wanted to make some of
> its instance variables (minAngle, maxAngle) accessible from the
> Viewer. I couldn't find any way to do this other than by adding
> four accessor methods to class Player. It seems this should only
> involve class modifications, but I don't see a way to make that
> happen. I did this in 3.10.
> Is there a better way to do this that I am missing, or is Player
> really that ugly?
As far as I know all extensions to Player are hardcoded.

> My code is attached. It was a monticello package, but attached
> is the fileout.
> ------------------------------------------------------------------------
> _______________________________________________
> Etoys mailing list
> Etoys at lists.laptop.org
> http://lists.laptop.org/listinfo/etoys

More information about the Etoys mailing list