Hi. I would like to use EToys for a project but I'm having a hard time adding my own actions. I suspect that I am missing something obvious, and would appreciate any pointers you could offer. I've tried to RTFM, but I can't find the FM so I'm kind of stuck.
<br><br>So... As a test case, I decided that I would make some simple methods to animate the opacity of a Morph. I also wanted to add an instance variable and manipulate it.<br><br>So I created a subclass of Morph and, on the class side, added:
<br><br>additionsToViewerCategories<br><br> ^ #(<br> (#seg<br> ( (slot grink 'grink is a nonsense variable' String readWrite Player getGrink Player setGrink:)<br> (command changeOpacityLevel: 'change the opacity level' Player) )))
<br><br>and I created #getGrink, #setGrink:, and #changeOpacityLevel: on the new subclass of Morph.<br><br>When I instantiate the new object and open an etoys viewer, the "seg" category is there but it is empty.
<br><br>I'm running the latest Squeak 3.9 image on a Mac, downloaded form <a href="http://squeak.org">squeak.org</a>.<br>
<br>Suggestions?<br><br> Regards,<br> Steve<br>