Etoys: MorphicExtras-kfr.44.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Etoys: MorphicExtras-kfr.44.mcz

commits-2
Karl Ramberg uploaded a new version of MorphicExtras to project Etoys:
http://source.squeak.org/etoys/MorphicExtras-kfr.44.mcz

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

Name: MorphicExtras-kfr.44
Author: kfr
Time: 14 October 2011, 8:34:30 pm
UUID: 2921617e-75ad-3046-b951-ab694f79cc32
Ancestors: MorphicExtras-kfr.43

Add menu on off toggle

=============== Diff against MorphicExtras-kfr.43 ===============

Item was added:
+ ----- Method: WebCamMorph>>addCustomMenuItems:hand: (in category 'menu') -----
+ addCustomMenuItems: aMenu hand: aHandMorph
+ | item |
+ super addCustomMenuItems: aMenu hand: aHandMorph.
+ item := (camIsOn == true)
+ ifTrue: ['turn camera off' translated]
+ ifFalse: ['turn camera on' translated].
+ aMenu
+ add: item translated
+ target: self
+ action: #toggleCameraOnOff.
+
+
+
+
+ !

Item was added:
+ ----- Method: WebCamMorph>>toggleCameraOnOff (in category 'menu') -----
+ toggleCameraOnOff
+ camIsOn
+ ifTrue:[self off]
+ ifFalse:[self on]!

_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev