diff options
| author | Michael Ball <cycomachead@gmail.com> | 2013-12-27 18:49:56 -0800 |
|---|---|---|
| committer | Michael Ball <cycomachead@gmail.com> | 2013-12-27 18:49:56 -0800 |
| commit | faa8b4fe2243b1a8ef5cc4342183f4880b728a3d (patch) | |
| tree | f158b1b8c6a3b7c0923ba0660f1fca4ba4c55635 /objects.js | |
| parent | e9020b4ed3f7190dc78e622fbe3b2665e227c30f (diff) | |
| download | snap-yow-faa8b4fe2243b1a8ef5cc4342183f4880b728a3d.tar.gz snap-yow-faa8b4fe2243b1a8ef5cc4342183f4880b728a3d.zip | |
Add a 'get current DATE' block with various options, add some translations to FR and DE
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2013-December-19'; +modules.objects = '2013-December-27'; var SpriteMorph; var StageMorph; @@ -786,6 +786,12 @@ SpriteMorph.prototype.initBlocks = function () { category: 'sensing', spec: 'set turbo mode to %b' }, + reportDate: { + type: 'reporter', + category: 'sensing', + spec: 'get current %dates', + + }, // Operators reifyScript: { @@ -1700,6 +1706,8 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push('-'); blocks.push(block('reportIsFastTracking')); blocks.push(block('doSetFastTracking')); + blocks.push('-'); + blocks.push(block('reportDate')); // for debugging: /////////////// @@ -4398,6 +4406,8 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push('-'); blocks.push(block('reportIsFastTracking')); blocks.push(block('doSetFastTracking')); + blocks.push('-'); + blocks.push(block('reportDate')); // for debugging: /////////////// @@ -5147,7 +5157,7 @@ Costume.prototype.shrinkWrap = function () { }; Costume.prototype.boundingBox = function () { - // answer the rectangle surrounding my contents' non-transparent pixels + // answer the rectangle surrounding my contents' non-transparent pixels var row, col, pic = this.contents, |
