[etoys-dev] Etoys: Etoys-kfr.87.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Aug 4 18:33:11 EDT 2011

Karl Ramberg uploaded a new version of Etoys to project Etoys:

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

Name: Etoys-kfr.87
Author: kfr
Time: 5 August 2011, 12:32:16 am
UUID: 4b22f993-3014-c94d-b5d1-1b7af59c478a
Ancestors: Etoys-kfr.86

Using Arrows to decrease from 0.01 displays epsilon instead of 0.00 in scripting tiles

=============== Diff against Etoys-kfr.86 ===============

Item was changed:
  ----- Method: TileMorph>>arrowAction: (in category 'arrows') -----
  arrowAction: delta 
  	"Do what is appropriate when an arrow on the tile is pressed; delta will  
  	be +1 or -1"
  	| index options |
  	(type == #literal
  			and: [literal isNumber])
+ 		ifTrue: [self value:(((literal + delta) printShowingDecimalPlaces: self decimalPlaces) asNumber)]
- 		ifTrue: [self value: literal + delta]
  		ifFalse: [options _ self options
  						ifNil: [^ self].
  			index _ (options first indexOf: self value)
  						+ delta.
  				value: (options first atWrap: index).
  			(options second atWrap: index) ifNotNilDo:
  				[:bt |
  					submorphs last
  						setBalloonText: bt translated]]!

More information about the etoys-dev mailing list