Ricardo Moran uploaded a new version of Skeleton to project Etoys Inbox:
http://source.squeak.org/etoysinbox/Skeleton-Richo.8.mcz
==================== Summary ====================
Name: Skeleton-Richo.8
Author: Richo
Time: 18 October 2011, 4:27:35 pm
UUID: efe0ef54-8a52-bb49-b304-ebfb81263f1f
Ancestors: Skeleton-Richo.7
Fixed a bug when changing the sheet color without being properly initialized.
=============== Diff against Skeleton-Richo.7 ===============
Item was changed:
----- Method: SkSheetMorph>>color: (in category 'accessing') -----
color: aColor
super color: aColor.
+ sheet ifNotNil: [sheet fillStyle: aColor.
+ self title color: aColor makeForegroundColor]!
- sheet fillStyle: aColor.
- self title color: aColor makeForegroundColor!
Karl Ramberg uploaded a new version of MorphicExtras to project Etoys:
http://source.squeak.org/etoys/MorphicExtras-kfr.49.mcz
==================== Summary ====================
Name: MorphicExtras-kfr.49
Author: kfr
Time: 18 October 2011, 8:07:44 pm
UUID: 6c41a019-2e4e-d54e-99c7-49babcafdb2c
Ancestors: MorphicExtras-kfr.48
Chenge WebCamMorph delete to not turn off camera if there are more instances. Translate 'camera is off'. Stop stepping if instanceVariable comIsOn is false
=============== Diff against MorphicExtras-kfr.48 ===============
Item was changed:
----- Method: WebCamMorph>>delete (in category 'submorphs-add/remove') -----
delete
+ (self class instanceCount > 1)
+ ifFalse:[self off]
+ ifTrue:[self stopStepping. camIsOn := false].
- self off.
super delete.!
Item was changed:
----- Method: WebCamMorph>>step (in category 'stepping and presenter') -----
step
+ camIsOn ifFalse:[self stopStepping].
- | |
self updateDisplay.
!
Item was changed:
----- Method: WebCamMorph>>updateDisplay (in category 'stepping and presenter') -----
updateDisplay
camIsOn
ifFalse: [displayForm getCanvas
+ drawString: 'Camera is off' translated
- drawString: 'Camera is off'
at: 5 @ 2
font: Preferences windowTitleFont
color: Color white.
]
ifTrue:[self nextFrame].
self changed.!
On 13.10.2011, at 20:47, commits(a)source.squeak.org wrote:
> Karl Ramberg uploaded a new version of MorphicExtras to project Etoys:
> http://source.squeak.org/etoys/MorphicExtras-kfr.41.mcz
>
> ==================== Summary ====================
>
> Name: MorphicExtras-kfr.41
> Author: kfr
> Time: 13 October 2011, 10:47:37 pm
> UUID: 999c47e0-2257-0249-8f43-87899271a4d4
> Ancestors: MorphicExtras-kfr.40
>
> Some more fixing.
> I'll say this is pretty much good to gow now.
> Famous last words...
I just committed the Mac CameraPlugin, and tried your code. Worked on first try, great!
Things I noticed:
The camera stays on when I leave the project. It should turn off - we're not spying on users ;)
After loading a project with a "running" camera, it does not restart automatically.
For both of these I think we should use the intoWorld/outOfWorld mechanism. See VideoMorph.
When I duplicate the camera I get two cameras. When I delete the one camera, the other one stops, too. However, the tile still says it's "on".
We should hide the old camera from the object catalog. Maybe just remove it from the "multimedia" page and still leave it in the alphabetical list. And rename the new one to Camera (we don't really have to rename the class, but it would be consistent to do so).
Got errors in Player when I tried to rotate the camera. All the getters should use the "getValueFromCostume:" idiom. Similarly, the setters should use "setCostumeSlot:toValue:".
The viewer category should simply be named "camera", not "camera settings".
Not sure about the "last frame" tile. Do we need that? If so we should find a nicer name. In any case the help balloon should not mention "morph". In Etoys we generally do not distinguish between the player and its costume. (idea: maybe a copy of the camera should just return a sketch)
And we should make a test release for others to try this, soonish.
- Bert -