Karl Ramberg uploaded a new version of Etoys to project Etoys:
http://source.squeak.org/etoys/Etoys-kfr.87.mcz==================== 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
http://tracker.squeakland.org/browse/SQ-946=============== 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.
self
value: (options first atWrap: index).
(options second atWrap: index) ifNotNilDo:
[:bt |
submorphs last
setBalloonText: bt translated]]!
_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev