[etoys-dev] Re: [squeakland] A new Die morph artifact
richi.moran at gmail.com
Thu May 27 13:52:43 EDT 2010
Nice looking dice! But you should look at:
your DieMorph has a bug (well, it's actually an Etoys bug): try to run a
script that uses a slot and it will throw an error.
The easy way to fix it is changing #additionsToViewerCategoryDie like this:
^ #(die (
(slot number 'The number of dot printed in the die face' Number readWrite
Player *get*DieValue Player *set*DieValue:)
(slot dieColor 'The color of the die' Color readWrite Player *get*DieColor
(slot dotColor 'The color of the dots' Color readWrite Player *get*DotColor
You should also change the Player methods, of course.
On Thu, May 27, 2010 at 1:58 PM, Hilaire Fernandes <
hilaire.fernandes at edu.ge.ch> wrote:
> I have added a new Die Morph artifact in the LearningArtifacts repository (
> Once load, instantiate one Die with the execution of 'DieMorph new
> openInWorld' from a Workspace. It is Etoys scriptable with specific tiles.
> So far the artifacts does not show up in the Object Catalog, I will fix
> that. Idea about category titles to use in the Object Catalog is welcome.
> squeakland mailing list
> squeakland at squeakland.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the etoys-dev