Etoys: Etoys-kfr.63.mcz

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

Etoys: Etoys-kfr.63.mcz

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

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

Name: Etoys-kfr.63
Author: kfr
Time: 19 May 2011, 2:15:15 pm
UUID: d1ea8de6-9b55-0246-84c8-533ee93294b6
Ancestors: Etoys-kfr.62

When using "looks like" tile from graphics, the forward direction is changed to that object we look like
http://tracker.squeakland.org/browse/SQ-932

Changed so 'look like' really looks like the SketchMorph in the Holder
Also changed so forward direction is not changed under the hood.

=============== Diff against Etoys-kfr.61 ===============

Item was changed:
  ----- Method: Player>>getGraphic (in category 'slot getters/setters') -----
  getGraphic
  "Answer a form representing the receiver's primary graphic"
 
  | aMorph |
  ^ ((aMorph _ costume renderedMorph) isSketchMorph)
  ifTrue:
+ [aMorph topRendererOrSelf imageForm]
- [aMorph form]
  ifFalse:
  [aMorph isPlayfieldLike
  ifTrue:
  [aMorph backgroundForm]
  ifFalse:
  [aMorph imageForm]]!

Item was changed:
  ----- Method: Player>>wearCostumeOf: (in category 'costume') -----
  wearCostumeOf: anotherPlayer
  "Put on a costume similar to the one currently worn by anotherPlayer"
 
  | aForm itsMorph |
  aForm := anotherPlayer getGraphic deepCopy.
  aForm offset: 0 @ 0.
  itsMorph := anotherPlayer costume.
  costume rotationStyle: itsMorph rotationStyle.
+ "costume forwardDirection: itsMorph forwardDirection."
- costume forwardDirection: itsMorph forwardDirection.
  self setGraphic: aForm rotationCenter: itsMorph rotationCenter
 
 
+ " self renderedCostume: (anotherPlayer costume renderedMorph asWearableCostumeOfExtent: self costume extent) remember: anotherPlayer costume shouldRememberCostume Unmatched comment quote ->s"!
- " self renderedCostume: (anotherPlayer costume renderedMorph asWearableCostumeOfExtent: self costume extent) remember: anotherPlayer costume shouldRememberCostumes"!

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