[etoys-dev] Etoys Inbox: Etoys-bf.31.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 26 11:32:41 EDT 2010

Bert Freudenberg uploaded a new version of Etoys to project Etoys Inbox:

==================== Summary ====================

Name: Etoys-bf.31
Author: bf
Time: 26 June 2010, 5:31:53 pm
UUID: 2d4c0080-e486-4dfc-afff-d24389b71845
Ancestors: Etoys-bf.30

- add a "timer" tile to the "playfield" category

=============== Diff against Etoys-bf.30 ===============

Item was added:
+ ----- Method: Player>>setTimer: (in category 'slot getters/setters') -----
+ setTimer: seconds
+ 	costume renderedMorph
+ 		setProperty:  #timerStart
+ 		toValue: Time millisecondClockValue - (seconds * 1000) asInteger!

Item was added:
+ ----- Method: Player>>getTimer (in category 'slot getters/setters') -----
+ getTimer
+ 	| last |
+ 	last := costume renderedMorph
+ 		valueOfProperty:  #timerStart
+ 		ifAbsentPut: [Time millisecondClockValue].
+ 	^(Time millisecondsSince: last) / 1000.0
+ !

Item was changed:
  ----- Method: PasteUpMorph class>>additionsToViewerCategories (in category '*eToys-scripting') -----
  	"Answer a list of (<categoryName> <list of category specs>) pairs that characterize the phrases this kind of morph wishes to add to various Viewer categories."
  	^ # (
  (playfield (
  (command initiatePainting 'Initiate painting of a new object in the standard playfield.')
  (slot mouseX 'The x coordinate of the mouse pointer' Number readWrite Player getMouseX  unused unused)
  (slot mouseY 'The y coordinate of the mouse pointer' Number readWrite Player getMouseY  unused unused)
+ (slot timer 'The elapsed time in seconds' Number readWrite Player getTimer  Player setTimer:)
  (command roundUpStrays 'Bring all out-of-container subparts back into view.')
  (slot graphic 'The graphic shown in the background of this object' Graphic readWrite Player getPasteUpGraphic Player setGraphic:)
  (command unhideHiddenObjects 'Unhide all hidden objects.')))
  (scripting (
  (command tellAllContents: 'Send a message to all the objects inside the playfield' ScriptName)))
  (collections (
  (slot cursor 'The index of the chosen element' Number readWrite Player getPasteUpCursor Player setCursorWrapped:)
  (slot count 'How many elements are within me' Number readOnly Player getCount unused unused)
  (slot stringContents 'The characters of the objects inside me, laid end to end' String readOnly Player getStringContents unused unused)
  (slot playerAtCursor 'the object currently at the cursor' Player readWrite Player getValueAtCursor  unused unused)
  (slot firstElement  'The first object in my contents' Player  readWrite Player getFirstElement  Player  setFirstElement:)
  (slot numberAtCursor 'the number at the cursor' Number readWrite Player getNumberAtCursor Player setNumberAtCursor: )
  (slot graphicAtCursor 'the graphic worn by the object at the cursor' Graphic readOnly Player getGraphicAtCursor  unused unused)
  (command tellAllContents: 'Send a message to all the objects inside the playfield' ScriptName)
  (command removeAll 'Remove all elements from the playfield')
  (command shuffleContents 'Shuffle the contents of the playfield')
  (command append: 'Add the object to the end of my contents list.' Player)
  (command prepend: 'Add the object at the beginning of my contents list.' Player)
  (command includeAtCursor: 'Add the object to my contents at my current cursor position' Player)
  (command include: 'Add the object to my contents' Player)
  (#'stack navigation' (
  (command goToNextCardInStack 'Go to the next card')
  (command goToPreviousCardInStack  'Go to the previous card')
  (command goToFirstCardInBackground 'Go to the first card of the current background')
  (command goToFirstCardOfStack 'Go to the first card of the entire stack')
  (command goToLastCardInBackground 'Go to the last card of the current background')
  (command goToLastCardOfStack 'Go to the last card of the entire stack')
  (command deleteCard 'Delete the current card')
  (command insertCard 'Create a new card')))"
  "(viewing (
  (slot viewingNormally 'whether contents are viewed normally' Boolean readWrite Player getViewingByIcon Player setViewingByIcon: )))"
  (#'pen trails' (
  (command liftAllPens 'Lift the pens on all the objects in my interior.')
  (command lowerAllPens  'Lower the pens on all the objects in my interior.')
  (command trailStyleForAllPens:  'Set the trail style for pens of all objects within' TrailStyle)
  (command clearTurtleTrails 'Clear all the pen trails in the interior.')
  (slot batchPenTrails 'Whether pen trails should reflect small movements within the same tick or only should integrate all movement between ticks' Boolean readWrite Player getBatchPenTrails Player setBatchPenTrails:)
  (#sound (
  (slot soundPitch 'pitch of sound' Number readOnly Player getPitch unused unused)
  (slot soundLevel 'level of sound' Number readOnly Player getLevel unused unused)
  (slot dialNumber 'dial number of sound' String readOnly Player getDialNumber unused unused)
  (slot soundListening 'whether the stethoscope is listening' Boolean readWrite Player getListening Player setListening:)))

More information about the etoys-dev mailing list