[Squeakland] [Q]Some questions about scripting an eToy player

Scott Wallace scott.wallace at squeakland.org
Wed Jan 14 14:22:45 PST 2004


At 1:07 PM -0800 1/14/04, Darius Clarke wrote:
>
>I've developed a couple questions recenty:

Hi, Darius!


>- Which Morphs/eToy players have extra scripts attached to them?
>Here is such an example, the Text morph whose menu is attached here to this
>message.
>
>- Where is this documented so I can find out such things for myself?

Look at implementors of #additionsToViewerCategories.

Note that using this mechanism, any individual morph class can both:
*  Add new items to an existing viewer category
*  Provide items for a new viewer category


>- How can I change the #rotationCenter in an eToy player's script?

The rotationCenter is not directly accessible via the tile system, 
but can be manipulated if you fall back on textual scripting.  Use 
code of the form

	self costume rotationCenter: (0.2 @ 0.7)


>- The the #rotationCenter in relation too what point in the player?

"The rotation center defines the relative offset inside the 
receiver's bounds for locating the reference position."  (From the 
comment in the #rotationCenter method).  The default is (0.5 @ 0.5) 
which positions it at the geometric center of the object.  A value of 
(0 @ 0) would make the rotation center be the top-left point of the 
object's bounding box; (1 at 1) would put it at the bottom right. 
Values larger than 1 put the rotation center outside the object's own 
bounding box.


>- Where do I send my "SqueakDebug-3251534861.log" files?

Michael will know the best answer here; for now a good recipient would be:

	michael.rueger at squeakland.org

;-)

Cheers,

  -- Scott


More information about the Squeakland mailing list